WordPress “Maximum Execution Time Exceeded” Error: How to Fix It (2026)

Monitor displaying programming code

“Maximum execution time exceeded” means a process took longer than PHP allows, often 30 or 60 seconds. Raise max_execution_time to 60 in php.ini or .htaccess, or ask your host to do it. If the error persists, deactivate plugins one by one to find what makes the task so slow.

The error appears during imports, big updates, backups or heavy plugin tasks. A related error, “connection timed out”, appears when your site tries to do more than your server can manage. Both are covered below.

What the Error Means

The WordPress handbook says you may see a message such as “Maximum execution time of 30 seconds exceeded” or “Maximum execution time of 60 seconds exceeded”. It means a process is taking too long to complete and is timing out. The handbook adds that connection timeouts are particularly common on shared hosting, where memory limits are restricted.

Quick Diagnosis

What you see Likely cause Start with
Error during import or backup Task needs more time than allowed Fix 1 or Fix 2
Error right after plugin install Heavy or conflicting plugin Fix 3
Cannot change the setting Host restriction Fix 4

Before You Start

Back up your site. The handbook specifically says to back up .htaccess before editing it.

Fix 1: Edit .htaccess

Add this line to your .htaccess file:

php_value max_execution_time 60

This only works on some server setups. If your site shows a 500 error after adding it, remove the line and use Fix 2 or ask your host. Our 500 error guide explains how to recover.

Fix 2: Edit php.ini

Add this line to php.ini:

max_execution_time = 60

The handbook points out php.ini is not a WordPress file. If you are not sure how to edit it, or your shared host blocks it, contact your host and ask them to raise the maximum execution time.

Fix 3: Find the Plugin or Theme Causing It

For connection timeouts the handbook suggests several steps: deactivate all plugins and reactivate them one by one, switch to a default WordPress theme, and increase the memory limit in wp-config.php. See our guide to the memory limit error for the exact line.

Fix 4: Contact Your Host

On shared hosting you often cannot change these limits yourself. Send your host the exact error text, what task you were running, and the limit you want.

How to Prevent It

  • Run imports and backups in smaller batches.
  • Remove plugins you do not use.
  • Choose hosting that matches your traffic.

Verified Facts and Sources

The error messages, the .htaccess and php.ini lines, and the connection timeout steps come from the WordPress handbook page on common errors. We did not trigger the timeout on a test site for this article.

Frequently Asked Questions

What does maximum execution time exceeded mean?

A process ran longer than the time PHP allows, so PHP stopped it.

What value should I set?

The handbook example uses 60 seconds. Start there, and raise it only if a task still times out.

Why do timeouts happen on shared hosting?

The handbook says connection timeouts are common there because the memory limit is restricted.

Is raising the limit the only fix?

No. A plugin that does too much work can cause it, so test plugins one by one.

Updated December 2, 2026.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *