Jump to content

PS 1.7.5.2 - Problems trying to edit products


webmasterXeral

Recommended Posts

I am having some issues every time I try to edit a product in backoffice on PS 1.7.5.2.

At first, I could not edit any product due to a memory limit in PHP, so I increased it from 512M to 1024M and it worked until now. Every time we try to edit a product it throws the following errors in the server log again:

AH01071: Got error 'PHP message: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /var/www/vhosts/myshopurl/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 122\n
PHP message: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 32768 bytes) in /var/www/vhosts/myshopurl/httpdocs/vendor/symfony/symfony/src/Symfony/Component/Debug/Exception/OutOfMemoryException.php on line 1\n
PHP message: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 180224 bytes) in Unknown on line 0\n', referer: https://myshopurl/backoffice/index.php/sell/catalog/products?_token=hOQGGRT0FrYd5xSr1eMhxCZo-2wneV0gjcgIfObX-cM

If I increase the memory to 2048M, these errors disappear, but clicking on edit a product takes up to 2 minutes to show it.

My PHP settings right now:

PHP version: 7.2.19
memory_limit: 2048M
max_execution_time: 300
max_input_time: 300

Any ideas of what may be happening?

Edited by webmasterXeral (see edit history)
Link to comment
Share on other sites

  • 1 year later...
On 6/12/2019 at 5:18 PM, webmasterXeral said:

The changes on PHP settings are working, here you can see a screenshot of my phpinfo:

phpinfo.png.face5bbd287a37953876617c5e8d32a6.png

What I don't understand is why editing a product requires so much memory and lasts more than 2 minutes.

 

How did You solve it?
Cause clicking in backend to edit some products cloudflare throws 524 (timetout) error. Logs show PHP Fatal error: Allowed memory size of..
But I have set 6GB of memory limit. This much should be really enough.

Link to comment
Share on other sites

Am 14.5.2021 um 4:25 PM schrieb Inter Svetainė:

How did You solve it?
Cause clicking in backend to edit some products cloudflare throws 524 (timetout) error. Logs show PHP Fatal error: Allowed memory size of..
But I have set 6GB of memory limit. This much should be really enough.

https://www.airpair.com/php/fatal-error-allowed-memory-size

https://www.groovypost.com/howto/howto/how-to-solve-php-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...