Page 1 of 1

Help... Why is this happening to me?: php7:error

Posted: 2025-03-14 21:43
by lramirez
Hi, I'm also having a similar problem... but I don't know if anyone else has had it... there's a random moment when the app page doesn't load or is very slow... and when I check the publisher's error log, it tells me this:
[Fri Mar 14 15:40:22.098503 2025] [php7:error] [pid 8900:tid 1556] [client xxx.xx.xxx.66:53508] PHP Fatal error: Maximum execution time of 120 seconds exceeded in C:\\xampp\\htdocs\\app\\resources\\lib\\Authentication.php on line 463, referer: https://xx.xx.xx.pa/app/index.php?brows ... caaff25fe9
Appgini: 25.10
PHP/7.4.33

This started happening after I updated to 24.17 and PHP from 7.3 to 7.4, but the problem was very subtle and everything was working fine... Now I'm getting what I showed you.

Can someone please tell me what's happening or give me a recommendation.
Thanks

Re: Help... Why is this happening to me?: php7:error

Posted: 2025-03-15 14:40
by pbottcher
Hi,

can you check you database size especially the different members tables if there is an unsual big table.

best

Re: Help... Why is this happening to me?: php7:error

Posted: 2025-03-16 00:49
by lramirez
Thanks, pbottcher, I'll check that out too...

I updated from PHP 7.4 to 8.2 and added reCaptcha,

https://bigprof.com/appgini/tips-and-tu ... -recaptcha

and I can see that everything is back to normal... :D
Thanks. :D

Re: Help... Why is this happening to me?: php7:error

Posted: 2025-03-16 03:41
by ppfoong
You can edit php.ini to change the limit of the following:

max_execution_time
max_input_time
max_input_nesting_level
memory_limit

Increase the value if needed.

Re: Help... Why is this happening to me?: php7:error

Posted: 2025-03-16 14:20
by a.gneady
When running AppGini-generated apps on shared hosting (or a VPS with limited CPU shares), you can encounter timeouts or very slow page loading if the server is overloaded or if other tenants on the same server are consuming resources.

The “Maximum execution time of 120 seconds exceeded” error suggests that PHP took too long to finish a request. This can happen if your server doesn’t have enough CPU resources or suffers frequent spikes in usage. Consider upgrading your hosting plan to one with higher CPU or memory limits.

Re: Help... Why is this happening to me?: php7:error

Posted: 2025-03-16 19:58
by lramirez
Ok, thanks for the advice... I'll run the checks for a new server.