Advertisement

PHP Fatal error: Maximum execution time of 30 seconds excee

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
User avatar
layer8
Joomla! Intern
Joomla! Intern
Posts: 70
Joined: Mon Dec 05, 2011 4:37 am

PHP Fatal error: Maximum execution time of 30 seconds excee

Post by layer8 » Thu Apr 28, 2016 7:02 pm

Joomla 3.5.2 dev + PHP 5.6.20

PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/username/public_html/libraries/legacy/request/request.php

Any idea how can I solve this?

Advertisement
User avatar
AMurray
Joomla! Master
Joomla! Master
Posts: 10710
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: PHP Fatal error: Maximum execution time of 30 seconds e

Post by AMurray » Thu Apr 28, 2016 9:50 pm

Are you actually using V 3.5.2? That is not a released version......3.5.1 is the current stable version.

In your hosting control panel (Plesk, cPanel etc), you may have a way to change some of the basic PHP settings, including max_execution_time, however I would first ask your host about how to do this; mention the methods listed below, if you can use any to change the PHP settings otherwise, the host may have to do so.

1) changing the settings through the PHP applet in cPanel
2) changing the setting in the php.ini file directly
3) changing the setting in the .htaccess file directly.

You need to increase the max execution time setting from 30,to say 300. This value is in seconds.

The link below gives instruction on adding the instruction to your .htaccess file if you want to try it. .htaccess is a hidden file, so you may need to turn on the option to view hidden files through your FTP program.

https://www.a2hosting.com/kb/developer- ... ccess-file

Code: Select all

#example
php_value  max_execution_time  300
Increasing from 30 to 300 is the setting I see recommended on the forum here frequently.
Regards - A Murray
Global Support Moderator

User avatar
layer8
Joomla! Intern
Joomla! Intern
Posts: 70
Joined: Mon Dec 05, 2011 4:37 am

Re: PHP Fatal error: Maximum execution time of 30 seconds e

Post by layer8 » Fri Apr 29, 2016 3:28 am

Thank you for your response.

What I want to know is that:
if this is the expected behavior.
if the code in /libraries/legacy/request/request.php can be optimize.
if it is a kind of attack and I am under attack.
if this is a bug in the new version.

I want to attack to root cause of the problem,
by increasing the max_execution_time I am just allowing php to consume more resources in my server.

deleted user

Re: PHP Fatal error: Maximum execution time of 30 seconds e

Post by deleted user » Fri Apr 29, 2016 11:13 am

The error most likely isn't in the JRequest class (the file that it's erroring out in). IIRC that error message just echoes out the file that the currently executing process is in when the timeout occurs. You'd need to run a profiler tool or something to try and figure out what's taking so long to cause it to time out.

User avatar
layer8
Joomla! Intern
Joomla! Intern
Posts: 70
Joined: Mon Dec 05, 2011 4:37 am

Re: PHP Fatal error: Maximum execution time of 30 seconds excee

Post by layer8 » Wed May 04, 2016 4:35 pm

Can you recommend a profiler tool (Preferable a Script that can be run via http without installation) ?

Advertisement

Locked

Return to “General Questions/New to Joomla! 3.x”