Categories
Drupal PHP

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
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time=5000

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).

By osify

2 replies on “Maximum execution time of 60 seconds exceeded [Drupal]”

Leave a Reply

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