Maximum execution time of 60 seconds exceeded [Drupal]

The error:

Maximum execution time of 60 seconds exceeded

When you execute some PHP script that spends longer time than the configuration of php.ini (which is sometimes is 30 or 60 seconds).

With drupal, you might need much in your local development so let’s change in php.ini at:

  • xampp\php\php.ini
  • variable: max_execution_time
    • To value (zero, no limit): 0
    • Or to a higher value such as (in seconds): 5000
; Resource Limits ;

; Maximum execution time of each script, in seconds
; Note: This directive is hardcoded to 0 for the CLI SAPI

The solution above would apply for PHP application but of course, your adaption to use less time execution in the application is very important for your production environment (hosting).

Published by osify

Find us via: Twitter, Facebook

Join the Conversation


Leave a comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.