When i updated to the 1.0rc2 version through the drupal interfqce, everything worked until i went to do a database update, then i got the following error:
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://future.usd402.com/update.php?id=131&op=do StatusText: OK ResponseText: Fatal error: Call to undefined function db_column_exists() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\website\d7\sites\all\modules\scheduler\scheduler.install on line 76
The problem may be answered by http://drupal.org/node/898070 but i don't know how to implement it.
Comment | File | Size | Author |
---|---|---|---|
#7 | 1070624_7.scheduler.update_failure.patch | 1.78 KB | Eric-Alexander Schaefer |
Comments
Comment #1
bjlewis2 CreditAttribution: bjlewis2 commentedaccording to comment #1 on the above link:
Here's the reason.
http://drupal.org/node/776856
"Rename db_column_exists() to db_field_exists()"
Comment #2
bjlewis2 CreditAttribution: bjlewis2 commentedby the way, the error occured when doing update #6100
Comment #3
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedLooks like we need to check all D6 update functions. I thought they could be left untouched...
Comment #4
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedDid you try to update from pre 6.x-1.0-rc2?
Comment #5
jonathan1055 CreditAttribution: jonathan1055 commentedEric, did you mean pre 7.x?
The only other db function we use is db_drop_field() which is fine in D7, so it is just the single call to db_column_exists() which need to be renamed to db_field_exists() . The parameters passed are unchanged.
Comment #6
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedNope. I meant 6.x-1.0-rc2. `scheduler_update_6100()' was new in that version. But the number of the update is wrong. It should have been 6000, because it is pre 6.x-1.0. Anyway, we need also to change the `update_sql()` calls because the function is gone too. Expect it later today...
Comment #7
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedComment #8
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedI retested the update and it works fine. Moving on...
(http://drupalcode.org/project/scheduler.git/commit/b9ff0e0)
Comment #9
jonathan1055 CreditAttribution: jonathan1055 commentedJust checked the old D6 versions. 6.x-1.2-rc1 dated 2008-06-11 did not have this update, but 6.x-1.2-rc2 dated 2008-06-23 did include it. (nb 1.2 not 1.0). So the bad update must have been on a sheduler of 6.x-1.2-rc1 or earlier, ie prior 23rd June 2008!
Changed the title to properly reflect the update which caused the problem.
Comment #10
bjlewis2 CreditAttribution: bjlewis2 commentedI did not upgrade from 6.x-anything. I got this error when I started with a fresh Drupal 7 install.
Comment #11
bjlewis2 CreditAttribution: bjlewis2 commentedChanging the title back since the original issue occurs when you begin with Drupal 7, not 6.
Comment #12
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedNow this is really weird. The function scheduler_update_6100() (which is on line 76 in scheduler.install) should not have been called, except when upgrading from D6. I tried to upgrade from D6 and got the exact same error you were reporting. After the fix the upgrade would work alright. I guess we need to try to upgrade from rc1 to rc3 to check if these work too.