Closed (fixed)
Project:
Userpoints Node Action
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Anonymous (not verified)
Created:
28 Jan 2012 at 13:05 UTC
Updated:
14 Dec 2018 at 07:29 UTC
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
Comment #1
BillyMG commentedCheck out the dev branch when it's updated; it should resolve the issue. Thanks for pointing out the issue and linking to the documentation.
Comment #2
dougsap commentedI 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!
Comment #3
BillyMG commentedMark this one as fixed.