Attempting to upload a file using Opera 11.51 throws a Javascript error of "An HTTP error 0 occurred.
/upload/js". If you hit okay on the error pop-up and submit your content, it ends up creating a page that shows a whole bunch of file text (for instance, text that you would see if you opened a PDF in a NotePad).
UPDATE: I ended up hitting "Back" after hitting the white page, retyping my issue, and submitting it -and the file magically attached without me attempting to attach it. Definitely a bug, haha.
| Comment | File | Size | Author |
|---|
Comments
Comment #1
frank0051 commentedComment #2
catchIf you're using upload module you can't be using Drupal 7. Which one is right?
Comment #3
frank0051 commentedUh, well, maybe I have this filed under the wrong thing. 1. What version of Drupal is this site (drupal.org) running (I thought it was D7) and 2. Look below to the "File attachments" area as you post your response - is that not the upload module?
Thanks for helping me flesh this out; I'm not all that tech savvy.
Comment #4
catchOK this is probably file module then.
Can you try repeating these steps to see if you can reproduce the bug consistently?
Comment #5
frank0051 commentedYeah did it again, the error is "An HTTP error 0 occurred.
/comment-upload/js" and here is the text that was generated when I hit submit:
{"status":true,"data":"\u003ctable id=\"comment-upload-attachments\" class=\"sticky-enabled\"\u003e\n \u003cthead\u003e\u003ctr\u003e\u003cth\u003e\u003c\/th\u003e\u003cth\u003eDelete\u003c\/th\u003e\u003cth\u003eList\u003c\/th\u003e\u003cth\u003eDescription\u003c\/th\u003e\u003cth\u003eWeight\u003c\/th\u003e\u003cth\u003eSize\u003c\/th\u003e \u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n \u003ctr class=\"draggable odd\"\u003e\u003ctd\u003e\u003c\/td\u003e\u003ctd\u003e\u003cdiv class=\"form-item\" id=\"edit-files-3877786-remove-wrapper\"\u003e\n \u003cinput type=\"checkbox\" name=\"files[3877786][remove]\" id=\"edit-files-3877786-remove\" value=\"1\" class=\"form-checkbox\" \/\u003e\n\u003c\/div\u003e\n\u003c\/td\u003e\u003ctd\u003e\u003cdiv class=\"form-item\" id=\"edit-files-3877786-list-wrapper\"\u003e\n \u003cinput type=\"checkbox\" name=\"files[3877786][list]\" id=\"edit-files-3877786-list\" value=\"1\" checked=\"checked\" class=\"form-checkbox\" \/\u003e\n\u003c\/div\u003e\n\u003c\/td\u003e\u003ctd\u003e\u003cdiv class=\"form-item\" id=\"edit-files-3877786-description-wrapper\"\u003e\n \u003cinput type=\"text\" maxlength=\"256\" name=\"files[3877786][description]\" id=\"edit-files-3877786-description\" size=\"60\" value=\"Family Guy ticket.pdf\" class=\"form-text\" \/\u003e\n \u003cdiv class=\"description\"\u003e\u003csmall\u003ehttp:\/\/drupal.org\/files\/Family Guy ticket_1.pdf\u003c\/small\u003e\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/td\u003e\u003ctd\u003e\u003cdiv class=\"form-item\" id=\"edit-files-3877786-weight-wrapper\"\u003e\n \u003cselect name=\"files[3877786][weight]\" class=\"form-select comment-upload-weight\" id=\"edit-files-3877786-weight\" \u003e\u003coption value=\"-1\"\u003e-1\u003c\/option\u003e\u003coption value=\"0\" selected=\"selected\"\u003e0\u003c\/option\u003e\u003coption value=\"1\"\u003e1\u003c\/option\u003e\u003c\/select\u003e\n\u003c\/div\u003e\n\u003c\/td\u003e\u003ctd\u003e74.63 KB\u003c\/td\u003e \u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cdiv class=\"form-item\" id=\"edit-upload-wrapper\"\u003e\n \u003clabel for=\"edit-upload\"\u003eAttach new file: \u003c\/label\u003e\n \u003cinput type=\"file\" name=\"files[upload]\" class=\"form-file\" id=\"edit-upload\" size=\"60\" \/\u003e\n\n \u003cdiv class=\"description\"\u003eThe maximum upload size is \u003cem\u003e3 MB\u003c\/em\u003e. Only files with the following extensions may be uploaded: \u003cem\u003ejpg jpeg gif png txt xls pdf ppt pps odt ods odp gz tgz patch diff zip test info po pot psd\u003c\/em\u003e. \u003c\/div\u003e\n\u003c\/div\u003e\n\u003cinput type=\"submit\" name=\"attach\" id=\"edit-attach\" value=\"Attach\" class=\"form-submit\" \/\u003e\n"}I then have to hit back and ret
Comment #6
frank0051 commentedYeah did it again, the error is "An HTTP error 0 occurred.
/comment-upload/js" and here is the text that was generated when I hit submit:
{"status":true,"data":"\u003ctable id=\"comment-upload-attachments\" class=\"sticky-enabled\"\u003e\n \u003cthead\u003e\u003ctr\u003e\u003cth\u003e\u003c\/th\u003e\u003cth\u003eDelete\u003c\/th\u003e\u003cth\u003eList\u003c\/th\u003e\u003cth\u003eDescription\u003c\/th\u003e\u003cth\u003eWeight\u003c\/th\u003e\u003cth\u003eSize\u003c\/th\u003e \u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n \u003ctr class=\"draggable odd\"\u003e\u003ctd\u003e\u003c\/td\u003e\u003ctd\u003e\u003cdiv class=\"form-item\" id=\"edit-files-3877786-remove-wrapper\"\u003e\n \u003cinput type=\"checkbox\" name=\"files[3877786][remove]\" id=\"edit-files-3877786-remove\" value=\"1\" class=\"form-checkbox\" \/\u003e\n\u003c\/div\u003e\n\u003c\/td\u003e\u003ctd\u003e\u003cdiv class=\"form-item\" id=\"edit-files-3877786-list-wrapper\"\u003e\n \u003cinput type=\"checkbox\" name=\"files[3877786][list]\" id=\"edit-files-3877786-list\" value=\"1\" checked=\"checked\" class=\"form-checkbox\" \/\u003e\n\u003c\/div\u003e\n\u003c\/td\u003e\u003ctd\u003e\u003cdiv class=\"form-item\" id=\"edit-files-3877786-description-wrapper\"\u003e\n \u003cinput type=\"text\" maxlength=\"256\" name=\"files[3877786][description]\" id=\"edit-files-3877786-description\" size=\"60\" value=\"Family Guy ticket.pdf\" class=\"form-text\" \/\u003e\n \u003cdiv class=\"description\"\u003e\u003csmall\u003ehttp:\/\/drupal.org\/files\/Family Guy ticket_1.pdf\u003c\/small\u003e\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/td\u003e\u003ctd\u003e\u003cdiv class=\"form-item\" id=\"edit-files-3877786-weight-wrapper\"\u003e\n \u003cselect name=\"files[3877786][weight]\" class=\"form-select comment-upload-weight\" id=\"edit-files-3877786-weight\" \u003e\u003coption value=\"-1\"\u003e-1\u003c\/option\u003e\u003coption value=\"0\" selected=\"selected\"\u003e0\u003c\/option\u003e\u003coption value=\"1\"\u003e1\u003c\/option\u003e\u003c\/select\u003e\n\u003c\/div\u003e\n\u003c\/td\u003e\u003ctd\u003e74.63 KB\u003c\/td\u003e \u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cdiv class=\"form-item\" id=\"edit-upload-wrapper\"\u003e\n \u003clabel for=\"edit-upload\"\u003eAttach new file: \u003c\/label\u003e\n \u003cinput type=\"file\" name=\"files[upload]\" class=\"form-file\" id=\"edit-upload\" size=\"60\" \/\u003e\n\n \u003cdiv class=\"description\"\u003eThe maximum upload size is \u003cem\u003e3 MB\u003c\/em\u003e. Only files with the following extensions may be uploaded: \u003cem\u003ejpg jpeg gif png txt xls pdf ppt pps odt ods odp gz tgz patch diff zip test info po pot psd\u003c\/em\u003e. \u003c\/div\u003e\n\u003c\/div\u003e\n\u003cinput type=\"submit\" name=\"attach\" id=\"edit-attach\" value=\"Attach\" class=\"form-submit\" \/\u003e\n"}I then have to hit back and retype my message.
Comment #7
catchOK it does not look like you're using either filefield module or upload, or Drupal 7 (you can check by looking at modules/system/system.info). Moving this to comment upload...
Comment #8
frank0051 commentedAnd, just an FYI, I have had this problem for a while on my 6.x site - I just figured it was my own fault. I then realized over the past couple of days that other 6.22 sites had it, and when I came over to post the error here I had it too. So I figure it has been a long running problem for Drupal through the various versions. Here is my 6.22 thread on the issue: http://drupal.org/node/1277224
Comment #9
catchComment #10
frank0051 commentedSorry, looks like we ended up posting at the same time. But, it isn't just a comment-upload error, because it does it when I orginially post the content too - not just comments to the content. Here is the code for that error:
{"status":true,"data":"\u003ctable id=\"upload-attachments\" class=\"sticky-enabled\"\u003e\n \u003cthead\u003e\u003ctr\u003e\u003cth\u003e\u003c\/th\u003e\u003cth\u003eDelete\u003c\/th\u003e\u003cth\u003eList\u003c\/th\u003e\u003cth\u003eDescription\u003c\/th\u003e\u003cth\u003eWeight\u003c\/th\u003e\u003cth\u003eSize\u003c\/th\u003e \u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n \u003ctr class=\"draggable odd\"\u003e\u003ctd\u003e\u003c\/td\u003e\u003ctd\u003e\u003cdiv class=\"form-item\" id=\"edit-files-3877812-remove-wrapper\"\u003e\n \u003cinput type=\"checkbox\" name=\"files[3877812][remove]\" id=\"edit-files-3877812-remove\" value=\"1\" class=\"form-checkbox\" \/\u003e\n\u003c\/div\u003e\n\u003c\/td\u003e\u003ctd\u003e\u003cdiv class=\"form-item\" id=\"edit-files-3877812-list-wrapper\"\u003e\n \u003cinput type=\"checkbox\" name=\"files[3877812][list]\" id=\"edit-files-3877812-list\" value=\"1\" checked=\"checked\" class=\"form-checkbox\" \/\u003e\n\u003c\/div\u003e\n\u003c\/td\u003e\u003ctd\u003e\u003cdiv class=\"form-item\" id=\"edit-files-3877812-description-wrapper\"\u003e\n \u003cinput type=\"text\" maxlength=\"256\" name=\"files[3877812][description]\" id=\"edit-files-3877812-description\" size=\"60\" value=\"Family Guy ticket.pdf\" class=\"form-text\" \/\u003e\n \u003cdiv class=\"description\"\u003e\u003csmall\u003ehttp:\/\/drupal.org\/files\/Family Guy ticket_4.pdf\u003c\/small\u003e\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/td\u003e\u003ctd\u003e\u003cdiv class=\"form-item\" id=\"edit-files-3877812-weight-wrapper\"\u003e\n \u003cselect name=\"files[3877812][weight]\" class=\"form-select upload-weight\" id=\"edit-files-3877812-weight\" \u003e\u003coption value=\"-1\"\u003e-1\u003c\/option\u003e\u003coption value=\"0\" selected=\"selected\"\u003e0\u003c\/option\u003e\u003coption value=\"1\"\u003e1\u003c\/option\u003e\u003c\/select\u003e\n\u003c\/div\u003e\n\u003c\/td\u003e\u003ctd\u003e74.63 KB\u003c\/td\u003e \u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cdiv class=\"form-item\" id=\"edit-upload-wrapper\"\u003e\n \u003clabel for=\"edit-upload\"\u003eAttach new file: \u003c\/label\u003e\n \u003cinput type=\"file\" name=\"files[upload]\" class=\"form-file\" id=\"edit-upload\" size=\"40\" \/\u003e\n\n \u003cdiv class=\"description\"\u003eThe maximum upload size is \u003cem\u003e3 MB\u003c\/em\u003e. Only files with the following extensions may be uploaded: \u003cem\u003ejpg jpeg gif png txt xls pdf ppt pps odt ods odp gz tgz patch diff zip test info po pot psd\u003c\/em\u003e. \u003c\/div\u003e\n\u003c\/div\u003e\n\u003cinput type=\"submit\" name=\"attach\" id=\"edit-attach\" value=\"Attach\" class=\"form-submit\" \/\u003e\n"}So what module would that be?
Comment #11
catchOK in that case it's core upload module for Drupal 6. I'd recommend searching the core issue queue for an existing one that sounds similar to this, it may well already have been reported.
Comment #12
frank0051 commentedI did a search before I posted and I found two that had Opera errors, but I thought this error was uniquely different.
1. http://drupal.org/node/152378 : this individual was able to upload files, and wanted to be able to upload more. I'm not able to upload any because of that white-page output code.
2. http://drupal.org/node/92640: this individual gets an error, but the file still adds.
Perhaps the Javascript has changed since both of these were posted? I can duplicate this error on this Drupal site, my own, and an Drupal OpenAtrium 6.22 site. Opera is free to download if anyone wants to confirm I'm not crazy, haha.
Should we change the status to active instead of postponed given these details?
Comment #13
catchYeah that makes sense. I think it's in the right place and correct status now :)
Comment #19
frank0051 commentedGuess us Opera users won't get a usable version of Drupal 6's upload feature any time soon :-(.
Comment #20
frank0051 commentedOkay, after a month of not being able to upload files on a Drupal 6 install while using Opera, I think major is indeed the right status to lead this at. Can someone at least take a look and see if they can figure out what is going on?
Comment #22
frank0051 commentedOkay, I literally cannot use Drupal to post the stories I need to now using my web browser. I think at this point it rising to a critical issue. And, it is an issue that affects the drupal.org website as well.
Comment #24
Jalandhar commentedHURRAY...I Got It....
I installed the jquery update module and its fixed.
Install the jquery update from:
http://drupal.org/project/jquery_update
Comment #25
frank0051 commentedUh no, I shouldn't need to install a module to get features included in the core to work properly.
Comment #28
frank0051 commentedReplying so this doesn't get the automatically closed in 2 weeks addition.
Comment #29
frank0051 commentedI will pay anyone, right now, $10 to just figure out what the problem is in thread
Comment #30
frank0051 commentedThis is what catch says on the matter:
The correct link is http://drupal.org/project/jquery_update (not the one provided in Catch's quote). He also responds with this as my suggestion that a module is not a solution:
So, in sum, I think at this point it is safe to say this issue should be marked as closed (won't fix).
Comment #30.0
frank0051 commentedupdating to reflect file attachment