Question

Fatal error: Out of memory

hello please i need help to fix this issue my website is showing me this remarque: Fatal error: Out of memory (allocated 2097152) (tried to allocate 40960 bytes) in /var/www/html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php on line 2267 and i don’t have any plugins in my wordpress


Submit an answer


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!

Sign In or Sign Up to Answer

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.

KFSys
Site Moderator
Site Moderator badge
April 25, 2024

Heya,

For anyone else stumbling upon this, if you get the Fatal error: Out of memory it means your Droplet has ran out of RAM during an operation and thus had to kill some processes to survive.

A short term solution would be to add SWAP to yur Droplet

https://www.digitalocean.com/community/tutorial-collections/how-to-add-swap-space

Swap is a portion of hard drive storage that has been set aside for the operating system to temporarily store data that it can no longer hold in RAM. This lets you increase the amount of information that your server can keep in its working memory, with some caveats. The swap space on the hard drive will be used mainly when there is no longer sufficient space in RAM to hold in-use application data.

Bobby Iliev
Site Moderator
Site Moderator badge
July 26, 2020

Hi there @raminzr,

In addition to what @abletec mentioned, you could increase your PHP memory limit by adjusting the memory_limit value in your php.ini file. You can follow the steps in this tutorial on how to do that:

https://www.digitalocean.com/community/tutorials/how-to-change-your-php-settings-on-ubuntu-14-04

Let me know how it goes. Regards, Bobby

Hello, raminzr. You’re likely using the Newspaper or Newsmag theme, & these plugins accompany it.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel