Call to undefined function node_get_types. Compatibility issue with OG?

sadist - September 11, 2009 - 02:42
Project:ipAuthenticator - authenticates an IP to a role
Version:6.x-1.5
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

the reason i would like to use this module is for this feature:

"A user can have basic privileges to sensitive data without having to login while inside a local network; however, they will have to login if they are accessing the site from outside a local network."

so this is the solution i've been looking for (http://drupal.org/node/570120)

after installing this module, i went to the admin page, add an IP and assign a user. i'd already make sure that the user is blocked at his account, and set active at ip_authenticator setting.

from any computers that is not logged in to Drupal yet, the site won't be able to be displayed. an error will occur:
Fatal error: Call to undefined function node_get_types() in /home/www/sites/all/modules/og/og.module on line 194

Untick the to set user inactive from ip_authenticator, the site is back to normal.

Other modules that is running on the system that i must mention here is Organic Group, Content Access, CCK, Archive, Messaging, Notifications, Global Redirect, Ubercart.

Anyone having a similar problem?

Thanks in advanced!

#1

sadist - September 11, 2009 - 14:05

i'd just tried it again, but this time was from my home. the result is weird but true.

With the IP address that I'd set from my office this morning, I was surprised that I did not receive any error though I can't login. It says that the username not been activated or is blocked. Fine, though I'd already make sure that it is set to active at the ip_authenticator settings.

So, I added a new IP and assigned to the SAME username. If I set the new IP to active, now I will get back that error message I got earlier. But I won't get it if it's back to the old one (but still can't login).

This same goes when I create and assign to another new username, will receive the error message.

#2

sadist - September 11, 2009 - 14:50

sorry, it's og.module on line 1941.

and i'd tried both Release version and Dev Snapshots with no success.

when i disabled and uninstalled OG module, i don't see that error anymore. but i am still not able to login, infact, i lost the login block.

#3

sadist - September 15, 2009 - 07:41

any help here? please?

#4

noahterp - November 21, 2009 - 23:06

As a stop-gap solution to this problem, change the weight for this module so it loads before OG:

In the {system} database table, look for "ipauth" in the name field. Then set it's weight field to a lighter number, like -1.

This removes the node_get_types() PHP error for me so the site loads again. Not an ideal code-based solution, but it works for now.

 
 

Drupal is a registered trademark of Dries Buytaert.