PHP Memory Limit Help

hitterman

New member
Hello,

I've been receiving too many Out of Memory errors on mysites like :

[31-Jul-2015 09:47:05 UTC] PHP Fatal error: Out of memory (allocated 5505024) (tried to allocate 196608 bytes) in /home/xxxxxxx/public_html/mysite.com/wp-includes/somefile.php on line 2788

I guess this has something related to the PHP Memory Limit? Can someone tell me what is the current PHP Memory Limit and how can we increase it to at least 64MB or 128MB?

I can't see an option to edit the PHP.ini file but I guess we are on a shared hosting server so we aren't allowed to edit it personally.


Any help will be appreciated.

Regards!
 

hitterman

New member
un4saken said:
Edit your wp-config.php file and enter something like:

Code:
define('WP_MEMORY_LIMIT', '64M');

Hello,

Thank you very much for the reply. I already did that but doesn't work much. I feel it will still be suppressed by the default memory limit. What is the current memory limit?

Regards!


hitterman said:
un4saken said:
Edit your wp-config.php file and enter something like:

Code:
define('WP_MEMORY_LIMIT', '64M');

Hello,

Thank you very much for the reply. I already did that but doesn't work much. I feel it will still be suppressed by the default memory limit. What is the current memory limit?

Regards!

Thanks, the problem solved for now. I added this code now to the beginning of the file. Will inform if the problem occurs again.