wordpress agency, wordpress agency for development, enterprise wordpress, wordpress website, wordpress developer, make a website, wordpress sites, wordpress blog, wordpress for dummies, wordpress website development, wordpress website design, wordpress design, wordpress web design, wordpress help, wordpress designer, premium wordpress themes, create a wordpress website, wordpress plugin development, wordpress theme development, build a wordpress website, wordpress website templates, wordpress web, woocommerce plugin, wordpress free website, wp themes, setting up a website, wordpress web development, wordpress homepage, wordpress cms, best wordpress sites, custom wordpress theme, wordpress for beginners, best wordpress websites, using wordpress, wordpress designs, create website using wordpress, wordpress web developer, wordpress website hosting, wordpress website examples, create new website, start a website, wordpress premium, wordpress web hosting, create wordpress, wordpress customization, wordpress plugin developer, create wordpress theme, custom wordpress development, wordpress guide, wordpress programming, wordpress design services, create wordpress blog, wordpress website tutorial, using wordpress to build a website, how to build a wordpress website, wordpress website developer, using wordpress to create a website, custom wordpress design, wordpress website designers, building a website from scratch, online site hosted by wordpress, wordpress website development company, hosted wordpress, i want to create a website, best wordpress, build website using wordpress, woocommerce wordpress, website using wordpress, make a wordpress website, setting up a wordpress site, start a wordpress blog, wordpress web design company, wordpress website development services, buy wordpress themes, custom wordpress, create wordpress site, wordpress web design services, wordpress themes for business, wordpress page, world press website, custom wordpress website, steps to create a website, websites created with wordpress, best way to create a website, wordpress web design for dummies, wordpress website design company, learn wordpress step by step, build wordpress site, building a website for dummies, using wordpress for a website, create a website from scratch, wordpress website themes, website design using wordpress, wordpress business website, best way to build a website, design wordpress theme, wordpress site design, wordpress professional, wordpress blog page, wordpress site development, how to create a website with wordpress, top wordpress sites, make a website from scratch, make a webpage, build your own wordpress website, setting up a wordpress blog, get wordpress, wordpress layouts, building a website, wordpress website design tutorial, wordpress free site, website creation, e commerce website, website design, create wordpress account, wordpress web development services, design a website, wordpress cms tutorial, setting up your own website, create your own website wordpress, website developer, website developers, best premium wordpress themes, wordpress free blog, top wordpress websites, create a blog website, build wordpress theme, webdesign, website design companies, best way to make a website, web agency, web developers, custom wordpress plugin development, web page design, wordpress malware, web design companies, ecommerce website design, designer websites, professional website design, wordpress best themes, wordpress create website free, professional website, custom wordpress website design, wordpress blog examples, wp plugin development, examples of wordpress sites, web development companies, web design agency, wordpress webpage, custom website design, mobile website design, best way to learn wordpress, web development agency, popular wordpress blogs, setting up a wordpress website, ecommerce web design, create your own wordpress theme, custom web design, ecommerce website development, wordpress web design theme, build your own wordpress site, website companies, website design agency, website development company, wordpress for business, web application development, best wordpress designers, custom website, web design tools, professional web design, web creation, design companies, web design studio, web development websites, new wordpress, ecommerce design, how to use wordpress to create a website, website design and development, wordpress website management, wordpress start, make a wordpress site, wordpress membership plugin, new wordpress website, web design and development, make wordpress, custom wordpress site, the best wordpress themes, ecommerce web development, wordpress application development, great wordpress sites, wordpress theme designer, new website design, wordpress step by step, web design portfolio, develop website using wordpress, create professional website, best web design, online wordpress, new wordpress site, wordpress tutorials for beginners, best web design company, create wordpress template, start wordpress website, themes wordpress, world press website design, build your website with wordpress, best wordpress blogs, learn to build a website, wordpress tutorial 2022, woocommerce shop, web design prices, premium wp themes, ecommerce website development company

WordPress Agency for Development | Vipe Studio » WordPress Development » How to Fix the Max Execution Time Error on WordPress: Increasing the Limit (Part 2)

How to Fix the Max Execution Time Error on WordPress: Increasing the Limit (Part 2)

Reading Time: 4 minutes

And…. We’re back, wrapping up this series on handling the WordPress max_execution_time fatal error. In the preceding part, we described how the error occurs, and how we can remove the element that’s the cause of the error. This time, we’ll be taking a different approach – actually increasing the time limit – either with a plugin, by making changes to some files, or by just contacting your host. Read on to find out!

Increase the Time Limit with a Plugin

As discussed previously, this time limit exists for a good reason – protecting your server from unoptimized elements like themes and increasing your website security.

On the other hand, sometimes you legitimately need to give a particularly heavy element a little more time, or your hosting provider may have set a particularly sort time limit, so you’d be justified in increasing the time limit.

The quick way is a plugin that modifies the execution time configuration without having to actually access those files directly. For instance, you could use one of the many all-round plugins – such as Google PageSpeed Insights – where the max_execution_time value can be increased.

You could also try a dedicated plugin like WP Maximum Execution Time Exceeded that, once installed, edits the .htaccess file and sets the time limit to a whole 5 minutes by default. This is pretty generous, and any time you need to revert to your original limit, you just need to uninstall the plugin.

  All You Need to Know About WebP Image Format

For more customized time limits, talk to your WordPress agency for development and they will usually handle it for you, but if the hands-on method will need editing a few files in WordPress via (preferably Secure) FTP.

Increase the Time Limit by Editing Files – wp-config.php

For this first way, we’ll edit wp-config.php. Once you’ve opened the WordPress root directory over FTP, locate the ‘public’ folder and open it to reveal the file in question. Open it for editing and insert this line of code:

set_time_limit(240);

Preferably placing it at the end, right before it says ‘stop editing’, though the exact position isn’t an issue because the existing contents of the file are untouched. Save the file and reupload it if needed, and the time limit is now 4 minutes (or any other value you choose). Of course, ensure that the error has been dealt with.

error fix

 

Increase the Time Limit by Editing Files – .htaccess

In the same ‘public’ folder, there’s .htaccess, especially if you’re using a shared host that runs on Apache. Backup the file, open it for editing, and insert this code:

php_value max_execution_time 240

Use any other value you’d like, of course. Save and reupload .htaccess to the ‘public’ folder over FTP, and verify that the error no longer appears.

  Why Does Custom Web Development Help Businesses Stay Authentic

Increase the Time Limit by Editing Files – php.ini

Next on our list is a less common file. If you find it in the ‘public’ folder, php.ini is another way we can increase the execution time available. On FTP, open the file and edit it by adding the code:

max_execution_time = 240

Feel free to use any value, but once the file is saved and re-uploaded, do check that you’ve fixed the error.

Increase the Time Limit by Talking to Your Host

On a dedicated server, all these methods will work great, but some shared hosts would want to protect their server, and may not even allow you to modify the execution time limit. In this case, contact your WordPress agency for development, or the hosting support directly, and inform them about the error you’re facing. Request the hosting provider to increase the time limit to somewhere in the 1-to-5-minute range, and if they can, that ought to be the last you see of this error.

Effortlessly resolved

Heavy PHP scripts in a WordPress element can bog your server down, and sometimes even trigger this error, causing you some trouble both in the backend and frontend. However, we hope that thanks to this tutorial, you now know it is hardly ‘fatal’ and effortlessly resolved.

  Custom Wordpress Themes: Crafting Unique Digital Identities for Businesses

We’ll see you next time, with more tutorials and tips from our team here at Vipe Studio.

Looking for WordPress Website Development for your Business?

Our professional developers have proven experience in building high-quality business websites that outperform the competition, thanks to our meticulous attention to detail and the implementation of cutting-edge technologies. We will conduct an in-depth business analysis to ensure the website we create for you meets your highest expectations. Your site will have all of the necessary elements to assist you in increasing your ROI and sales.

Contact Us

The content of this website is copyrighted and protected by Creative Commons 4.0.

Tags:

Vipe Team

Author Vipe Team

Our tireless team who creates high-quality WordPress-related content for you 24/7/365.

Comments

Leave a Reply

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

We have already created hundreds of profiting websites!

We have already created hundreds of profiting websites!

Subscribe to our newsletter and get our best WordPress tips!

[mc4wp_form id="8747"]