You can increase the maximum execution time in your php.ini file.
Maximum execution time of 30 seconds exceeded
Hi, i am getting after signing up to my website when i host it in my web server
Maximum execution time of 30 seconds exceeded
any idea what should i do to avoid this?
regards, ci
Hi @Ci ,
There's a few ways to do it, (some borrowed from SO, http://stackoverflow.com/questions/7739870/increase-max-execution-time-for-php)
-
Check if your script is doing something silly and taking ages when it shouldn't be, try
dd($aVar); -
Increase the execution time at php.ini level,
max_execution_time=300 -
Use PHP at runtime to increase it,
ini_set('max_execution_time', 300); //300 seconds = 5 minutes -
Use the .htaccess to increase it,
<IfModule mod_php5.c>
php_value max_execution_time 300
</IfModule>
#HTH
i experience this also
i get following error from the laravel.log file
local.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Maximum execution time of 30 seconds exceeded
in vendor/barryvdh/laravel-debugbar/src/DataCollector/QueryCollector.php:204
but only on my local environtment? how comes?
Laravel is loading like hell
[Fri Apr 19 20:36:31 2019] PHP Fatal error: Maximum execution time of 60 seconds exceeded in C:\wamp64\www\dev\aviationjob\vendor\laravel\framework\src\Illuminate\Events\Dispatcher.php on line 329
[Fri Apr 19 20:38:44 2019] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097160 bytes) in C:\wamp64\www\dev\aviationjob\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Concerns\HasRelationships.php on line 554
[Fri Apr 19 20:39:44 2019] PHP Fatal error: Maximum execution time of 60 seconds exceeded in C:\wamp64\www\dev\aviationjob\vendor\laravel\framework\src\Illuminate\Database\DatabaseManager.php on line 78
[Fri Apr 19 20:39:53 2019] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in C:\wamp64\www\dev\aviationjob\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Concerns\HasRelationships.php on line 554
for any one had this problem the easy way to fix is run sudo apt-get install php-mbstring
thanks!
@DrCod3r thanks! didn't realized that I had to have php-mbstring WITH php8.2-mbstring (php 8.2 been my php version). I just had php8.2-mbstring installed and thought that was everything that was needed.
Please or to participate in this conversation.