Maximum execution time of 30 seconds exceeded

Since I am only using livewire / blade for my filament admin panel in my laravel app, and I am getting this error a lot when developing the filament admin panel locally, but not the vue frontend, I thought this was the best place to ask about this. I am getting this error every time I navigate to a page, where I have to refresh the page at least one time to get rid of it:
Maximum execution time of 30 seconds exceeded
Maximum execution time of 30 seconds exceeded
Which usually is pointing to the vendor/symfony/finder/Iterator/SortableIterator.php:51 file where line 51 is this:
$this->sort = static fn (\SplFileInfo $a, \SplFileInfo $b) => $order * strcmp($a->getRealPath() ?: $a->getPathname(), $b->getRealPath() ?: $b->getPathname());
$this->sort = static fn (\SplFileInfo $a, \SplFileInfo $b) => $order * strcmp($a->getRealPath() ?: $a->getPathname(), $b->getRealPath() ?: $b->getPathname());
 Flare error share: https://flareapp.io/share/NPLx0BQP Has anyone else experienced this? Or know what the most probable cause is for this? It is getting quite difficult for me to do local development on my filament admin panel based on this, so I would really love to find the cause for this and fix it. Any help is highly appreciated!
Flare
Maximum execution time of 30 seconds exceeded - The error occurred at https://meinrad_laravel.test/admin/billings
14 Replies
Kymset
Kymset6d ago
It looks like you are getting this error on the list page of a resource. Are you able to see individual records without getting this error? If you are able to share the code / screenshot of the page you are trying to access people can help more The solution to this maybe to go into your php.ini file and increase the execution time
max_execution_time = 60
max_execution_time = 60
nowak
nowak6d ago
It is really any resource list page, to share a simple resource page, it could be my MealTypeResource which I have attached. I get the error less frequently on edit pages of individual records, but it still occurs. Increasing the max execution time to 60 seconds seems to help suppress the error quite a bit, thanks for sharing that!
Dennis Koch
Dennis Koch6d ago
The question should be: why does your page load for more than 30 seconds?
nowak
nowak6d ago
It doesn't, I get this error after 1-3 seconds from refreshing the page.
Dennis Koch
Dennis Koch6d ago
That sounds pretty weird though
nowak
nowak5d ago
I know, but I have no idea how to debug this error since it points to a symfony/laravel source file :/
Dennis Koch
Dennis Koch5d ago
I wouldn't even look at the code. The questions is: Why does PHP time out after some seconds if the limit is 30seconds?
Kymset
Kymset5d ago
Maybe worth looking at your setup. Could be something to do with docker / valet / laragon / other Could be something in your mysql setup causing that to take longer. Honestly a whole lot could be the source of the problem 🙄
nowak
nowak5d ago
I agree that it might have something to do with my setup, but I find this so damn hard to debug. Here is a screenshot of my Network tab from the developer console on an occasional 30 second timeout error. Do any of these seem particularly suspicious?
No description
nowak
nowak5d ago
It seems like it is always due to an update request, which also shows up as an error in my client developer console, as well as a report object, which I seems to be the same as what I shared earlier via flare.
No description
No description
LeandroFerreira
Are you using Laravel Herd?
nowak
nowak5d ago
Yes I am
LeandroFerreira
GitHub
Timeout after 10 seconds even though php settings are set to 30 sec...
Platform macOS Operating system version macOS Sonoma 14.4.1 System architecture ARM64 (M1, M2, etc) Herd Version 1.6.0 Build: 24 PHP Version 8.1.26 Bug description When working on a site that has t...
nowak
nowak5d ago
Thank you @Leandro Ferreira! Herd php 8.2 is still at 8.2.20, so I'm hoping this will be fixed in 8.2.21 when it reaches Herd 🙇‍♂️
Want results from more Discord servers?
Add your server
More Posts