Closed (fixed)
Project:
Node Subpages
Version:
7.x-2.0-beta1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2012 at 10:42 UTC
Updated:
10 May 2012 at 12:51 UTC
In the node_subpages install file, the requirements hook calls a function from the main module (node_subpages.module) itself. The main module is not loaded at install time, yielding a function not found error. This can be solved by loading the main module file manually:
function node_subpages_requirements($phase) {
$t = get_t();
$requirements = array();
module_load_include('module', 'node_subpages');
if (!node_subpages_check_ctools_version()) {
...
Comments
Comment #1
BrockBoland commentedThanks for catching that! I was so focused on making sure that the upgrade path was OK that I overlooked this.
I just released 7.x-2.0-beta2 with this fix in place. I used
drupal_load()instead ofmodule_load_include()since it's intended for modules and themes.