Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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.