Shopware: Plugin install on CLI works, but admin removes it again!?
Fabian Blechschmidt
Today I had a weird behaviour of one of our customers store. We tried to install the Shopware Security Plugin and what happened was:
- I install the security plugin via composer
- I refresh the plugins via CLI -> plugin is in CLI and database
- I activate and install the plugin -> plugin is installed in CLI and database
- I update the plugin list on the admin area -> the plugin is deleted from database and gone in CLI
TL;DR: Opcache.
I turned to Shopware’s slack and asked the community. We had this behaviour in the past, but I couldn’t remember what the problem was.
Thankfully I got an answer <3
I think I had this problem once as well. Have you cleared OpCache? If I remember correctly, that did the trick for me
Johannes Przymusinski [die-lobby.de]
Thanks Johannes!
Reset opcache
I know two ways to reset opcache:
- Restart PHP-fpm
- or using the awesome cachetool by gordalina!
Other articles from this category