Closed (duplicate)
Project:
Drupal core
Version:
x.y.z
Component:
upload.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2006 at 19:38 UTC
Updated:
24 Mar 2006 at 06:38 UTC
After pressing 'Attach' in the upload form the upload hangs (progress bar keeps progressing). However the file shows up in the php_temp_upload folder and after pressing 'Submit' or 'Preview' it appears two times in the upload list.
I have this problem only in Firefox 1.0 (restart browser, clear cache won't help), in IE 6.0 it works fine.
Comments
Comment #1
killes@www.drop.org commentedI am pretty sure this is fixed in cvs. Please upgrade your site and report back.
Comment #2
tenrapid commentedUnfortunately not. I did a clean CVS install and the problem in Firefox 1.0.7 is still there. If I disable javascript it works fine.
Comment #3
killes@www.drop.org commentedcan you do the following:
1) put these lines at the top of settings.php
ini_set("display_errors","1");
ini_set('error_reporting', E_ALL ^ E_NOTICE);
ini_set('log_errors', "1");
ini_set('track_errors', '1');
2) switch JS off and report whether you see any errors when uploading.
3) try the same with JS on.
Comment #4
tenrapid commentedThere are no errors displayed.
However, the javascript console shows the following error:
Comment #5
tenrapid commentedI just did a clean 4.7beta4 install and found that everything works fine.
The javascript error I get in CVS points to drupal.js so things that have been changed there between beta4 and CVS could have caused the error. I found that there was only one commit to drupal.js in this time (revision 1.18 to 1.19).
In this commit the 'window.iframeHandler' function that is defined in function 'redirectFormButton' has been modified. There a variable 'response' is set to the content of a hidden iframe:
Then 'response' is passed to parseJson() where it is evaled:
And this is where I get the error. So I did some tests with eval.
'response' contains something like
{"status": "abc", "data":"\x3cem style=\"font-weight:bold;\"\x3test\x3c/em\x3e"}But
eval('({"status": "abc", "data":"\x3cem style=\"font-weight:bold;\"\x3test\x3c/em\x3e"})');gives me the 'missing } after property list' error.Instead
eval('({"status": "abc", "data":"\x3cem style=\\\"font-weight:bold;\\\"\x3test\x3c/em\x3e"})');works fine.At this point I don't know what to do next. The need for double escaping the " is quite odd. But I'm no javascript expert, so can someone help investigating this further?
Comment #6
tenrapid commentedclosed
the real issue is there: http://drupal.org/node/55518
Comment #7
Zen commentedDupe: http://drupal.org/node/53314 . Please always try and reuse the earliest existing issue for a bug.
-K