• Home
  • My Products
  • Reviews
  • WordPress
  • Learning
  • Things to Avoid

Marketing With Vladimir

Welcome to my Internet marketing laboratory

You are here: Home / WordPress / Solved: “Maximum execution time of 30 seconds exceeded”

Solved: “Maximum execution time of 30 seconds exceeded”

June 11, 2015 Leave a Comment

Solved: “Maximum execution time of 30 seconds exceeded”

If you have been using WordPress for a while I’m quite sure that you’ve encountered this PHP fatal error: “Maximum execution time of 30 seconds exceeded“. This is usually happening because PHP has a maximum time to execute a script, which usually defaults to 30 seconds. It is possible that some plugins need a longer execution time for certain tasks, for example creating a backup.

The Problem

The other day I was testing a backup plugin and it was crashing every time I was attempting to create a backup. In this case there wasn’t any message at all. It was simply failing without any explanation, so I abandoned it. I wasn’t very fond of it anyway.

Later I realized that the error was occurring during an Ajax call to the server behind the scenes, that’s why the error message wasn’t visible.

But today I was trying to update my OptimizePress templates and this time it kept displaying this error over and over again. It was now clear to me that I have to increase the execution time.

The Solutions

I’m quite sure that you’ve encountered a similar situation, but I have good news for you, I found a solution. In fact there are even three solutions.

1. Modify wp-config.php file.

Open wp-config.php file and add this line near the top but after <?php  opening tag:

set_time_limit(300);

You can set any value. I used 300 seconds (5 min).

2. Modify .htaccess file.

Add this line in .htaccess:

php_value max_execution_time 300

This must be tested with your hosting. In my case, this didn’t work. I presume that my hosting doesn’t support php_value directives.

3. Modify php.ini file.

max_execution_time = 300;

This solution is only feasible if you have access to php.ini file, which is not the case on shared hosting.

In my case I used the solution #1 which was the only usable for me. After I made the change, the update succeeded.

PHP Resources

If you want to go beyond the subject of this article and learn more about PHP, here are some of the best websites to visit:

  • PHP.net
  • W3Schools
  • Udemy

Read Also:

  • How to Add PHP Code to WordPress Without Touching the Theme

    There are times when you need to add customized filters or actions to a WordPress blog. The Problem When you…

  • Blog Coffee
    How to Migrate a WordPress Blog to a New Hosting

    My first year subscription at SiteGround was approaching to it's end and I was facing to the decision whether to…

  • trackback
    3 Methods to Disable XML-RPC Pingback in WordPress

    In the previous post, I was talking about testing and adding ping or update services to WordPress. In this article…

About Vladimir

I have a solid background in computer networking and programming. I recently started to develop applications related to internet marketing.

« Simple Traffic Solutions – Review and Discount Coupon
Are URL Shorteners Really Useful? »

Leave a Reply Cancel reply

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


Recent Reviews

  • 24 Hour Profits – Review and Case Study

    24 Hour Profits – Review and Case Study

  • New Ultimate Stock Photos Package with MRR – Review

    New Ultimate Stock Photos Package with MRR – Review

  • CB Passive Income Review – A Fully Functional Free Version Included

    CB Passive Income Review – A Fully Functional Free Version Included

  • A Simple Way to Monetize your WordPress Blog – Content.Ad Review

    A Simple Way to Monetize your WordPress Blog – Content.Ad Review

  • The Bloggers Roadmap – Honest User Review

    The Bloggers Roadmap – Honest User Review

Recent Posts

  • How to Cancel All Friend Request Sent on Facebook in One Click

    How to Cancel All Friend Request Sent on Facebook in One Click

  • How to Auto Post Your Content to Facebook, Google+, Twitter and LinkedIn

    How to Auto Post Your Content to Facebook, Google+, Twitter and LinkedIn

  • Two Ways to Make YouTube Videos Responsive in WordPress

    Two Ways to Make YouTube Videos Responsive in WordPress

  • Subdomains vs Subfolders Usage Comparison

    Subdomains vs Subfolders Usage Comparison

  • How to Create Exit Intent Pop-ups Using Free Plugins

    How to Create Exit Intent Pop-ups Using Free Plugins

Affiliate Disclosure

While we receive affiliate compensation for reviews / promotions on this page, we always offer honest opinion, relevant experiences and genuine views related to the product or service itself. Our goal is to help you make the best purchasing decisions, however, the views and opinions expressed are ours only. As always you should do your own due diligence to verify any claims, results and statistics before making any kind of purchase. Clicking links or purchasing products recommended on this page may generate income for this website from affiliate commissions and you should assume we are compensated for any purchases you make.

About

  • About Me
  • Sign Up
  • Contact Me

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Disclaimer

Follow Me

Copyright © 2022 · Marketing With Vladimir

Get Comment Funnels For FREE (normally $197/m)

(Enter your name and email address below and click “Continue…” to complete)