• Hi everyone!

    This is not really a this-breaks-my-blog kinda thing, but…
    When I want to upgrade using the WP update function for NextGEN or Cforms it failes. After about 30 seconds I get a browser screen asking me where I want to save the update.php file. I am on a hosted server and the PHP Max Script Execute Time is set to 30s. So I guess there is the problem.. I can’t change it though.

    My question is this:
    If this is caused by the script exceeding 30s, is there any way to make wordpress cope with execution time problems more gracefully?

    The plugins are not broken so I guess the downloading of the archives to the server is the limiting part of the process, but I can imagine that update processes which get stuck in the next steps will get painful.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey John

    You can increase your php scripts max execution time by adding the following line of code to your php.ini file

    max_execution_time = 180

    The php.ini file lists your custom php settings, and can be found in the root directory of your site.

    Simply edit the file in wordpad or something similar, save, and upload, overwriting the file.

    Good luck.

    Thread Starter johnvandam

    (@johnvandam)

    Thanks Darkstarfmc!

    As it is, the hosting service where my site is hosted isn’t keen on customers snooping around and changing any parameters. So no php.ini 🙁 or log files for that matter. They are cheap though, and it looks like I have very few server downtime.

    I found out that the plugins are actually installed even though the scripts runs into a “PHP Max Script Execute Time”. I suspect there are some wp-cron thingies going on in the background but I’m no php wiz and I’m to buzy with work to find out 🙂

    All in all I am amazed that my plugins eventually get installed, so thumbs up to the wordpress team!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin auto upgrading and Max Script Execute Time’ is closed to new replies.