Closed (fixed)
Project:
FileField
Version:
6.x-3.7
Component:
Code
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2010 at 12:14 UTC
Updated:
6 Dec 2010 at 16:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
tugis commentedForgot to mention that the file is indeed correctly uploaded and the file preview is also correct, just the Ajax functionality is not working.
Comment #2
quicksketchThis problem does not exist on fresh installations of FileField on a clean install of Drupal. I'll need steps to reproduce from a clean install in order to inspect this problem. Most likely there's a JavaScript error on the page caused by some other script or module that prevents FileField's JavaScript from working correctly.
Comment #3
tugis commentedYou are right, with a clean installation, I have the upload working as supposed without page refresh. In the Javascript I get no errors, but doing some debugging on the FileField JS I see that not all script is passing.
In attachment there is a list of the modules I have currently installed. I'm trying to find which module prevents FileField JS from firing correctly.
Comment #4
quicksketchThe most likely culprit are modules that change the HTML output of the node form. You might also try changing your theme to one that comes with core (like Garland), and seeing if that helps.
Comment #5
tugis commentedI tried putting a default theme but the result is the same.
Looking at the HTML I notice that the problem should be related with AHAH. In the working installation, upload button has the "ahah-processed" class (in the non-working it doesn't) and the ahah urls are defined in jQuery.extend code. I disabled and uninstalled many modules I wasn't using, but I couldn't find yet what may be causing this problem.
Comment #6
tugis commentedI solved the problem. I don't know why but I had some commented code in the FileField module which was preventing the AHAH processing. Thanks for the tips! You can close the issue.
Comment #7
quicksketch