Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\flightpath\classes\_DatabaseHandler.php line 305

4 posts / 0 new
Last post
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\flightpath\classes\_DatabaseHandler.php line 305

Hi Flightpath folks,

I am having a persistent error on install. I fear it's something with my environment as I'm the only one having this problem it seems, I don't see anything like this in the forum. I've changed around a few things but not able to change this error at all.

I'm running Windows 10; XAMPP installed, Apache and MySQL running fine.

If there are any steps you can suggest let me know and I'll continue to try to see if I can find something that affects the error.

Hey, sorry you are having troubles.

That's weird that the install would take so long for you. 30 seconds should be more than enough time for it to create the initial tables. You could always increase your max execution time to say, 120 seconds, and see if that does it. It could be the machine you're on is pretty slow, or is being slowed down by other factors.

ini_set ( 'max_execution_time', 120);

You could place that at the top of index.php and install.php, after the ?php tag, on a new line.

Once installed, there is a similar line in the /custom/settings.php file which is created, which sets the time limit to 5 minutes.

But like I said, none of this should take more than 30 seconds.

I'd say first try increasing the execution time, and let it run. If it still fails, then there must be something else going on, and we can investigate that further.

Richard

I also just read that if PHP is running in "safe" mode, you can only change this value in the php.ini file. But, if you are using a typical xampp installation, it shouldn't be in safe mode.

Thanks for your quick reply. In the end it was an antivirus issue, I have Kaspersky Endpoint and it seems like it blocked me from getting to the db; that's my impression anyway! Something for the knowledge base.

Log in to post comments