Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
What are the steps required to reproduce the bug?
Create a local web server on a poorly or busy machine and launch the instalation process.
What behavior were you expecting?
I expect that the instalation wizard ask me about it needs.
What happened instead?
Some times a fatal error happens.
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: http://127.0.0.1/drupal.8.0.a10/core/install.php?langcode=es&profile=standard&id=1&op=do_nojs&op=do
StatusText: OK
ResponseText:
( ! ) Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\drupal.8.0.a10\core\lib\Drupal\Core\Database\Statement.php on line 61
Call Stack
#TimeMemoryFunctionLocation
10.0003137688{main}( )..\install.php:0
20.0068670832install_drupal( )..\install.php:33
30.889912969136install_run_tasks( )..\install.core.inc:99
41.527915693664install_run_task( )..\install.core.inc:477
51.528315693800_batch_page( )..\install.core.inc:553
61.531815734928_batch_do( )..\batch.inc:74
71.531815734944_batch_process( )..\batch.inc:92
81.533315776480call_user_func_array
( )..\batch.inc:251
91.533415776504_install_module_batch( )..\batch.inc:251
101.533415776736Drupal\Core\Extension\ModuleHandler->install( )..\install.core.inc:2072
1129.824131630520Drupal\Core\Extension\ModuleHandler->invokeAll( )..\ModuleHandler.php:696
1229.885231124224call_user_func_array
( )..\ModuleHandler.php:315
1329.885231124408language_modules_installed( )..\ModuleHandler.php:315
1429.889031186272Drupal\language\LanguageNegotiator->updateConfiguration( )..\language.module:627
1529.889831183840Drupal\language\LanguageNegotiator->getNegotiationMethods( )..\LanguageNegotiator.php:325
1629.889831183912Drupal\Core\Plugin\DefaultPluginManager->getDefinitions( )..\LanguageNegotiator.php:222
1729.924031268784Drupal\Core\Plugin\DefaultPluginManager->setCachedDefinitions( )..\DefaultPluginManager.php:185
1829.924031268880Drupal\Core\Cache\DatabaseBackend->set( )..\DefaultPluginManager.php:237
1929.924031268912Drupal\Core\Cache\DatabaseBackend->doSet( )..\DatabaseBackend.php:146
2029.924231276912Drupal\Core\Database\Query\Merge->execute( )..\DatabaseBackend.php:201
2129.924631284616Drupal\Core\Database\Driver\mysql\Insert->execute( )..\Merge.php:449
2229.924631285712Drupal\Core\Database\Connection->query( )..\Insert.php:34
2329.924731288328Drupal\Core\Database\Statement->execute( )..\Connection.php:537
In "\core\lib\Drupal\Core\Database\Statement.php on line 61" it's necesary a "set_time_limit(0)".
I use XAMPP server in Windows 7.
Comments
Comment #1
tim.plunkettI'm not sure how this is a core bug, and not just a slow machine or bad PHP config.
Comment #2
dahousecat CreditAttribution: dahousecat commentedEdit C:/xampp/php/php.ini and increase the max_execution_time.
Comment #3
ajitsandip CreditAttribution: ajitsandip commentedFatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\drupal\includes\database\database.inc on line 2171 this is error for give solution.
I have using XAMPP and Windows 8 os
Comment #4
itapplication CreditAttribution: itapplication commentedFatal error: Maximum execution time of 30 seconds exceeded in xxx\xxx\xxx\d8.0.0-beta6\core\lib\Drupal\Core\Database\Statement.php on line 61
In php.ini i set max_execution_time = 180 still i get this error.
Comment #5
amam4web CreditAttribution: amam4web as a volunteer and commentedRestart Apache after changing php.ini to make changes take place
Comment #6
Revathi Manohar CreditAttribution: Revathi Manohar as a volunteer and commentedHi,
This is due to larger memory conception of your system.you have to change your php.ini file,with the maximum execution time to 1200 ms for avoiding that error during installations.i am also have the same issue from initial stage.now it is rectified.
Thank you,
Comment #7
Revathi Manohar CreditAttribution: Revathi Manohar as a volunteer and commentedlocation of php.ini file is /etc/php5/apache2/php.ini in line no:385
max_execution_time = 1200
Comment #8
Dave Hansen CreditAttribution: Dave Hansen as a volunteer commentedThanks dahousecat, amam4web, and Revathi!
For Windows, edit C:/xampp/php/php.ini and increase the max_execution_time and restart apache. In my case not all tables were created so I dropped and recreated the database and restarted install.php again.
Comment #9
klausiComment #11
prabhakarb CreditAttribution: prabhakarb at Capgemini commentedmax_execution_time= < Maximum execution time of each script, in seconds >
Value '0' for unlimited execution time
Comment #12
Anys CreditAttribution: Anys commentedIf you have more than one PHP version installed on your machine, make sure to increase the "max_execution_time" of each php.ini of them.
Comment #13
ultrasuoni CreditAttribution: ultrasuoni commented@dahousecat: it's right
I have do in PHP.INI local su xampp :
;;;;;;;;;;;;;;;;;;;
; 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= 360
Comment #14
auxiliaryjoel CreditAttribution: auxiliaryjoel commentedI've increased the max_execution_time to 900 in every php.ini file I can find in my MAMP folder, but I still keep getting this error, when trying to do "entire site" backup option using the Backup and Migrate in the Configuration menu.
[17-Aug-2018 14:12:50 Australia/Brisbane] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /Applications/MAMP/htdocs/drupal20180405/core/lib/Drupal/Core/StreamWrapper/LocalStream.php on line 211
This is a localhost build on mac, Drupal 8.5.6