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.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | htmlpurifier-rowcount_postgresql-1832250-1.patch | 832 bytes | mscalone |
Comments
Comment #1
mscalone CreditAttribution: mscalone commentedHere is one possible solution.
Comment #2
mscalone CreditAttribution: mscalone commentedComment #3
heddnhttp://drupalcode.org/project/htmlpurifier.git/commit/d05cd55c8568bd5eec...
Comment #4.0
(not verified) CreditAttribution: commentedphp format
Comment #5
yan CreditAttribution: yan as a volunteer commentedThe patch also fixes my error on update 7000 when upgrading from D6:
But it's been three years since the last release so the bug is still in there. Any plans for a new release?