Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Fatal error: Call to undefined function db_fetch_array() in sites/all/modules/user_import/user_import.install on line 201
There is some old 6.x code in the install script that gets triggered on the migration from D6 to D7 when running update.php
Comment | File | Size | Author |
---|---|---|---|
#2 | user_import_update.patch | 2.61 KB | burgs |
Comments
Comment #1
DarrellDuane CreditAttribution: DarrellDuane commentedAlso, there are calls to update_sql() in this same function which are deprecated.
Comment #2
burgs CreditAttribution: burgs commentedI've attached a patch that fixes both the issues mentioned, and some other typos etc. Please test.
Comment #3
gisleChanging status.
Comment #4
gisleThese functions are named
user_import_update_6002
so they areuser_import_update_6003
implementations ofhook_update_N
for Drupal 6. They are also present in User Import version 6.4 (the latest stable release of the Drupal 6 branch of the project).The correct procedure for a major project upgrade it:
upgrade.php
to upgrade the database.If this procedure is followed, the database upgrades would already have happened prior to installation of the Drupal 7 code, and the legacy code would have been ignored.
It does not make sense to upgrade a Drupal 6 version of
hook_update_N
with Drupal 7 function calls.What is wrong here is that Drupal 6 functions is retained in a Drupal 7 project. They should simply have been removed to give the Drupal 7 version a clean start.
Comment #6
gisleFixed in most recent snapshot of 7.x-3.x-dev.
Comment #7
gisleComment #8
gisleChanging status.