The error was detected while upgrading from D6 to D7 and executing the update htmlpurifier_update_7000. There is an error on htmlpurifier_update_7000 function in htmlpurifier.install. In line 276 its used a mysql specific function to get the row count:

    if (mysql_num_rows($query) == 0) {
        db_drop_table($d6_table);
    }

The solution is to use a equivalent DB api function.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mscalone’s picture

Here is one possible solution.

mscalone’s picture

Status: Active » Reviewed & tested by the community
heddn’s picture

Status: Reviewed & tested by the community » Fixed

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

Anonymous’s picture

Issue summary: View changes

php format

yan’s picture

Issue summary: View changes

The patch also fixes my error on update 7000 when upgrading from D6:

mysql_num_rows() expects parameter 1 to be resource, object given htmlpurifier.install:278

But it's been three years since the last release so the bug is still in there. Any plans for a new release?