webmasterXeral Posted June 12, 2019 Share Posted June 12, 2019 (edited) 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 June 12, 2019 by webmasterXeral (see edit history) Link to comment Share on other sites More sharing options...
CedCommerce Team Posted June 12, 2019 Share Posted June 12, 2019 Hi, Are you changing the settings in php.ini file? Link to comment Share on other sites More sharing options...
webmasterXeral Posted June 12, 2019 Author Share Posted June 12, 2019 No, I don't have any php.ini files. I'm changing the settings using the server control panel PHP configuration. Link to comment Share on other sites More sharing options...
CedCommerce Team Posted June 12, 2019 Share Posted June 12, 2019 You need to change these in php.ini file. You can ask your server guys to increase memory limit in php.ini file Link to comment Share on other sites More sharing options...
webmasterXeral Posted June 12, 2019 Author Share Posted June 12, 2019 The changes on PHP settings are working, here you can see a screenshot of my phpinfo: What I don't understand is why editing a product requires so much memory and lasts more than 2 minutes. Link to comment Share on other sites More sharing options...
Inter Svetainė Posted May 14, 2021 Share Posted May 14, 2021 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: 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 More sharing options...
SliderFlash Posted May 15, 2021 Share Posted May 15, 2021 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now