Fatal error: Allowed memory size ... in /web/admin/controller/extension/modification.php on line 779
Hello,
we have a problem with opencart 2.3.0.2.
If I open admin - extensions - modifications I get error:
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 362620744 bytes) in /web/admin/controller/extension/modification.php on line 779
in php.ini have 512M memory limit
memory_limit = 512M;
is there any way how to find where is a problem? or which module has a problem?
Thank you.
we have a problem with opencart 2.3.0.2.
If I open admin - extensions - modifications I get error:
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 362620744 bytes) in /web/admin/controller/extension/modification.php on line 779
in php.ini have 512M memory limit
memory_limit = 512M;
is there any way how to find where is a problem? or which module has a problem?
Thank you.
Hello, Please if there are also ini.php file at admin/php.ini check it also and make sure it has good value like you did : 512
it exists in opencart 2302
second: please review last images you uploaded may you upload big ones cause this error.
I finally check cpanel setting (server) to see max php memory_limit value ..
Have nice day ...
it exists in opencart 2302
second: please review last images you uploaded may you upload big ones cause this error.
I finally check cpanel setting (server) to see max php memory_limit value ..
Have nice day ...
Last edited by tapspeed on Tue Feb 22, 2022 2:56 pm, edited 1 time in total.
Opencart Support | Extension Development | Opencart 3 Klarna checkout
This has been asked many times on this forum before, please search first before posting.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Hi
This is a popular issue with ocmod logs in opencart. Ocmod is not cleared and becomes very large. Delete the log manually (system/storage/logs/ocmod.log), or do an remove before each update.
For auto remove before each update, change file admin\controller\marketplace\modification.php
Before (on line 394):
paste:
After that you will have up-to-date ocmod logs without problems.
Increasing the memory limit is not a solution, but a fight against the consequences.
This is a popular issue with ocmod logs in opencart. Ocmod is not cleared and becomes very large. Delete the log manually (system/storage/logs/ocmod.log), or do an remove before each update.
For auto remove before each update, change file admin\controller\marketplace\modification.php
Before (on line 394):
Code: Select all
$ocmod = new Log('ocmod.log');
$ocmod->write(implode("\n", $log));
Code: Select all
unlink(DIR_LOGS . 'ocmod.log');
Increasing the memory limit is not a solution, but a fight against the consequences.
My FREE extensions in marketplace. [ security | flexibility | speedup ]
Great answer. I see too many people just trying to increase this limit, ultimately crashing the server because it can't handle it. It's always best to figure out the root cause. Generally the memory limit shouldn't need to be much higher than 32M in most cases.
Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhosting.com
Active Member
Well, in some rare cases it could be increased to 48M or 64M.EvolveWebHosting wrote: ↑Tue Mar 01, 2022 10:49 amGreat answer. I see too many people just trying to increase this limit, ultimately crashing the server because it can't handle it. It's always best to figure out the root cause. Generally the memory limit shouldn't need to be much higher than 32M in most cases.
It's funny because of what reasons some people are increasing this limit .. sad that too many noobs can operate a server!
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Hey Friends, I will take care about your answers related to memory limit.
Opencart Support | Extension Development | Opencart 3 Klarna checkout
Who is online
Users browsing this forum: No registered users and 15 guests