Question

How to increase PHP memory limit on a WP setup?

I’m trying to figure out why a certain plugin (Elementor) isn’t working. The widget panel doesn’t stop loading (loading icon doesn’t stop spinning) and after looking it up and trying the various methods they suggest, I’m left at where I started. My php memory limit is currently set to 128mb and I think I’m supposed to increase that to 512mb but the suggestions they gave me didn’t work. Is there anything else I can do? Do I have to increase my droplet size?

Show comments

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.

Accepted Answer

I ended up figuring out the issue. I isolated the issue by turning off all other plugins, etc. and found out it was the theme’s core plugin that wasn’t interacting well with Elementor. I upgraded the core plugin and all is well now.

alexdo
Site Moderator
Site Moderator badge
September 22, 2022

Hello @keebs82

I’ve had similar issues with the Elementor plugin. You can examine the php_error_log and you should see references about exceeded PHP memory limit. In my case, I needed to increase the PHP memory limit as the value was set to a default value which was rather low.

The thing is there might be another plugin that is causing the issue here. The Apache/Nginx error_log should also shed more light.

Regards

Hi there,

What I could suggest is:

  • Try enabling WordPress debug mode so that you could get more errors and possibly point you to the right direction
  • Look in your PHP error logs for some errors that might be causing that problem
  • Check your web browser console for any JavaScript errors

Feel free to share any of the errors here so we could try to advise you further.

Increasing the size of your Droplet is also an option, but it is better to first get the actual error that is causing the problem.

Let me know how it goes!

Best,

Bobby

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