UBBCentral

Gallery upload problem

Posted By: driv

Gallery upload problem - 05/23/10 09:35 PM

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
Posted By: Ruben

Re: Gallery upload problem - 05/23/10 10:01 PM

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?
Posted By: SD

Re: Gallery upload problem - 05/23/10 10:02 PM

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?
Posted By: driv

Re: Gallery upload problem - 05/23/10 10:12 PM

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).


Posted By: Ruben

Re: Gallery upload problem - 05/23/10 10:18 PM

Humm maybe your host changed some settings on php.ini?
Sounds suspicious that reducing the file size works.
Posted By: driv

Re: Gallery upload problem - 05/23/10 10:23 PM

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.
Posted By: driv

Re: Gallery upload problem - 05/23/10 10:26 PM

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?
Posted By: Ruben

Re: Gallery upload problem - 05/23/10 10:32 PM

Guessing here.
If you peek at phpinfo what is the value of "post_max_size"
Is it lower that your allowed file upload size?
Posted By: driv

Re: Gallery upload problem - 05/23/10 10:37 PM

I'll take a look, thanks.
Posted By: SD

Re: Gallery upload problem - 05/24/10 01:24 AM

you can see that value in admin cpanel.. smile
Posted By: driv

Re: Gallery upload problem - 05/26/10 09:31 PM

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.
Posted By: Rick

Re: Gallery upload problem - 05/26/10 10:30 PM

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
Posted By: driv

Re: Gallery upload problem - 05/28/10 09:47 PM

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.
Posted By: Rick

Re: Gallery upload problem - 05/28/10 11:54 PM

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.
Posted By: driv

Re: Gallery upload problem - 05/29/10 12:04 AM

Cheers matey.
Much appreciated smile
© 2018 UBB.threads PHP Forum Software Community