When pressing next on admin/people/user_import/add to add the csv file through the file browser option, I get the error:

Fatal error: Call to undefined function db_fetch_object() in /sites/all/modules/user_import/user_import.admin.inc on line 932

Comments

gaxze’s picture

Yep getting the same thing here.

gaxze’s picture

Status: Active » Needs review
StatusFileSize
new687 bytes

Decided to have a go fixing this as I need it fixed now.

Appears that db_fetch_object got removed when D7 came about.

Here's my attempt at a fix.

gaxze’s picture

Scrap that.

foreach is wrong the way round.

jeffstric’s picture

try:

$results = db_query("SELECT * FROM {profile_field}");
        foreach($results as $row) {
robert castelo’s picture

Status: Needs review » Fixed

Added to next release.

This only affects sites that have been upgraded from Dtupal 6 to Drupal 7 and are still using the old Profile module.

Status: Fixed » Closed (fixed)

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