allowed memory size..

Hey.



im working on moving my site to a new host. (site5.com)



BUT there is always problems with moving… when i try run my sql backup from my old store and run it on this new i get this error.:


Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 596 bytes) in /home/customda/public_html/core/db/mysql.php on line 92

Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 6449 bytes) in /home/customda/public_html/core/db/mysql.php on line 92



The error is the same and so always but just the (tried to allocate) are diffent.

Why is this so ?

I would recommend to ask your hosting provider.



Ort try to add this line on the top of your .htaccess file


php_value memory_limit 64M

[quote name=‘indy0077’]I would recommend to ask your hosting provider.



Ort try to add this line on the top of your .htaccess file


php_value memory_limit 64M[/QUOTE]



i found the “error”. :slight_smile:



both in the config.local.php and in the php.ini was set to 48m (or close to)



just changed it to 200m and it worked

[quote name=‘cassim’]i found the “error”. :slight_smile:



both in the config.local.php and in the php.ini was set to 48m (or close to)



just changed it to 200m and it worked[/quote]



That setting will leave you susceptible to DDOS attacks. Memory limits should be low for fast servers, higher for slower servers, it would seem to me that your server is not designed for eCommerce in mind.