Previous Thread
Next Thread
Print Thread
Hop To
#236968 05/23/2010 5:35 PM
Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
99% sure this isn't threads - but I would appreciate your input before contacting my host.

1st - would you agree that this isn't a threads issue?

Quote
Fatal error: Maximum execution time of 30 seconds exceeded in /forums/libs/image.inc.php on line 102

2nd - what can I tell my host to get the most positive response from them?

Thanks smile

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
It could be bats or whales. HE HE!
But it really looks like a timeout issue on the host or isp side. Without even looking at the line in question.
Is it just you or others that have the problem?


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
i'm guessing it's puking on the resize (thumbs etc)

now it might just not have privs to copy the newly created thumb over to the appropriate directory after doing the GD or IM resize.

is this a gallery forum that was working before?

if it's new, then are the dirs chModded to right permissions?

Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
Ahhhh - sorry.
I wasn't clear enough.

It's all users, not just me (in fact I didn't know about it!)

The images are all in the size range allowed by (me) & UBB.

If I reduce the image size, I can upload ok (I haven't done many tests yet though).



Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Humm maybe your host changed some settings on php.ini?
Sounds suspicious that reducing the file size works.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
Indeed. I can't imagine that UBB is at fault, but I want to go to my host with the best information I have, to get the best result.

Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
Interestingly, I couldn't upload a 1Mb file. But by reducing 4 images to a total of 1.2Mb - I was able to upload them.

What does that mean?

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Guessing here.
If you peek at phpinfo what is the value of "post_max_size"
Is it lower that your allowed file upload size?


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
I'll take a look, thanks.

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
you can see that value in admin cpanel.. smile

Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
Just got this answer from my host.
I'd appreciate any feedback.

Thanks. smile


Quote
Couple of issues.

1) Most broadband lines are 256 Kbit upload speed so you're looking at
about 20 to 25Kbytes per second.

ie a 30 second script limit is going to be sub 750Kbytes which is about
right for the job you're seeing.

The fix is to extend the script execution time to more than 30 seconds via the php code or .htacess.

The risk is that if anything else wihtin the forum breaks, it'll let the scripts run away with with the CPU resources.

2) If you're letting users upload content are you filtering the files during the upload to ensure they're not pushing PHP/Perl or shell scripts to the server.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
1) You can edit the scripts/filemanager and add the following to it, somewhere after the opening header comments, which will allow the script to run to completion:

set_time_limit(0);

2) Yes wink

Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
Thanks Rick,
What are the implications of making this change (to the rest of the forum)?

Especially with respect to...
Quote
The risk is that if anything else wihtin the forum breaks, it'll let the scripts run away with with the CPU resources.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Since you're just making the change to the one script, there isn't much risk. It's only going to allow the upload script to run longer if needed, all other scripts will still timeout after the default php.ini setting.

Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
Cheers matey.
Much appreciated smile


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Ruben), 476 guests, and 111 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)