Error 500 when debug enabled php 7.3.25, if i use php 7.2 no error
Go to the categorys list (look at the error)
Now go to the product list there are no error
Configuration
I use a server with Plesk on debian
Error in console Tab
Error in Network Tab
A lot of memory
I found a similar issue https://github.com/PrestaShop/PrestaShop/issues/16873
I don't have this error on all new controller.
CRITICAL00:53:28 | php | Uncaught Notice: unserialize(): Error at offset 315894 of 1800983 bytes
-- | -- | --
CRITICAL00:53:28 | request | Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Notice: unserialize(): Error at offset 315894 of 1800983 bytes" at /var/www/vhosts/ee.wtf/httpdocs/1770/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php line 56
Hi @okom3pom so you have multiple different issues here 馃槃
Uncaught Notice: unserialize(): Error at offset 315894 of 1800983 bytes
is Symfony debug tools trying to serialize your data to present them into the Symfony Debug bar and failing because you have too much data 馃槃 Hi @matks for the js i open an other issue : https://github.com/PrestaShop/PrestaShop/issues/22232
The error 500 is only when i use php 7.3
I work on a new install
Hi @okom3pom & @matks ,
I did manage to reproduce the same issue on PS 1.7.7.0 fresh install + PHP 7.3 + debug mode ON.
Debug mode OFF, no error 500 :
Debug mode ON :
I鈥檒l add this to the debug backlog so that it鈥檚 fixed.
If you have already fixed it on your end or if you think you can do it, please do send us a pull request!
Thanks.
Hi @florine2623 i think it's a migration page problem not only in the order page, the label migration is better?
And i don't understand why I haven't seen this when i tested the beta and RC
I try on a RC when i have the time
@okom3pom I will add migration label also, thanks!
I have tested this on beta1, beta2 and RC1, I have the same issue on the three fresh installs : PHP 7.3 + debug ON = error 500
Please see the screenshots below :
beta1 :
beta2 :
RC1 :
The issue is present on the 3 previous versions.
Also, when clicking on the web profiler, here's the error :
@hibatallahAouadni Could you check if it's a regression ?
Hi @marionf, @hibatallahAouadni,
The PS1.7.6.9 is not compatible with PHP7.3.
Thanks!
Hi, from what I see in the screenshots there is 2 issues:
the JS error is this one https://github.com/PrestaShop/PrestaShop/issues/18776 it is fixed when using GDPR module v1.2.1
the HTTP 500 error you can see being displayed in the Console is Symfony Debug Bar that crashes because it tries to serialize an object too big and it crashes (not enough memory). This can happen with big orders data, but it's not an issue.
It's not an issue because it's just Symfony debug tool trying to compute some data to help the developer but the data is too big 馃槃 . Symfony is just too hungry and tries to process a data too big for it, nothing bad about that. The only consequence is that the request fail and the SF debug bar does not appear in debug mode.
Hi,
@matks i know 1.2.1 fix the JS error but the issue is :
https://github.com/PrestaShop/PrestaShop/issues/22232
If prestashop don't propose update i don't think merchant goes download zip from github and install the zip manualy .
This issue concern only the 500 in the Console.
I update the title to make it more accurate.
Hello @marionf
As @khouloudbelguith mentioned above, it couldn't be a regression cause 1.7.6.9 is not compatible with 7.3.
So, I change the status to To Do
, feel free to change it :sweat_smile:
Thanks!
I complete the Issue with :
Make a new installation.
Go to the orders list (look at the error)
Go to the customers list (look at the error)
Go to the categorys list (look at the error)
Now go to the product list there are no error
@matks say :
It's not an issue because it's just Symfony debug tool trying to compute some data to help the developer but the data is too big
But a lot of listing give an error and not a lot of datas