0%
Loading ...

Start Consultation

+44-777-423-0475

Hello, fellow WordPress aficionados! 🌟 If you’ve ever encountered the perplexing “maximum execution time exceeded” error while managing your WordPress site, fear not – you’re not alone. In this comprehensive guide, I’ll walk you step by step through resolving this frustrating issue.

Step 1: Grasping the Issue

The “maximum execution time exceeded” error surfaces when PHP scripts on your WordPress site surpass the time limit allocated by your hosting environment. To troubleshoot, you’ll dive into PHP’s max_execution_time setting.

Step 2: Locating Your php.ini or .htaccess File

Connect to your WordPress site via FTP or your hosting’s file manager. Find the php.ini file in the root directory. If absent, you can craft one there. Alternatively, you can work with the .htaccess file if you’re unable to modify php.ini.

Step 3: Editing php.ini

Open php.ini with a text editor. Locate “max_execution_time” and modify its value to a larger timeframe, such as:

max_execution_time = 300

This value is in seconds. Adjust as per your site’s requirements.

Step 4: Save and Upload

After editing, save the php.ini file and upload it back to your server. This extension of the execution time should grant your scripts the breathing room they need.

Step 5: .htaccess Alternative

For those on Apache-based hosting, altering the .htaccess file is an option. Add these lines:

php_value max_execution_time 300
php_value max_input_time 300

Again, values are in seconds.

Step 6: wp-config.php Override

If neither of the above methods suits you, modifying the wp-config.php file is an alternative. Add this line:

set_time_limit(300);

This is PHP’s set_time_limit function in action.

Step 7: Testing the Waters

Navigate back to your WordPress site and perform the action that triggered the error. If all goes smoothly, you’ve conquered the maximum execution time hurdle.

Step 8: Hosting Support

Should you encounter obstacles in making these changes or experience no improvement, don’t hesitate to reach out to your hosting support. They can guide you through adjustments or recommend other solutions.

Conclusion:

Kudos on navigating the tricky terrain of “maximum execution time exceeded.” Armed with the know-how to manipulate PHP settings, you’ve empowered yourself to keep your WordPress site running smoothly.

Remember, each WordPress puzzle has its solution, and your ability to troubleshoot these issues further cements your mastery of the platform.

If you’ve followed all the steps above and you are still facing the for this issue, it’s time to seek professional help. Please feel free to Contact us for our professional service for further assistance.