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

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

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.