Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix Resource Limit Is Reached Error on WordPress

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

If you see the “Resource Limit Is Reached” error on your WordPress site, it means your hosting account has hit a cap on CPU, memory, or concurrent processes. This guide walks you through the most common fixes, from clearing caches to contacting your host, so you can get your site back online quickly.

What You'll Need

  • Access to your WordPress admin dashboard (wp-admin) or FTP/cPanel credentials.
  • Your hosting provider's support contact information (email, live chat, or phone).
  • A basic understanding of file editing (e.g., using a text editor like Notepad++ or a file manager).

Step-by-Step

  1. Check if the error is temporary. Refresh the page after a few minutes. If it loads, the limit was likely a temporary spike. If it persists, move to the next step.
  2. Clear all caches. Go to Plugins in your WordPress dashboard and deactivate any caching plugin (e.g., W3 Total Cache, WP Super Cache). If you can't access the dashboard, use FTP or cPanel File Manager to rename the plugin folder (e.g., wp-content/plugins/w3-total-cache to w3-total-cache-off). Also clear your browser cache and any server-side cache (like Varnish or CDN).
  3. Deactivate all plugins temporarily. If you can access wp-admin, go to Plugins and select all, then choose “Deactivate.” If you can't, use FTP/cPanel to rename the entire plugins folder to plugins-off. This disables all plugins at once. If the error goes away, reactivate plugins one by one to find the culprit.
  4. Switch to a default theme. In the dashboard, go to Appearance > Themes and activate a default WordPress theme (like Twenty Twenty-Four). If you can't access the dashboard, rename the current theme folder in wp-content/themes/ to something like theme-off. WordPress will fall back to a default theme.
  5. Increase PHP memory limit. Edit the wp-config.php file (in your WordPress root folder) and add this line just before the /* That's all, stop editing! */ line:
    define('WP_MEMORY_LIMIT', '256M');
    If that doesn't work, also try editing the .htaccess file (in the same folder) and add this at the top:
    php_value memory_limit 256M
    (This only works on some servers; if it causes a 500 error, remove it.)
  6. Optimize your database. Use a plugin like WP-Optimize or run phpMyAdmin from cPanel to run the “Optimize Table” command on all tables. This can reduce memory usage.
  7. Check for heavy cron jobs. In cPanel, look for “Cron Jobs” and review any scheduled tasks. If you have a plugin that runs frequent cron jobs (like a security scanner), increase the interval or disable it temporarily.
  8. Contact your hosting provider. If none of the above works, the issue is likely on the server side. Contact your host with the exact error message and time it occurred. Ask them to check the error logs and advise if you're hitting a hard limit on your plan.

Common Mistakes

  • Editing files incorrectly: Using a code editor that adds BOM (byte order mark) or saving with wrong line endings can break your site. Always use a plain text editor and save as UTF-8 without BOM.
  • Deactivating all plugins without a backup: If you can't access the dashboard, you might accidentally delete the wrong folder. Always back up your wp-content folder before making changes.
  • Ignoring the actual limit: Some hosts have a hard limit on CPU seconds or memory that cannot be changed. Increasing memory in wp-config won't help if the server enforces a lower cap.
  • Not clearing server-side caches: Even after deactivating caching plugins, your host's server cache (like LiteSpeed or Varnish) might still serve stale data. Clear those via cPanel or ask your host.

Tips

  • Always keep a recent backup of your site (files and database) so you can restore quickly if something goes wrong.
  • Use a plugin like Query Monitor to identify which plugins or queries are using the most resources, but only after the error is resolved.
  • If you're on shared hosting, consider upgrading to a plan with higher limits or moving to a VPS if you regularly hit resource caps.
  • Schedule regular maintenance: update plugins, themes, and WordPress core to avoid conflicts that cause resource spikes.

Troubleshooting

If the error persists after following all steps:

  • Check your hosting status page. Sometimes the error is due to a server-wide issue, not your site. Look for announcements from your host.
  • Inspect error logs. In cPanel, go to Metrics > Errors or access the error_log file in your WordPress root. Look for lines that mention “allowed memory size” or “maximum execution time”.
  • Try a different browser or device. If the error only appears on your end, it could be a browser extension or local cache issue.
  • Use a maintenance mode plugin. If you need to work on the site but visitors see the error, enable maintenance mode so they see a friendly message instead.
  • If you can't access wp-admin at all, use FTP or cPanel to make changes. Rename the plugins folder, then try to log in. If that works, the issue is plugin-related.

Frequently Asked Questions

What exactly does “Resource Limit Is Reached” mean?

It means your hosting account has exceeded a server resource cap, such as CPU usage, memory, or the number of concurrent processes. This is common on shared hosting where resources are limited per account.

Will clearing my browser cache fix it?

No, the error is server-side. Clearing your browser cache might help if the error is due to a cached version of a page, but it won't resolve the underlying resource limit issue.

Can I increase the resource limit myself?

Sometimes you can increase the PHP memory limit via wp-config.php, but the actual server resource limits (like CPU or process limits) are set by your host and usually cannot be changed from your side.

Why did this happen suddenly?

Common causes include a spike in traffic, a plugin or theme with a memory leak, a large number of cron jobs running at once, or a malicious bot attack. Review your analytics and security logs to identify the trigger.

Should I switch to a different hosting provider?

If you consistently hit resource limits on shared hosting, it may be time to upgrade to a VPS or dedicated server. However, first try to optimize your site and reduce resource usage before switching.

How do I prevent this from happening again?

Regularly update your plugins and themes, use a lightweight theme, limit the number of plugins, enable caching, and consider using a CDN to reduce server load. Also monitor your resource usage through your hosting dashboard.