The register action should only be returning a view; and therefore, should be relatively quick. Can you share the code for your Route, Controller action and View template?
Max execution time exceeded on Laravel Bootcamp
I am trying to run the Laravel bootcamp for Livewire, and right after installation, I tried starting the development server with
php artisan serve
however, the first page load failed with
Fatal error: Maximum execution time of 30+2 seconds exceeded (terminated) in /root/chirper-livewire/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php on line 606
I then killed and restared the server, and I got to the homepage... As soon as I click "Register", once again I get
PHP Fatal error: Maximum execution time of 30 seconds exceeded in /root/chirper-livewire/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php on line 606 PHP Stack trace: PHP 1. {main}() /root/chirper-livewire/vendor/laravel/framework/src/Illuminate/Foundation/resources/server.php:0 PHP 2. require_once() /root/chirper-livewire/vendor/laravel/framework/src/Illuminate/Foundation/resources/server.php:16
No amount of killing and restarting the dev server seems to get me to the "register" page.
I am using PHP 8.3.7 on WSL on Windows 11, the PC itself should be pretty decent with an Intel i9-11900H CPU and 16 GB RAM, and half of these resources (4 cores and 8 GB RAM) are reserved for WSL.
I tried checking resource usage with top, and indeed as soon as I click "register", CPU kicks in to 100% for about 30 seconds, and then it just dies.
What can I check to make it work?
EDIT:
I have tried pushing the max_execution_time with 2x increments, up to 240 seconds, which is a ridiculously high limit, but I still hit the error
Fatal error: Maximum execution time of 240+2 seconds exceeded (terminated) in /root/chirper-livewire/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php on line 606
I tried also the version with standard HTML templates with blade, and the one with Inertia+React, and I didn't find such problems; it is incredibly frustrating when trying out new technologies and the tutorial itself doesn't work, since you being a newbie obviously have no idea what to do to fix it.
Please or to participate in this conversation.