Memory limit issue on Wordpress website

Posted February 7, 2015 5.9k views

Hi guys,

I would really appreciate your help with an issue regarding the following error I have:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /var/www/wp-includes/post.php on line 2125
I have modified the php.ini memory_limit to 1024MB, as you can see here:
Please help me find a solution as I am stuck for days and I really need to make my wordpress work again (this happens on add/edit post page only).

Thank you,


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers


Is there anyone who can help me further on this?


Have you tried to add this to your wp-config.php file


yet 268435456 bytes or 268.435MB is pretty massive, you usually don’t use that much memory for WP, so maybe this is a different problem.

Can you explain step by step the process up to when you get the error. Also check your php logs for errors.


I have around 35k products imported in the database. Should this be an issue?