Hi,

I was about to remove the core book module's content type "book page" (admin/structure/types/manage/book/delete).

It results in a "Fatal error: Call to undefined function db_fetch_object() in userpoints_node_action.module on line 128".

For your assistance I've looked at the docs and found http://drupal.org/update/modules/6/7#dbtng

Instead of iterating with db_fetch_object($result), you may iterate the $result of db_query() directly, it's an array of objects.

Userpoints Node Action module is still very important for Drupal 7!

Regards, Shnapoo

Comments

BillyMG’s picture

Assigned: Unassigned » BillyMG
Status: Active » Needs review

Check out the dev branch when it's updated; it should resolve the issue. Thanks for pointing out the issue and linking to the documentation.

dougsap’s picture

Status: Needs review » Reviewed & tested by the community

I recreated the issue with the 2011-Sep-17 version of 7.x-1.x-dev (for Chapter of Book and a custom content type).

After installing 7.x-1.x-dev with 2012-Jan-29 date, there is no error, the Content Type is deleted, and there are no log messages.

Fixed. Thanks!

BillyMG’s picture

Status: Reviewed & tested by the community » Fixed

Mark this one as fixed.

Status: Fixed » Closed (fixed)

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