• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

First image upload failure?

Floren

Well-known member
#1
I noticed that some users report random image upload failures, while using the Flash uploader. Anyone else is experiencing this? I used every possible browser combination and I never had a single upload failure. Most users report the failure on the first attempt only. Something like: I upload an image and it fails, then I upload the same image and it works properly.
 

Chris D

XenForo developer
Staff member
#2
I haven't heard or seen this on my own board.

I think we need to define "failure" in a bit more detail. What exactly happens? Does it provide an error message? If so, what is it?

Is anything logged in your Server Error Log in the Admin CP?
 

CurveGotti

Active member
#3
I have never heard of or experienced this issue either I suppose it could still be a browser related issue though, maybe a clash with a browser extension?
 

Floren

Well-known member
#6
Thanks for the replies, guys. So far I see this error:
Code:
Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Query execution was interrupted - library/Zend/Db/Statement/Mysqli.php:214
#0 /var/www/thcfarmer.com/community/library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
#1 /var/www/thcfarmer.com/community/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#2 /var/www/thcfarmer.com/community/library/Zend/Db/Adapter/Abstract.php(632): Zend_Db_Adapter_Abstract->query('UPDATE `xf_foru...', Array)
#3 /var/www/thcfarmer.com/community/library/XenForo/DataWriter.php(1607): Zend_Db_Adapter_Abstract->update('xf_forum', Array, 'node_id = 168')
#4 /var/www/thcfarmer.com/community/library/XenForo/DataWriter.php(1576): XenForo_DataWriter->_update()
#5 /var/www/thcfarmer.com/community/library/XenForo/DataWriter.php(1381): XenForo_DataWriter->_save()
#6 /var/www/thcfarmer.com/community/library/XenForo/DataWriter/Discussion.php(480): XenForo_DataWriter->save()
#7 /var/www/thcfarmer.com/community/library/XenForo/DataWriter/Discussion.php(368): XenForo_DataWriter_Discussion->_updateContainerPostSave()
#8 /var/www/thcfarmer.com/community/library/XenForo/DataWriter.php(1385): XenForo_DataWriter_Discussion->_postSave()
#9 /var/www/thcfarmer.com/community/library/XenForo/DataWriter/DiscussionMessage.php(1047): XenForo_DataWriter->save()
#10 /var/www/thcfarmer.com/community/library/XenForo/DataWriter/DiscussionMessage.php(530): XenForo_DataWriter_DiscussionMessage->_saveDiscussionDataWriter()
#11 /var/www/thcfarmer.com/community/library/XenForo/DataWriter.php(1385): XenForo_DataWriter_DiscussionMessage->_postSave()
#12 /var/www/thcfarmer.com/community/library/XenForo/ControllerPublic/Thread.php(504): XenForo_DataWriter->save()
#13 /var/www/thcfarmer.com/community/library/XenForo/FrontController.php(310): XenForo_ControllerPublic_Thread->actionAddReply()
#14 /var/www/thcfarmer.com/community/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#15 /var/www/thcfarmer.com/community/index.php(13): XenForo_FrontController->run()
#16 {main}
 
array(3) {
  ["url"] => string(132) "https://www.thcfarmer.com/community/threads/some-link.1234/add-reply"
  ["_GET"] => array(1) {
    ["/community/threads/some-link.1234/add-reply"] => string(0) ""
  }
  ["_POST"] => array(9) {
    ["message_html"] => string(428) "<p style="text-align: left;"><span style="font-weight: bold; font-size: small;"><span style="color: #4f4f4f;"><span style="font-family: 'trebuchet ms';">here da one I be havin' 4 da 5</span></span></span></p>
<p><span style="font-size: x-small;"><span style="font-family: 'trebuchet ms';">some stuffe</span></span></p>"
    ["_xfRelativeResolver"] => string(132) "https://www.thcfarmer.com/community/threads/some-link.1234/add-reply"
    ["attachment_hash"] => string(32) "21c73d3c8d3d00a453053ef48f6c69ce"
    ["watch_thread"] => string(1) "1"
    ["watch_thread_state"] => string(1) "1"
    ["_xfToken"] => string(57) "15120,1334219235,947727331e49bb8d4ca4dda6357beeed8d53816d"
    ["_xfRequestUri"] => string(107) "/community/threads/some-link.1234/add-reply"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
JS files are hosted with Google API link, no CDn or other fancy setup (beside SSL).
On my side, I tried uploading all kind of images from 100kb to 3.5mb, without issues. The user got the regular JS error message: "There was a problem uploading your file." The users get the error message with Chrome 19.0.1084.46.

User comment:
I get this error on the first file I try to upload every single time, it doesn't matter if the upload is just 1 file or multiple. After the first error all my uploads work perfectly.
I'm using Fedora 16, Chrome 19.0.1084.46
Hmm I just discovered a bug, I cannot post a code and quote together in XenForo? Look at my reply, the above quote is splitted into 2 mini-quotes.

Edit: Looks like the upload is a confirmed issue on Linux. Other users have issues with Chrome on Mac OS 10.6.x. Chrome and Firefox (beta) are the ONLY browsers supporting the Google 64bits SSL optimizations on ECDHE ciphers. The site is blazing fast compared to regular RSA ciphers.