I am currently receiving the following error message on my site:
user warning: Unknown column 'weight' in 'order clause' query: SELECT iid FROM image_attach WHERE nid = 28 ORDER BY weight in /home/mysite/public_html/sites/all/modules/image/contrib/image_attach/image_attach.module on line 438.
Disabling the image_attach module does not seem to prevent this
Comments
Comment #1
joachim commentedHave you run update.php since upgrading to a new version?
Comment #2
jamesmcd commentedYes I ran update.php immediately after upgrade
I just removed the module completely and reinstalled and I am still receiving the error
It occurs when I am attaching an image using Filefield and seems to remain at the top of all pages whether I disable the module or not
Comment #3
joachim commented> It occurs when I am attaching an image using Filefield and seems to remain at the top of all pages whether I disable the module or not
Filefield is nothing to do with this module. If this bug is to do with imagefield, please reassign when you reopen.
Comment #4
jamesmcd commentedThe error is occurring here /image/contrib/image_attach/image_attach.module on line 438. which is what lead me to assume it was to do with this module
I am slightly confused as to why it would occur if the module is not even enabled
Are you suggesting this issue is more likely related to Filefield?
Comment #5
joachim commentedOops -- my mistake, sorry. I read only the most recent comment and skimread at that, been busy this weekend.
Check your image_attach table. It has no weight column and yet it should.
So either you installed the module in a REALLY weird way, or you installed a version from before the multiple attached images feature, then upgraded to beta 5, then update.php's image_attach_update_6102 didn't run properly. Check update.php for possible updates, then check your system table to see if 6102 has actually run.
Comment #6
jamesmcd commentedI think I recall an error message on update.php with regards to image_attach_update_6102
I just re ran update.php with 6102 selected on the drop down
The message returned was :
Does this look as it should now?
I just ran through the process I did previously to create the error and all seems well
Many thanks for your help
Comment #7
joachim commentedYup, that all looks fine.
Setting to to 'support request' as it seems to have been a mystery glitch rather than a bug in the code.