Memory limit issue on Wordpress website

February 7, 2015 4.7k 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,

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?

Have another answer? Share your knowledge.