 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
July 13th, 2005, 10:40 PM
|
#1 (permalink)
| | Senior Member Verified Customer
Join Date: Mar 2003
Posts: 877
| Maximum execution time of 30 seconds
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
|
#2 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
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:
ini_set("max_execution_time", 0);
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.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
July 14th, 2005, 10:20 AM
|
#3 (permalink)
| | Senior Member Verified Customer
Join Date: Mar 2003
Posts: 877
|
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
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,665
|
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
|
#5 (permalink)
| | Senior Member Verified Customer
Join Date: Mar 2003
Posts: 877
|
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
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,665
|
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
|
#7 (permalink)
| | Senior Member Verified Customer
Join Date: Mar 2003
Posts: 877
|
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
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,665
|
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
|
#9 (permalink)
| | Senior Member Verified Customer
Join Date: Mar 2003
Posts: 877
|
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
|
#10 (permalink)
| | Senior Member Verified Customer
Join Date: Mar 2003
Posts: 877
|
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.  )
|
| |
January 11th, 2006, 08:25 PM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Nov 2002
Posts: 398
|
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
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,665
|
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
|
#13 (permalink)
| | Member Verified Customer
Join Date: Nov 2002
Posts: 398
|
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
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,665
|
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 Code: Content visible to verified customers only.
|
| |
January 11th, 2006, 09:16 PM
|
#15 (permalink)
| | Member Verified Customer
Join Date: Nov 2002
Posts: 398
|
Worked great...
code should be
ini_set("max_execution_time", 0);
|
| |
January 11th, 2006, 09:36 PM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,665
|
duh darn typo |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 07:42 PM. | |