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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bjlewis2’s picture

according to comment #1 on the above link:

Here's the reason.

http://drupal.org/node/776856

"Rename db_column_exists() to db_field_exists()"

bjlewis2’s picture

by the way, the error occured when doing update #6100

Eric-Alexander Schaefer’s picture

Looks like we need to check all D6 update functions. I thought they could be left untouched...

Eric-Alexander Schaefer’s picture

Did you try to update from pre 6.x-1.0-rc2?

jonathan1055’s picture

Eric, 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.

Eric-Alexander Schaefer’s picture

Eric, did you mean pre 7.x?

Nope. 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...

Eric-Alexander Schaefer’s picture

Priority: Normal » Critical
Status: Active » Needs review
FileSize
1.78 KB
Eric-Alexander Schaefer’s picture

Status: Needs review » Fixed

I retested the update and it works fine. Moving on...

(http://drupalcode.org/project/scheduler.git/commit/b9ff0e0)

jonathan1055’s picture

Title: unrecoverable error when upgrading to 1.0rc2 » Error when upgrading to 7.x from 6.x-1.2-rc1 or earlier.

Just 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.

bjlewis2’s picture

I did not upgrade from 6.x-anything. I got this error when I started with a fresh Drupal 7 install.

bjlewis2’s picture

Title: Error when upgrading to 7.x from 6.x-1.2-rc1 or earlier. » Error when upgrading from 1.0rc1 to 1.0rc2 in Drupal 7

Changing the title back since the original issue occurs when you begin with Drupal 7, not 6.

Eric-Alexander Schaefer’s picture

Now 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.

Status: Fixed » Closed (fixed)
Issue tags: -error, -scheduler

Automatically closed -- issue fixed for 2 weeks with no activity.