|
Joined: Jan 2004
Posts: 2,474 Likes: 3
Pooh-Bah
|
Pooh-Bah
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? 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
|
|
|
|
Joined: Dec 2003
Posts: 6,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 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
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
Pooh-Bah
|
Pooh-Bah
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,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 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
Pooh-Bah
|
Pooh-Bah
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
Pooh-Bah
|
Pooh-Bah
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,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 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
Pooh-Bah
|
Pooh-Bah
Joined: Jan 2004
Posts: 2,474 Likes: 3 |
I'll take a look, thanks.
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
you can see that value in admin cpanel..
|
|
|
|
Joined: Jan 2004
Posts: 2,474 Likes: 3
Pooh-Bah
|
Pooh-Bah
Joined: Jan 2004
Posts: 2,474 Likes: 3 |
Just got this answer from my host. I'd appreciate any feedback. Thanks. 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
Former Developer
|
Former Developer
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
|
|
|
|
Joined: Jan 2004
Posts: 2,474 Likes: 3
Pooh-Bah
|
Pooh-Bah
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... 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
Former Developer
|
Former Developer
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
Pooh-Bah
|
Pooh-Bah
Joined: Jan 2004
Posts: 2,474 Likes: 3 |
Cheers matey. Much appreciated
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
0 members (),
815
guests, and
186
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|