Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shopware 5.6.6 - 500er error hours after installation #35

Open
xsliii opened this issue Dec 28, 2021 · 1 comment
Open

Shopware 5.6.6 - 500er error hours after installation #35

xsliii opened this issue Dec 28, 2021 · 1 comment

Comments

@xsliii
Copy link

xsliii commented Dec 28, 2021

We've installed the OdSentry Plugin (v2.0.5) for Shopware 5.6.6. After installation the shop was immediately down with 500 error code, that ClientBuilder.php in the sentry/sentry vendor has undefined class ClientBuilder.

So I reinstalled the vendors with composer install and it seemed to work.

Then from one moment to another, after test purchase and some "errors" I've created to test this, the shop was not working anymore with code 500 error.

The error in log was:
FastCGI: server "/usr/sbin/php7.3-fpm" stderr: PHP message: PHP Parse error: syntax error, unexpected end of file in /var/www/htdocs/custom/plugins/OdSentry/vendor/sentry/sentry/src/ClientBuilder.php on line 307

As I've checked, I don't know from where this comes but the file was looking like this at the end.

....
private function createTransportInstance(): TransportInterface
{
if (null !== $this->transport) {
return $this->transport;
}

    $transportFactory = $this->transportFactory ?? $this->createDefaultTransportFactory();

    retu   <-- Line 307

It seems that the file was "sliced" or something like this, I really dont know...

Funny thing to mention is, that after using an automation for Amazon (Magnalister), a new order was imported/created 1 hour after the error above, a new error occured on every page call or "php bin/console" call.

PHP Fatal error: Uncaught Error: Class 'Sentry\\ClientBuilder' not found in /var/www/htdocs/custom/plugins/OdSentry/vendor/sentry/sentry/src/functions.php:14

There was not manual execution at all in this timeperiod when the above errors happened.

Now plugin is disabled until this is discussed somehow...

@larsbo
Copy link

larsbo commented Dec 28, 2021

Sounds like issue #34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants