Pro Theme Design Forum » Nominate
uploading large files hang
|
|
Hello. When I am trying to post an article with a large image (1mb) it hangs. When I check my server logs, it appears I am getting: 500 Internal Server error (POST method) on wp-content/themes/nominate/includes/ajax-submitArticleSave.php?ajax=1 I don't get this as a pop up or a window, only when I check the server logs. If I upload small files like 1-100kb or so, it works fine. This actually occurs on 2 different hosts I've tried. Any suggestions? It's late and very tired, so if there is more info needed please let me know. I can provide a url for you to try it out yourself. I'm not sure how to debug this using Firebug, if possible. |
|
|
Also, I should have noted earlier, I run a local copy of wordpress on my PC to design the page first, and uploading large files (the exact same file) works fine. COuld it be timeout or file size? |
|
|
Just to update on some troubleshooting i have done over the past weekend. I have left the max_width and max_height values in timthumb.php alone (1500) and whenever I upload an image that is under the 1300x1300 dimensions that I have specified for "large" images in the SETTING > MEDIA portion of wordpress, the images do get uploaded, however the entire post page (the page that prompts for your info / image / description, etc still is visible on the page, instead of going to the standard successful / "view your article" page. Any thoughts? |
|
|
Hi There - sorry to hear you're having issues with uploading files. Off the top of my head I don't know why you would be having this issue, but I have a few things you could try. Nominate uses the WordPress built in uploading functionality, so it might be worth testing the files that don't work through the WordPress media uploader to see if that works. WordPress limits the size of uploaded files so it would also be worth checking to see what that limit is set to. Your server will also have file upload limits in place so you should check php settings to see what that limit is also. |
|
|
Hey Ben, thanks for the quick reply. So a bit of good news, it's "appears" to be working. What appears to have fixed the issue is in the ajax-submitarticlesave.php file, i changed the timeout from 5000 (ms I assume) to 35000, and that appears to be working. Is there any harm in changing this timeout? I assume what was happening was the script was timing out on these larger files due to them taking longer to upload. Is it possible to change it to a 60 second delay, or would this be a security risk? |
|
|
I can't see any reason why changing the timeout would cause a problem. I think I will consider increasing the timeout in the code as well - to try and reduce future issues like this |
Reply
You must log in to post.