I created a script that takes data of products, categories and manufacturers, and inserts them automatically in the database prestashop. In version 1.6 of prestashop script that works well, but in the new version (1.7) data is inserted normally, but when I go to edit a product from backoffice get an error 500. I tried to enable the debug version to understand the problem but nothing always error 500. After several tests I realized that the problem stems from the categories, because if I delete the class to the table "category" product modification works, but I can not figure out what data bears this problem, how can I find the error exact?
sorry for my English, i'm Italian.
EDIT: I managed to enable the errors, they now these three errors are displayed:
Fatal error: Allowed memory size of 1048576000 bytes exhausted (tried to allocate 20480 bytes) in /var/www/vhosts/passiontech.it/httpdocs/classes/db/DbPDO.php on line 154
Fatal error: Allowed memory size of 1048576000 bytes exhausted (tried to allocate 32768 bytes) in /var/www/vhosts/passiontech.it/httpdocs/vendor/symfony/symfony/src/Symfony/Component/Debug/Exception/OutOfMemoryException.php on line 1
Fatal error: Allowed memory size of 1048576000 bytes exhausted (tried to allocate 147456 bytes) in Unknown on line 0
EDIT2: I tried to eliminate all the products, but the problem persists after doing so, that I can not add products, to do so I have to delete the categories, then the problem lies in the categories, then my question is: what, in the categories, can cause a 500 error?