If Elementor pages on a WordPress site return a 503 error while other pages load, and debug.log is empty, check the memory limit first. Elementor loads a lot of code on every page it renders, and a site with no memory setting in wp-config.php can run it short. Read the site's error_log to confirm, then set WP_MEMORY_LIMIT in wp-config.php. This guide covers both steps and what to do if memory isn't the cause.
A memory limit is not the only thing that produces a 503 error in WordPress, so confirm it in the log before you change anything.
503 Service Unavailable.wp-content/debug.log is empty or doesn't exist.The empty debug.log is expected. When PHP runs out of memory it stops immediately, and WordPress never gets the chance to write its own debug entry. The evidence is in PHP's error_log, not WordPress's log.
On WP Aligned hosting, PHP logs errors to a file named error_log in the folder of the script that ran. Check public_html/error_log (or the domain's document root) and wp-admin/error_log. For how to open it and group entries by plugin, see WordPress PHP Errors: Deprecated Notices and error_log.
Look at the newest entries, from around the time the 503 happened:
tail -n 50 error_log
A memory problem looks like this:
PHP Fatal error: Allowed memory size of 134217728 bytes (tried to allocate 262144 bytes) in /home/exampleuser/public_html/wp-content/plugins/elementor/core/example.php on line 120
The first number is the limit PHP applied to that request. 134217728 bytes is 128 MB. If you see this line, go to Step 2.
If the log shows nothing from the time of the 503, or shows a different error, memory may not be the cause. Skip to the "If memory isn't the cause" section below.
Two limits matter:
| Setting | Where it's set | What it does |
|---|---|---|
PHP memory_limit |
MultiPHP INI Editor in cPanel | The ceiling PHP enforces per request |
WP_MEMORY_LIMIT |
wp-config.php |
What WordPress asks PHP to allow for front-end requests |
To see what WordPress is using, open Tools > Site Health > Info > Server in wp-admin and read the PHP memory limit and WordPress memory limit lines.
To check or change the PHP limit, open cPanel, go to Software > MultiPHP INI Editor, choose the domain and look at memory_limit.
wp-config.php first (download a copy from File Manager).wp-config.php in the site's document root./* That's all, stop editing! Happy publishing. */:php
define( 'WP_MEMORY_LIMIT', '1024M' );
We recommend 1024 MB for sites running Elementor. If the site still fails at 1024 MB, don't keep raising the number. Something is using memory it shouldn't, and the next step is finding it (see below).
WP_MEMORY_LIMIT can't lift a request above the PHP memory_limit set for the domain. If the PHP limit is lower than the value you define, PHP's limit wins. Check both.
error_log (: > error_log over SSH, or delete it in File Manager) and check it again after a day. No new Allowed memory size entries means it held.A 503 is a generic "the server couldn't serve this request" response. If error_log shows no memory error, work through these:
PHP Fatal error other than memory. The file path in the line names the plugin or theme at fault.WP_MEMORY_LIMIT when you build a site on Elementor, before launch.error_log now and then for Allowed memory size lines.Open a ticket if:
error_log shows a memory error at 1024 MB or higher.error_log shows nothing for the time it happened.Include the domain, the time of the 503 and a few lines from error_log. See Need Help?.
PHP can stop a request for exhausting memory before WordPress writes anything to debug.log. Read the PHP error_log instead.
We recommend 1024 MB for Elementor sites. Needs vary with the number of add-ons and the size of the pages.
No. It fixes memory-related 503 errors, which error_log confirms with an Allowed memory size line. Other causes need a different fix.