Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
0 registered members (), 67 guests, and 229 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
guod
guod
USA
Posts: 38
Joined: July 2006
Show All Member Profiles 
Top Posters(30 Days)
isaac 22
Ruben 10
Gizmo 8
Morgan 3
Geoff 3
Slaz 2
FREAK 2
DennyP 1
Latest Photos
Testing to drag photos
Comfortable Cats
Test
BSA photos
Chinese Buddhist temple.
Previous Thread
Next Thread
Print Thread
Gallery upload problem #236968
05/23/10 05:35 PM
05/23/10 05:35 PM
driv  Offline
OP
Joined: Jan 2004
Posts: 2,654
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


Using version :: 7.6.0
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Gallery upload problem [Re: driv] #236969
05/23/10 06:01 PM
05/23/10 06:01 PM
Ruben  Offline
Joined: Dec 2003
Posts: 5,920
Lutz,FL
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
Re: Gallery upload problem [Re: driv] #236970
05/23/10 06:02 PM
05/23/10 06:02 PM
SD  Offline
Former Developer
Joined: Apr 2007
Posts: 4,313
SoCal, USA
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?

Re: Gallery upload problem [Re: SD] #236971
05/23/10 06:12 PM
05/23/10 06:12 PM
driv  Offline
OP
Joined: Jan 2004
Posts: 2,654
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).




Using version :: 7.6.0
Re: Gallery upload problem [Re: driv] #236972
05/23/10 06:18 PM
05/23/10 06:18 PM
Ruben  Offline
Joined: Dec 2003
Posts: 5,920
Lutz,FL
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
Re: Gallery upload problem [Re: Ruben] #236973
05/23/10 06:23 PM
05/23/10 06:23 PM
driv  Offline
OP
Joined: Jan 2004
Posts: 2,654
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.


Using version :: 7.6.0
Re: Gallery upload problem [Re: driv] #236974
05/23/10 06:26 PM
05/23/10 06:26 PM
driv  Offline
OP
Joined: Jan 2004
Posts: 2,654
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?


Using version :: 7.6.0
Re: Gallery upload problem [Re: driv] #236975
05/23/10 06:32 PM
05/23/10 06:32 PM
Ruben  Offline
Joined: Dec 2003
Posts: 5,920
Lutz,FL
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
Re: Gallery upload problem [Re: Ruben] #236976
05/23/10 06:37 PM
05/23/10 06:37 PM
driv  Offline
OP
Joined: Jan 2004
Posts: 2,654
I'll take a look, thanks.


Using version :: 7.6.0
Re: Gallery upload problem [Re: driv] #236977
05/23/10 09:24 PM
05/23/10 09:24 PM
SD  Offline
Former Developer
Joined: Apr 2007
Posts: 4,313
SoCal, USA
you can see that value in admin cpanel.. smile

Re: Gallery upload problem [Re: SD] #237047
05/26/10 05:31 PM
05/26/10 05:31 PM
driv  Offline
OP
Joined: Jan 2004
Posts: 2,654
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.


Using version :: 7.6.0
Re: Gallery upload problem [Re: driv] #237051
05/26/10 06:30 PM
05/26/10 06:30 PM
R
Rick  Offline
Former Developer
Joined: Jun 2006
Posts: 10,177
Aberdeen, WA
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

Re: Gallery upload problem [Re: Rick] #237091
05/28/10 05:47 PM
05/28/10 05:47 PM
driv  Offline
OP
Joined: Jan 2004
Posts: 2,654
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.


Using version :: 7.6.0
Re: Gallery upload problem [Re: driv] #237093
05/28/10 07:54 PM
05/28/10 07:54 PM
R
Rick  Offline
Former Developer
Joined: Jun 2006
Posts: 10,177
Aberdeen, WA
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.

Re: Gallery upload problem [Re: Rick] #237095
05/28/10 08:04 PM
05/28/10 08:04 PM
driv  Offline
OP
Joined: Jan 2004
Posts: 2,654
Cheers matey.
Much appreciated smile


Using version :: 7.6.0

Shout Box
Today's Birthdays
No Birthdays
Recent Topics
UBB.threads 7.6.2 - Released
by isaac. 09/17/18 08:08 AM
7.6.2 Changelog Discussion
by isaac. 09/17/18 06:35 AM
Upgrade Documentation
by DennyP. 09/15/18 03:55 PM
PHP 7.2
by Geoff. 09/12/18 10:22 PM
Email Cleanup-Is it possible?
by Ruben. 09/06/18 11:25 AM
Forum Statistics
Forums36
Topics35,139
Posts191,443
Members12,106
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2