Image Resize - Larger files dont upload

Travelsaway 07 May, 2010
Hi guys,

I have a form for uploading photos. It seemed to be working fine until a customer tried uploading a 2.3Mb image. I recieved the email, but no attachment. Also a copy of the image normally goes to a chronocontact folder, but nothing appeared there. No form error messages either!?!

I tried it myself. Small files of approx 150kb were fine, but 2.3 Mb Jpeg still wouldn't work.

Upload settings are - Field names/allowed Extensions/sizes(KB): file_0:jpg|gif|png{10000-1}

I also have the Image Resize plugin enabled.

Could it be a joomla setting elsewhere? Media settings in Global Config are currently set to unlimited.

Any help would be fantastic and very much appreciated.

Thanks,

Dan
GreyHead 07 May, 2010
Hi Dan,

There's also a hosting site setting you can see in the phpinfo ]

Site Admin | Help | System Info | PHP Information | upload_max_filesize

2mb would be low but not impossible. It's also possible that memory or processor time is maxing out if you are doing image re-sizing.

Bob
Travelsaway 07 May, 2010
Hi Bob,

Wow - that was a quick response! Cheers.

I've taken a look but my php information tab, but it's empty!? In the PHP Settings tab, File Uploads are ON. In the Configuration file, $List_limit is 20, $feed_limit is 10 (If that helps). I'll see if I can view the php.ini file from the server.

I also tried it without the Image Resize plugin, but the same happens.

*** Just checked the php.ini on the server - all it contained was this:

register_globals = Off
safe_mode = Off
allow_url_fopen = Off
disablefunctions = showsource, system, shell_exec, passthru, exec, phpinfo, popen, proc_open


Thanks,

Dan
Travelsaway 07 May, 2010
I'm not having much joy. I've found quite a few php5.ini files (in various locations) but they all have the same info - none of them mention mxa file upload sizes.

My hosts advised me that I have a 100mb server upload limit - so it's not them.

Any more ideas?

Thanks,

Dan
GreyHead 07 May, 2010
Hi Dan,

Not much else to suggest, try checking the server logs - you should see an error message there (or set site Error Reporting to Maximum)

Bob
Travelsaway 07 May, 2010
Cheers for your help Bob.

I think I'll take a break, have a beer, and start again tomorrow. It's Friday after all.

Dan
Travelsaway 12 May, 2010
Hi Bob,

I'm still having problems with this. I've looked at all the php and php5.ini files. Do these look right to you?

All the php5.ini files have been set to:

register_globals = Off
safe_mode = Off
allow_url_fopen = Off
disable_functions = showsource, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
upload_max_filesize = 20M ;
post_max_size = 20M ;
max_execution_time = 360 ;

And the php.ini file is:

register_globals = Off
safe_mode = Off
allow_url_fopen = Off
disablefunctions = showsource, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
upload_max_filesize = 20M ;
post_max_size = 20M ;
max_execution_time = 260 ;

I can't seem to find any other settings. It still seems to time out after about 20 seconds. I get a blank screen in firefox.

Any ideas would be great. I am on a shared server at the moment, but resources are meant to be good enough for this.

Many thanks,

Dan
GreyHead 13 May, 2010
Hi Dan,

Everything there looks fine. Could be a time-out on the processor (though 360 should be plenty) or the processor memory limit being reached. The server log should give some clues.

Bob
Travelsaway 13 May, 2010
Thanks Bob. That makes sense. I'm moving to a dedicated server soon, so hopefully that should do the trick.

Also, it turns out that the files are now being uploaded, but the customer doesn't reach the confirmation page - just a blank page.

Thanks for your help.

Dan
GreyHead 13 May, 2010
Hi travlesway,

A completely blank page is usually a sign of a PHP error. Try setting Site Error Reporting to Maximum temporqrily and you may see a more helpful message.

Bob
This topic is locked and no more replies can be posted.