This is a restriction of PHP. You can increase the timeout value to avoid it if the script needs more than 30 seconds to run sometimes.
Find max_execution_time in your php.ini file, increase the value, then restart Apache and you should be good.
You may also want to look at why that script takes more than 30 seconds to run.
I believe you can force the max_execution time in your code this way
ini_set('max_execution_time', 60);
Thanks for the replies. But I don't think our code will take that much time. And it seems that these are triggered by Laravel...
I have a similar issue, code shouldn't take that long, upon visiting same pages that create the error and running same code we have no issue...just seems to have random timeouts
I solved my issue, a push had overwritten the session.php file and server had started using file based sessions instead of Memcached. the iterator related issue makes sense, the errors were somehow related to file pointers reading session files.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community