1drop / shopware-sentry

Sentry plugin for Shopware
MIT License
20 stars 9 forks source link

Error 500 after installation, Backend not useable #14

Closed kaystrobach closed 6 years ago

kaystrobach commented 6 years ago

System:

Plugin settings: ==== image

Logfiles

apache error log

[Tue Nov 28 19:58:50.169539 2017] [fcgid:warn] [pid 41348] [client 93.228.xx.xxx:64334] mod_fcgid: stderr: PHP Fatal error:  Uncaught Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException: The parameter "shopware.sentry" must be defined. in /shopware/var/cache/production_201703211201/proxies/ShopwareProductione928cc560381633e6f727b3a89e61338d3e91c3aProjectContainer.php:2160, referer: https://www.flooridoo.com/shop/backend/

Error during deaktivation from commandline:

image

stack trace

mod_fcgid: stderr: PHP Fatal error:  Uncaught Symfony\\Component\\DependencyInjection\\Exception\\InvalidArgumentException: The parameter "shopware.sentry" must be defined. in /shopware/var/cache/production_201703211201/proxies/ShopwareProductione928cc560381633e6f727b3a89e61338d3e91c3aProjectContainer.php:2160, referer: https://www.domain.com/shop/backend/
mod_fcgid: stderr: Stack trace:, referer: https://www.domain.com/shop/backend/
mod_fcgid: stderr: #0 /shopware/custom/plugins/OdSentry/Components/SentryClient.php(31): ShopwareProductione928cc560381633e6f727b3a89e61338d3e91c3aProjectContainer->getParameter('shopware.sentry'), referer: https://www.domain.com/shop/backend/
mod_fcgid: stderr: #1 /shopware/custom/plugins/OdSentry/OdSentry.php(82): OdSentry\\Components\\SentryClient->setContainer(Object(ShopwareProductione928cc560381633e6f727b3a89e61338d3e91c3aProjectContainer)), referer: https://www.domain.com/shop/backend/
mod_fcgid: stderr: #2 /shopware/engine/Library/Enlight/Event/Handler/Default.php(91): OdSentry\\OdSentry->onStartDispatch(Object(Enlight_Con in /shopware/var/cache/production_201703211201/proxies/ShopwareProductione928cc560381633e6f727b3a89e61338d3e91c3aProjectContainer.php on line 2160, referer: https://www.domain.com/shop/backend/
Quelk commented 6 years ago

I think the entry for sentry in the config.php is required in the current version.

Am 28.11.2017 um 20:04 schrieb Kay Strobach notifications@github.com:

System:

Shopware 5.2.21 Sentry Plugin 1.1.1 PHP 7.0.11 uname -a Output: FreeBSD qidone 10.2-RELEASE-p14 hostBSD 10.2-RELEASE-p14 #3: Sat Mar 19 18:10:30 CET 2016 root@fbsd10clone1.han-solo.net:/usr/obj/usr/src/sys/DMRKERNEL amd64 Plugin settings:

https://user-images.githubusercontent.com/1185776/33338457-726f698a-d476-11e7-84ce-9134f9b2c30d.png Logfiles

apache error log

[Tue Nov 28 19:58:50.169539 2017] [fcgid:warn] [pid 41348] [client 93.228.xx.xxx:64334] mod_fcgid: stderr: PHP Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: The parameter "shopware.sentry" must be defined. in /shopware/var/cache/production_201703211201/proxies/ShopwareProductione928cc560381633e6f727b3a89e61338d3e91c3aProjectContainer.php:2160, referer: https://www.flooridoo.com/shop/backend/ Error during deaktivation from commandline:

https://user-images.githubusercontent.com/1185776/33338716-3923b1a8-d477-11e7-96eb-27c79fdd6871.png — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/1drop/shopware-sentry/issues/14, or mute the thread https://github.com/notifications/unsubscribe-auth/AeYQ4KgxeQZfUh7dFQ_Sra6nLhLdH3apks5s7FlOgaJpZM4QtwLR.

shyim commented 6 years ago

The CompilerPass sets a default configuration if it does not missing. I guess there is something wrong while building container....

Have you tried clearing complete cache folder in /var/cache?

kaystrobach commented 6 years ago

you are right, after adding the following lines to config.php the error 500 is gone.

grafik

So it seems to me, that the defaults are faulty.

PS: If you look into the description in the shopware store, there is no hint about that setting ...

htuscher commented 6 years ago

shyim is right, the default configuration (if not explicitly set in config.php => which is NOT required) is added at a very early stage of the plugin bootstrapping which did not cause any problems until now.

shyim commented 6 years ago

Could you provide also a stack Trace?

htuscher commented 6 years ago

Hmm, I just tried it with a fresh installed demo shop: image

And can't reproduce it.

kaystrobach commented 6 years ago

for sure, added it into the issue description

maybe the problem is, that i did installation in the following steps:

after activation the installation stopped working

htuscher commented 6 years ago

Oh, I never got the installation of a plugin inside of Shopware working. Always get some weird response codes. E.g.: image I need to figure out a way to test this.

kaystrobach commented 6 years ago

Ahh your installation needs to be registered @shopware and reachable from the shopwarw servers ... strange stuff going on with it

htuscher commented 6 years ago

Actually it is registered

htuscher commented 6 years ago

I installed a new shop on which the registration worked and installed the plugin via the integrated shopware store. Can't reproduce the issue.

kaystrobach commented 6 years ago

Mhmm so let’s close it for now, I’m not so much into bsd maybe a platform specific problem 🤔

Atleast it works with the config.php settings, maybe it makes sense to point to the readme on github from the shopware store. 😉

Thanks a lot for your effort.