PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old July 13th, 2005, 10:40 PM   #1 (permalink)
Senior Member
Verified Customer
 
Johnny Doomo's Avatar
 
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.
Johnny Doomo is offline   Reply With Quote
Old 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.
Michael P is offline   Reply With Quote
Old July 14th, 2005, 10:20 AM   #3 (permalink)
Senior Member
Verified Customer
 
Johnny Doomo's Avatar
 
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.
Johnny Doomo is offline   Reply With Quote
Old July 14th, 2005, 11:15 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old July 14th, 2005, 02:40 PM   #5 (permalink)
Senior Member
Verified Customer
 
Johnny Doomo's Avatar
 
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?
Johnny Doomo is offline   Reply With Quote
Old July 14th, 2005, 02:58 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old July 14th, 2005, 05:07 PM   #7 (permalink)
Senior Member
Verified Customer
 
Johnny Doomo's Avatar
 
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 ?
Johnny Doomo is offline   Reply With Quote
Old July 14th, 2005, 05:34 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old July 14th, 2005, 10:43 PM   #9 (permalink)
Senior Member
Verified Customer
 
Johnny Doomo's Avatar
 
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.
Johnny Doomo is offline   Reply With Quote
Old July 15th, 2005, 01:06 AM   #10 (permalink)
Senior Member
Verified Customer
 
Johnny Doomo's Avatar
 
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. )
Johnny Doomo is offline   Reply With Quote
Old 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
InterFX is offline   Reply With Quote
Old January 11th, 2006, 08:26 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old 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?
InterFX is offline   Reply With Quote
Old January 11th, 2006, 09:05 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old 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);
InterFX is offline   Reply With Quote
Old January 11th, 2006, 09:36 PM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,665
duh darn typo
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum user pic uploads nimzie Photopost Pro How Do I...? 1 February 18th, 2005 07:15 AM
error was encountered during execution of the query cnczone Photopost Pro Installation & Upgrades 13 July 24th, 2004 11:19 AM


All times are GMT -5. The time now is 07:42 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0