# Plugin working locally But not in live

**URL:** <https://meta.discourse.org/t/plugin-working-locally-but-not-in-live/60316>\
**Category:** Development\
**Created:** [02.Апрель.2017 11:35:57 UTC](https://meta.discourse.org/t/plugin-working-locally-but-not-in-live/60316 "2017-04-02T11:35:57Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [16.Апрель.2020 20:39:38 UTC](https://meta.discourse.org/t/plugin-working-locally-but-not-in-live/60316/11 "2020-04-16T20:39:38Z")

</div>

Я снова столкнулся с этой проблемой и наткнулся на эту тему. Похоже, что @sam добавил исправление в API плагинов, которое решает эту проблему 😃

> <https://github.com/discourse/discourse/commit/bd5fa1737d42a958bb5cda35ae5bab2464d4e084>
>
> This is a very long standing bug we had, if a plugin attempted to amend a
> serial…izer core was not "correcting" the situation for all descendant classes
> this often only showed up in production cause production eager loads serializers
> prior to plugins amending them.
> 
> This is a critical fix for various plugins

Итак, чтобы закрыть этот вопрос: если вы столкнетесь с этой проблемой, убедитесь, что вы используете API `add_to_serializer`, а не изменяете класс самостоятельно.

---

_[View the full topic](https://meta.discourse.org/t/plugin-working-locally-but-not-in-live/60316)._
