Report this

What is the reason for this report?

Memory limit issue on Wordpress website

Posted on February 7, 2015

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: http://www.pretbomba.com/info.php 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,



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hello,

Is there anyone who can help me further on this?

Thanks!

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

define(‘wp_memory_limit’,‘512M’);

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.

Hello,

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.