Closed (fixed)
Project:
Nodeaccess
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2007 at 07:34 UTC
Updated:
2 Jul 2008 at 21:40 UTC
I've created a custom profile to setup my site with appropriate defaults. I'm trying to enable nodeaccess from within the profilename_profile_modules() function, and it fails with the following error in the log:
PHP Fatal error: Call to undefined function node_get_types() in /sites/all/modules/nodeaccess/nodeaccess.install on line 36
If I comment nodeaccess out in that function, I can install it with no issues from the admin interface (once the site is up and running). "nodeaccess" is the last element in the array I'm returning from that function, after the core modules are loaded.
Comments
Comment #1
mantyla commentedI conclude you must have done something wrong. node_get_types() is a core function from the node module, which is a required module too. It should be loaded before attempting to load any contrib modules.