File Upload Hangs

Permalink
Hi,

I've recently deployed my first concrete 5 site to the server and everything is working perfectly except when I try to upload files such as images or PDF's. The process seems to hang. This is on both single and multiple file uploads. The images do seem to make it on the /tmp folder on the server but that's as far as it goes. No errors seem to be reported in the console of Firefox or Chrome. Oddly enough, uploading files such as .docx work perfectly but PDF's fail with a "500: Upload Error" but it doesn't give me any more information.

Placing the files in the incoming directory and then adding them through the file manager also works fine.

My environment information obtained from the dashboard is below. Does anyone have any ideas?

Many thanks,

Aaron

# concrete5 Version
5.6.2.1

# concrete5 Packages
Fancybox links (1.0), Free Cookies Disclosure (1.0.2), Gallery (1.8.1), Internationalization (1.3), Whale Nivo Image Slider (1.1).

# concrete5 Overrides
blocks/autonav, blocks/Blocks.txt, controllers/Controllers.txt, elements/Elements.txt, helpers/Helpers.txt, jobs/Jobs.txt, js/JS.txt, css/CSS..txt, languages/files, languages/Languages.txt, libraries/Libraries.txt, mail/mail.txt, models/mail.txt, single_pages/Single_Pages.txt, themes/Lea_Valley, tools/Tools.txt

# Server Software
Apache/2.2.22 (Ubuntu)

# Server API
cgi-fcgi

# PHP Version
5.3.10-1ubuntu3.8

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcntl, pcre, PDO, pdo_mysql, Phar, posix, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, zlib.

# PHP Settings
max_execution_time - 600000000
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 600M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 500M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

 
keeasti replied on at Permalink Reply
keeasti
Could it be due to a size limitation (eg. 2MB max)?
Seventy78 replied on at Permalink Reply
Hey, thanks for the reply.

I don't think it is unfortunately. The images I've been attempting to upload have been about 160K, and I've attempted to increase the maximum upload size to 600M which seem to be there according to the settings above. :(
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Try to clear your cache, also check the files directory permission. A better approach is to check the same with Firefox Console(Firebug) & share the exact error.

Rony
Seventy78 replied on at Permalink Reply
Thanks Rony.

I've cleared my cache and have checked firebug but no errors seem to be displayed. I've set the permissions on the files directory to 777 recursively.

I have run a little experiment in an attempt to figure out a pattern and it does seem to be related to file size somehow. Both images and documents seem to fail over 102kb but anything less than that seems to work. When it does fail, the behaviour seems to differ between the two file types - Images will just seem to hang the upload tool forever whereas documents will fail displaying a "500: Upload Error" in the UI of the upload tool but it doesn't give me any more information, even in firebug.

The only thing I can glean from firebug is that it's hanging when posting:
post --
[13:43:18.093] POST /index.php/tools/required/files/importers/single

Below are the files I tried to determine the pattern:

.JPG 102KB - Worked.
.JPG 145 KB - Failed (Hung UI).
.Gif 20KB - Worked.
.Doc 250KB - Failed with 500: Upload Error (Nothing in Firebug console as far as I can see.
.JPG 139KB - Failed (Hung UI)

To test my file size theory I re-sized the last jpg file from 139KB to 58KB and uploaded it successfully.

Do you have any ideas what could be causing this when the files seem to be way under the limits I've set in my php.ini, and also do you know where I can find more a more detailed explanation of the failure when the UI reports a 500?

When developing this site on a Windows Environment I did not have any upload issues at all.

I'm stumped and out of ideas at the mo. Any assistance you can give would be greatly appreciated! :)

Thanks,

Aaron
Seventy78 replied on at Permalink Reply
Hi,

I'm still having issues with this. :(

Can anyone help?

Many thanks,

Aaron
SheldonB replied on at Permalink Reply
SheldonB
your server might be timing out. you should try googling your host for php time out issues.