Page 1 of 1

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 40 bytes) in /home/xxxxxxx/www/syste

Posted: Thu Jan 28, 2021 7:54 pm
by chris399@orange.fr
Hello I have a problem, I would like to save my site, but impossible I have this error which appears:
do you have a solution, I am interested, thank you :'(
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 40 bytes) in /home/xxxxxxxxxxx/www/system/library/db/mysqli.php on line 21

Re: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 40 bytes) in /home/xxxxxxx/www/syst

Posted: Thu Jan 28, 2021 8:01 pm
by xxvirusxx
Increase memory_limit from php.ini, then try again.

Re: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 40 bytes) in /home/xxxxxxx/www/syst

Posted: Thu Jan 28, 2021 9:35 pm
by chris399@orange.fr
it does not change, I still have the same error

Re: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 40 bytes) in /home/xxxxxxx/www/syst

Posted: Thu Jan 28, 2021 9:57 pm
by straightlight
chris399@orange.fr wrote:
Thu Jan 28, 2021 9:35 pm
it does not change, I still have the same error
See in .user.ini file instead of php.ini file if the changes will reflect.

Re: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 40 bytes) in /home/xxxxxxx/www/syst

Posted: Thu Jan 28, 2021 9:59 pm
by mikeinterserv
Post your php.ini from root folder so we can see it

Re: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 40 bytes) in /home/xxxxxxx/www/syst

Posted: Fri Jan 29, 2021 12:26 am
by JNeuhoff
This is way too much memory requirement for an OpenCart web server.
What exactly do mean by "saving a website"?
If it is just a DB backup, and your DB happens to be very large, it's better to use PHPMyAdmin for this.

Re: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 40 bytes) in /home/xxxxxxx/www/syst

Posted: Tue Mar 09, 2021 4:48 am
by jrr
JNeuhoff wrote:
Fri Jan 29, 2021 12:26 am
This is way too much memory requirement for an OpenCart web server.
What exactly do mean by "saving a website"?
If it is just a DB backup, and your DB happens to be very large, it's better to use PHPMyAdmin for this.
Not saying it is not too much memory as I don't know the answer, but I can say that I had a similar problem as the OP and had forgotten that I'm running PHP as a CGI (set up years ago). I then had to go to my cgi-bin directory and adjust php.ini there as it overrides any other susequent php.ini files, and even my .htaccess attempt to increase the php memory (.htaccess - php_value memory_limit xxxM)

I increased my php memory to 256mb and now I can use the OC backup process - saving the step of opening the database and archiving it that way.