Elementor server error 500 when saving a page

Elementor server error 500 is an internal server error that appears when you save or update a page in Elementor, usually because PHP ran out of memory during the save. Check the admin-ajax.php response in your browser’s Network tab or turn on WP_DEBUG, then raise the PHP memory limit to 512M.

How to Fix Elementor 500 Error

When this happens, your changes don’t save and the popup doesn’t say why. Below is how to find the real error message and fix it, starting with the PHP memory limit, followed by the checks for plugin conflicts and server settings.


Understanding internal server error 500

A 500 internal server error means the server ran into a problem it couldn’t handle and stopped the request without saying exactly what went wrong. With Elementor, the cause is rarely Elementor itself. More often, your hosting settings, usually the PHP memory limit, aren’t enough for what WordPress and Elementor need while saving a page.

So, why do we see a 500 internal server error or fatal errors?

  • Error 500 is a generic “Internal Server Error” that indicates something has gone wrong on the server’s end.
  • The server is unable to specify the exact details of the problem.
  • It is a general status code for unforeseen problems that stop the server from completing the request.
  • Common causes include script errors, permissions issues, configuration problems, memory allocation needs, third-party plugin issues, and fatal errors.

Let’s continue with how to fix the 500 server error in the Elementor plugin.

Finding the possible cause

To find the cause of an Elementor 500 error, you need the real PHP error message hidden behind the generic popup. There are three places to look: the admin-ajax.php response in your browser, the WP_DEBUG output and your server’s PHP error log. In most cases, the message points to the PHP memory limit or a specific plugin.

See the real error in your browser

The quickest way to see the real error is your browser’s developer tools. Elementor saves your page in the background through a request to admin-ajax.php, so the popup only says “Server Error 500”, but the response to that request often contains the full PHP error. To find it:

  1. Open the page in the Elementor editor.
  2. Press F12 (or right-click > Inspect) and open the Network tab.
  3. Click Update in Elementor.
  4. Find the admin-ajax.php request marked in red, click it and open the Response tab.

If PHP errors are displayed, the response often shows the full message, for example “Allowed memory size … exhausted”, or the plugin file that caused the crash. If it’s empty, turn on WP_DEBUG as shown below.

Turn on WP_DEBUG

WordPress hides PHP error messages by default for security reasons, so to see the actual error behind the 500, set WP_DEBUG to true in wp-config.php. It’s a one-line change you can make through your hosting control panel’s File Manager or an FTP client, and you should switch it back off once you’ve noted the error.

Using the File Manager of your hosting control panel or an FTP client, locate wp-config.php in the public_html folder and open it for editing.

Scroll towards the bottom, and you will see the following line:

define('WP_DEBUG', false);

Change false to true and save the file. Be careful not to modify anything else.

define('WP_DEBUG', true);

After this modification, you should be able to display the full error message when saving or updating a page in Elementor. It is also important to check the server logs to identify the cause of the error.

Note this error and change the WP_DEBUG parameter back to false. For a full walkthrough of reading debug output, see how to debug a WordPress fatal error.

Alternatively, you should be able to view this message in the PHP error log (error_log file) generated by your web server Apache or Nginx.

error_log is located in the public_html or your root WP folder. Using File Manager, view the error_log. Scroll to the bottom of the file and search for a line that starts with a fatal or critical error.

The most common cause for the fatal error is the insufficient PHP memory limit.

You will probably see something like PHP Fatal error: Allowed memory size of … bytes exhausted.

Keep reading to discover how to increase the PHP memory limit.

Increasing the PHP memory limit

Increasing the PHP memory limit fixes most Elementor 500 errors. WordPress itself runs with a modest memory limit, as you can see in its requirements. However, a page builder like Elementor plus a few other plugins needs much more, so 512M is a safe starting point.

Hosting providers have different ways to increase the PHP memory limit depending on the control panel they provide. The most widely used one is cPanel.

To increase the PHP memory limit in cPanel, head to Software > MultiPHP INI Editor.

In the Options tab, find memory_limit and set it to 512M.

Contact your hosting service provider if their control panel does not provide a similar interface. You can increase the memory limit by editing php.ini or by adding a directive to your .htaccess file.

Alternatively, you can also set WP_MEMORY_LIMIT in the wp-config.php file. To do this, add the following line to your wp-config.php file just below the WP_DEBUG line we edited earlier:

define('WP_MEMORY_LIMIT', '512M');

Test Elementor with the increased memory limit

After raising the memory limit, save the page in Elementor again to see whether the 500 error is gone. Before testing, check that the new limit is actually active. Go to Tools > Site Health > Info: the Server section shows the PHP memory limit, and WordPress Constants shows WP_MEMORY_LIMIT.

If the PHP memory limit still shows the old value, your host may not let WordPress raise it. In that case, the wp-config.php line alone won’t help, so change it in your control panel or ask your host.

With a 512M memory limit, Elementor should be able to save and update the page successfully. If not, try to increase the memory limit until the 500 internal server error goes away.

Save the problem page as a template and import it into a new page

If the 500 error only happens on one page while other pages save fine, that page’s Elementor data may be the problem. Elementor support suggests saving the page as a template, creating a new page and importing the template into it, which gives you a clean copy of the same layout.

After saving the problematic page as an Elementor template, create a new page and click the Add Template icon to insert the saved template.

Additional solutions to consider

If raising the limit to 512M or even 1024M doesn’t help, memory isn’t the cause, and the 500 error is coming from something else: most often a plugin or theme conflict, an outdated Elementor version or wrong file permissions. Work through the following checks in order, and try saving in Elementor after each one:

  • Check the error_log or set WP_DEBUG to true to find out which plugin is causing the error. If the log points to files you don’t recognize or obfuscated code like eval(base64_decode(...)), your site may be infected. See how to scan and remove malware from WordPress.
  • Make sure Elementor and Elementor Pro (if applicable) are updated to the latest versions.
  • To pinpoint the conflicting plugin, disable all active plugins except for Elementor and Elementor Pro. Next, reactivate each plugin one by one to isolate the specific plugin that is responsible for the conflict. Check for possible reasons on the plugin’s WordPress directory support forum.
  • Try temporarily changing your WordPress theme to a default WordPress theme such as Twenty Twenty-Five to check if the issue continues. If the problem disappears, there could be a conflict with your current theme.
  • The most common configuration for file permissions is to have folders set to 755 and files set to 644. Contact your hosting service provider for the correct settings.
  • Clear your browser cache in its history settings and try again.

Optimizing the database with WP-Optimize

Optimizing the database can help when Elementor fails to save pages with a long edit history. WordPress keeps a revision every time you save a page or post, so you can switch back to an earlier version, and Elementor stores a full copy of its page data with each one.

While this feature is helpful in some cases, hundreds of revisions clutter up the database and slow down your site.

I highly recommend the WP-Optimize plugin to clean and optimize your WordPress database. Before you run it, create a backup with UpdraftPlus. If the backup stalls, see why UpdraftPlus backups get stuck.

Using its simple interface, you can easily optimize database tables, clean post revisions, auto-draft posts, trashed posts, and transients (a particular way of caching data for a certain period of time).

You can run optimizations one by one or all at once by clicking the Run all selected optimizations button. Cleaning and optimizing the database won’t always fix a 500 error, but it helps Elementor save pages that have built up hundreds of revisions.

If the error persists, repeat the above steps for identifying the error, or check the official troubleshooting page of Elementor Support for further assistance.

Contacting your hosting provider

If you still get a 500 internal server error in Elementor after trying the fixes above, contact your hosting provider. They can see your server’s error logs and PHP settings, which you may not have access to, so they can often find the root cause quickly and raise limits your control panel doesn’t let you change.

They can also check if your PHP memory limit is set high enough to support Elementor and other plugins, and make adjustments if necessary.

When contacting their support team, be sure to include details such as the exact error message you’re seeing, when the error appears, and any troubleshooting steps you’ve already taken.

This information will help their support team quickly identify and resolve the issue. In many cases, your hosting provider can resolve server errors by increasing the PHP memory limit, correcting file permissions, or addressing other server-side issues that may be affecting your website.

If you’d rather hand this off, our WordPress site maintenance plan covers server-side fixes like this.

Key takeaways

The key takeaway is that Elementor server error 500 is almost always a server-side problem, not an Elementor bug. Find the real error first in the admin-ajax.php response, the WP_DEBUG output or the PHP error log, then fix what it points to, which in most cases means raising the PHP memory limit to 512M.

  • A website displaying an HTTP 500 error can be an annoying problem, but it can be fixed by following proper troubleshooting steps. Usually, a low PHP memory limit or a plugin conflict is the source of this issue.
  • PHP memory limit (memory allocated to your website) is one of the most common causes for HTTP 500 error. Increasing the PHP memory limit can help resolve this issue.
  • Remember to check the error logs or temporarily enable WP_DEBUG to identify the source of the problem.
  • If the error began after making changes to your website, such as installing a new plugin or updating WordPress core, try reversing those changes to see if it resolves the issue.
  • If none of the solutions provided in this article fixes the Elementor server error 500, then seek assistance from an experienced WordPress expert, your hosting provider or Elementor support.

If you find this article helpful, please consider sharing it with others who might benefit from it as well.

About the author

Ozgur Sar Avatar