# Strange problem plugin work only in development mode and not in production

**URL:** <https://forum.shopware.com/t/strange-problem-plugin-work-only-in-development-mode-and-not-in-production/91740>\
**Category:** Shopware 6 (English)\
**Tags:** administration, programming\
**Created:** [1. Dezember 2021 um 08:32 UTC](https://forum.shopware.com/t/strange-problem-plugin-work-only-in-development-mode-and-not-in-production/91740 "2021-12-01T08:32:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mcpll2003](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@Mcpll2003](https://forum.shopware.com/u/Mcpll2003)\
**Post date:** [1. Dezember 2021 um 08:32 UTC](https://forum.shopware.com/t/strange-problem-plugin-work-only-in-development-mode-and-not-in-production/91740/1 "2021-12-01T08:32:57Z")

</div>

Hello to all,  
We are developing an ecommerce using the shopware 6 platform and we have also developed some additional plugins.  
Unfortunately, one of these plugins is giving us a lot of problems.  
I introduce the topic by explaining the problem we have:

The customer needs to change the price of some products in the catalog, so we have decided to develop the module that allows us to change the price directly in the product grid.

To do this we followed the documentation on the site and extended some vue.js components  
The plugin works correctly in development mode, unfortunately when we make a switch in production the plugin inexplicably stops working.  
We tried to install the plugin on a new production instance and to change the environment variable locally.  
The result does not change the plugin stops working.  
Of course we cleared the caches in production and rebuilt everything according to documentation specifications.

I am attaching the link with wetransfer where you can download the plugin and check its operation

> **[EtrpAdministrationExtension.zip](https://wetransfer.com/downloads/28fc88d237f3ca29fbd45f8e1ef984f320211130154828/7a4738)**
>
> 1 file sent via WeTransfer, the simplest way to send your files around the world

I hope for your feedback

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [6. Dezember 2021 um 17:14 UTC](https://forum.shopware.com/t/strange-problem-plugin-work-only-in-development-mode-and-not-in-production/91740/2 "2021-12-06T17:14:57Z")

</div>

If you use dev-only functions, in twig. e.g. dump() then you get a 500 error in the prod environment. I guess it is the same in vue. Unfortunately I cannot tell you witch functions a available only in dev.

You should see the error in you browser.

---

<div class="post-metadata">

**Author:** ![Mcpll2003](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@Mcpll2003](https://forum.shopware.com/u/Mcpll2003)\
**Post date:** [7. Dezember 2021 um 09:44 UTC](https://forum.shopware.com/t/strange-problem-plugin-work-only-in-development-mode-and-not-in-production/91740/3 "2021-12-07T09:44:12Z")

</div>

Hello Thank you for the answer.  
We investigated further and it seems that the problem was related to the lack of the version number in the plugin configuration.
