Hello All,
I am using aegir within a BOA environment and am having an issue trying to verify a platform I can get the makefile to build with drush make (not using --working-copy). However when I try and create an aegir platform using the makefile the verify is failing with the following error:
Drush command terminated abnormally due to an unrecoverable error. Error: Call to undefined function module_load_include() in /data/disk/o2o/static/julio-7.x-1.x-dev/profiles/julio/julio.profile, line 3
Output from failed command : Fatal error: Call to undefined function module_load_include() in /data/disk/o2o/static/julio-7.x-1.x-dev/profiles/julio/julio.profile on line 3
This is line 3 of julio.profile
!function_exists('feature_set_admin_form') ? module_load_include('inc', 'feature_set', 'feature_set.admin') : FALSE;
Any idea why aegir doesn't like this? I initially raised this in the issue queue for the distro (#1776662: Incompatibilty with Aegir Call to undefined function module_load_include() when calling aegir makefile verify) but the Julio developer suspects it is an issue with the drupal bootstrap level that provision verify calls and does not believe it to be an issue with the distro.
I ran the drush command manually with the --debug switch and have pasted the output below:
xxx@xxxxxxxx:~/static$ /data/disk/o2o/tools/drush/drush.php @platform_Julio7x1xdev provision-verify --debug
Bootstrap to phase 0. [0.06 sec, 2.86 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.07 sec, 3.08 MB] [bootstrap]
Load alias @platform_Julio7x1xdev [0.08 sec, 3.09 MB] [notice]
Bootstrap to phase 0. [0.18 sec, 10.28 MB] [bootstrap]
Found command: provision-verify (commandfile=provision) [0.18 sec, 10.28 MB] [bootstrap]
Initializing drush commandfile: db [0.18 sec, 10.29 MB] [bootstrap]
Initializing drush commandfile: dns [0.18 sec, 10.29 MB] [bootstrap]
Initializing drush commandfile: drush_make [0.18 sec, 10.29 MB] [bootstrap]
Initializing drush commandfile: drush_make_d_o [0.18 sec, 10.29 MB] [bootstrap]
Initializing drush commandfile: example [0.18 sec, 10.29 MB] [bootstrap]
Initializing drush commandfile: http [0.18 sec, 10.3 MB] [bootstrap]
Initializing drush commandfile: provision [0.18 sec, 10.3 MB] [bootstrap]
Load alias @server_master [0.18 sec, 10.31 MB] [notice]
Loading mysql driver for the db service [0.21 sec, 10.49 MB] [notice]
Loading nginx driver for the http service [0.21 sec, 10.59 MB] [notice]
Loading nginx driver for the cdn service [0.21 sec, 10.63 MB] [notice]
Initializing drush commandfile: provision_cdn [0.22 sec, 10.64 MB] [bootstrap]
Initializing drush commandfile: provision_civicrm [0.22 sec, 10.64 MB] [bootstrap]
Including /data/disk/o2o/.drush/provision_civicrm/verify.provision.inc [0.22 sec, 10.64 MB] [bootstrap]
Including /data/disk/o2o/.drush/provision/dns/verify.provision.inc [0.22 sec, 10.75 MB] [bootstrap]
Including /data/disk/o2o/.drush/provision/platform/backupmigrate/verify.provision.inc [0.24 sec, 10.75 MB] [bootstrap]
Including /data/disk/o2o/.drush/provision_boost/verify.provision.inc [0.25 sec, 10.75 MB] [bootstrap]
Including /data/disk/o2o/.drush/provision_cdn/verify.provision.inc [0.25 sec, 10.81 MB] [bootstrap]
Including /data/disk/o2o/.drush/provision/platform/verify.provision.inc [0.25 sec, 10.82 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.27 sec, 11.02 MB] [bootstrap]
Initialized Drupal 7.15 root directory at /data/disk/o2o/static/julio-7.x-1.x-dev [0.34 sec, 12.62 MB] [notice]
Drupal sites directory /data/disk/o2o/static/julio-7.x-1.x-dev/sites is writable by the provisioning script [0.34 sec, 12.63 MB] [message]
Undefined variable: sites provision_drupal.drush.inc:412 [0.37 sec, 12.63 MB] [notice]
This platform is running drupal 7.15 [0.37 sec, 12.63 MB] [notice]
Found 104 modules in base [1.09 sec, 13.28 MB] [notice]
Found 4 themes in base [1.15 sec, 13.31 MB] [notice]
PHP Fatal error: Call to undefined function module_load_include() in /data/disk/o2o/static/julio-7.x-1.x-dev/profiles/julio/julio.profile on line 3
Fatal error: Call to undefined function module_load_include() in /data/disk/o2o/static/julio-7.x-1.x-dev/profiles/julio/julio.profile on line 3
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function module_load_include() in /data/disk/o2o/static/julio-7.x-1.x-dev/profiles/julio/julio.profile, line 3 [1.23 sec, 13.83 MB]Does anyone know why the module_load_include function causes this problem?
TIA,
JamieT
Comments
Comment #1
jamiet commentedI get a similar issue with nodemaker distro - within it's nodemaker.profile file there is:
I get a similar error with this distro when running platform verify tasks with call to undefined function on drupal_get_path() functions. Commenting these functions out enables the verify to succeed and then un-commenting the lines enables aegir to install a new site on the platform.
I have marked this issue as a bug as it seems to be a problem for a couple of distros now (Julio and nodemaker) and also in the hope that someone more knowledgeable about the workings or provision-verify will notice this and help out?
TIA,
JamieT
Comment #2
helmo commentedThe 6.x-2.x branch will go EOL along with Drupal this week. So I'm closing
this issue. If it remains a confirmed issue in 7.x-3.x, feel free to re-open,
or better yet, create a new issue referencing this one.