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...
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; }
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...