Closed (duplicate)
Project:
Image
Version:
5.x-1.4
Component:
image.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2007 at 03:52 UTC
Updated:
11 Aug 2007 at 07:09 UTC
I've upgraded image module several times before with no problems.
However, I tried to upgrade from 5.x-1.3 to 5.x-1.4 and twice got the following error after running the database upgrade script. Any ideas what's wrong and how to solve it?
The following queries were executed
image module
Update #4
* Failed: DELETE FROM {file_revisions} WHERE NOT EXISTS (SELECT * FROM {files} WHERE {files}.fid = {file_revisions}.fid)
Comments
Comment #1
drewish commentedi'm assuming you're using a version of mysql previous to 4.1
Comment #2
drewish commentedsorry forgot the link: http://drupal.org/node/158264
Comment #3
farrell commentedCorrect, 4.0.25-standard.
I reviewed the link. I use shared hosting so I can request a mysql upgrade, or are there changes coming to the module to support 4.0?
If I ask for an upgrade, what would you suggest? Mysql should be backwards compatible, correct?
Comment #4
drewish commentedif people want to write patches to make it backwards compatible i'll review them, but i don't have time to support mysql versions prior to 4.1. i think i'd left a comment on the other issue that the query would need to be rewritten to use an inner join rather than an exists sub query.
Comment #5
farrell commentedOK, thanks much. I just created a ticket to upgrade the mysql on that server to 4.1.
Should do the trick.
Comment #6
nancydru4.1 is still unsupported. You need to request 5.x.
Comment #7
drewish commentedno, 4.1 should work, they added sub queries to that release... right?
Comment #8
nancydruNo, I meant it is not supported by the vendor. They have discontinued support of all realesae before 5.0.
Comment #9
farrell commentedThanks for the info.
I talked to my host and they are going to upgrade to mysql 5.0.
Comment #10
farrell commentedJust to complete the loop, all is solved.
I upgraded to MySQL 5.0 -- as well as PHP 5.2 -- and was able to run the Image 1.4 database upgrade successfully. I'm all set now, and also running on a better platform!
Thanks for all the help.
Comment #11
bomarmonk commentedAny takers on patching this? I have a host who is stuck in the stone ages... and a sticky contractual situation with moving to another host. Any support would be appreciated.