By dnorman on
I've been noticing that the file upload (attach file to node) feature has been borked for awhile. I've tried with every release of 4.7 (including the fresh 4.7RC2) and keep getting a nasty error message which may be related to the ajax goodness.
I've put a screenshot of the error message that pops up in Firefox:
http://www.darcynorman.net/images/drupal_file_upload_error.png
Any ideas? Is file attachment/uploading working for anyone else? Is there a trick to getting it working in 4.7? (I've got a "production" site in 4.6.6 where file attachment works perfectly)
Comments
Aggressive cache
Your browser is not using the latest .js files if you see an alert. If you are using Firefox 1.0.x, try clearing your cache.
--
If you have a problem, please search before posting a question.
Javascript file isn't being found
That happens when the javascript fails to load. The module actually prints out the javascript from the PHP using the function upload_js. upload_menu has a callback pointing upload/js at that function. I would check the source to make sure that it is printing the javascript path correctly (it's right after the attach button in the source). Then go to that URL and verify that it is going to the script and not a 404 or some other error.
Sean Robertson
www.webolutionary.com/freedom
webolutionary@webolutionary.com
Sean Robertson | @seanr1978 on twitter
seanr@webolutionary.com
file upload works fine on our test 4.7 server
using the latest RC2 code, i can without any problems upload mp3s and other attachments on our test 4.7 server
so unfortunately, it looks like a bug on your end (hopefully the javascript suggestions will help!)
I'm getting it on a fresh
I'm getting it on a fresh 4.7RC2 install - brand new site (just downloaded/installed this afternoon to test). Can't be a cache thing...
OK. This is bizarre. Firefox
OK. This is bizarre. Firefox 1.5.0.1 shows the error consistently, even with cache cleared and page force-reloaded. Safari 2.0.3 works fine.
I created a fresh profile in
I created a fresh profile in Firefox, to remove any caches, extensions, themes, cookies, etc... and now it's working fine. Appears to be something in Firefox, but I'll have to experiment to find out what the exact cause was. If I find it, I'll report back to the rest of the class.
Thanks for the suggestions! Definitely helped track this down.
Greasemonkey
Greasemonkey was conflicting with the ajax upload somehow. Not sure which of my GM scripts might have caused that. I'll keep digging...
Turning off Greasemonkey does the trick
Using 5.1 in firefox with File Upload gives me the same error.
Turning off greasemonkey seems to do the trick in firefox. In Opera 9.21 (ubuntu) it all works okay but I still get "an error has occured" pop up