Enabling nodeaccess from a profile causes fatal php error
| Project: | Nodeaccess |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
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.

#1
I 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.