View Full Version : Maximum execution time of 30 seconds
July 13th, 2005, 10:40 PM
I needed to fix the # of comments and images that were showing for cats so I ran "Check here to recalculate photos/posts numbers and check children." and "Check here to resync photo/comments usernames/update comments counts." and I got this error:
Fatal error: Maximum execution time of 30 seconds exceeded in /home/user/public_html/gallery/adm-db.php on line 346
What do I need to change on my server to increase the amount of "execution time" allowed?
Also, can setting it too high cause problems? I have a bunch of categories so I am going to need it somewhat high. Also would running those two options I mentioned above seperately help too?
Thanks for any help you can provide.
July 14th, 2005, 08:03 AM
Do you have access to your PHP.INI file to change it? If so, the value is in there. In newer versions of PP we include:
in the code to get past this - since you must still be using an older version if you have adm-db.php, you could add this to the top of your adm-db.php file.
July 14th, 2005, 10:20 AM
Nope I have an adm-index.php. What do you think I should set this for if my only purpose for setting it higher is to get past this problem... though I have had it error out as well when processing a bunch and sometimes large images.
By chance, you wouldn't happen to know if the php.ini file is editable through cpanel would you? I really hate telneting into my server and doing things through the command line.
July 14th, 2005, 11:15 AM
You need to edit php.ini through shell
You can modify adm-inc.php or adm-misc.php then if your using the newer version. It was just assumed since you have refused to upgrade many times over that your running old files which means you should have an adm-db.php file. If not in the newer code adm-misc.php is the file to place the ini_set
July 14th, 2005, 02:40 PM
I'm currently running 5.03 (I recently spent a month recoding and upgraded).
So which is which, do I still need to edit the php.ini file through the shell or can I do one of the other work arounds that were mentioned?
July 14th, 2005, 02:58 PM
well you should be able to place the ini_set in the adm-inc.php or adm-misc.php file and have it function]
If any doubt you could edit php.ini
July 14th, 2005, 05:07 PM
Michael P mentioned adm-db.php, while you note adm-inc.php and adm-misc.php. I have all 3 of those files, does it just go in one and which one is the best to put it in? Where do I put it in the files? Michael P said "to the top", but does that mean at the very top even before the <?php ?
July 14th, 2005, 05:34 PM
Okay you said you did not have adm-db.php so thats why I meantioned the other two files. Place that in adm-db.php
July 14th, 2005, 10:43 PM
Yeah that file was hiding from me the first time. Sorry bout that. Now I just need to see if it works.
July 15th, 2005, 01:06 AM
I believe it worked. I ran the two seperately just because I didn't want it to crash again, so there is no sure way it really worked, but for the amount of time it took I think it did.
Another help session completed thanks to omegatron and Michael P. :o)
January 11th, 2006, 08:25 PM
I'm getting this same error... How do I fix? I do not have access to the php settings on my server...
Fatal error: Maximum execution time of 30 seconds exceeded in /home/sitename/public_html/reviews/image-inc.php on line 106
January 11th, 2006, 08:26 PM
Edit your php-ini and set maximum execution to a higher number or 0 to override completely.
That would get rid of PHP timeouts.
January 11th, 2006, 08:34 PM
where is the php-ini file? Id o not have access to the raw php settings on my server... is this in one of the files?
January 11th, 2006, 09:05 PM
Sorry I misread your reply to say you had access to the php settings.
Edit pp-inc.php and add the line in bold at the top of the file
error_reporting (E_ALL ^ E_NOTICE);
January 11th, 2006, 09:16 PM
code should be
January 11th, 2006, 09:36 PM
duh darn typo ;)
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.