On a fresh drupal installation, I got the undefined libraries function error. Below is the error stack.
vagrant@kdlnmp:/var/www/sites/drupal-pm.dev/public/acetest$ drush en -y ace_editor
The following projects have unmet dependencies: [ok]
ace_editor requires libraries
Would you like to download them? (y/n): y
Project libraries (7.x-2.2) downloaded to /var/www/sites/drupal-pm.dev/public/acetest/sites/all/modules/libraries. [success]
PHP Fatal error: Call to undefined function libraries_get_path() in /var/www/sites/drupal-pm.dev/public/acetest/sites/all/modules/ace_editor/ace_editor.install on line 108
PHP Stack trace:
PHP 1. {main}() /home/vagrant/.composer/vendor/drush/drush/drush.php:0
PHP 2. drush_main() /home/vagrant/.composer/vendor/drush/drush/drush.php:12
PHP 3. Drush\Boot\BaseBoot->bootstrap_and_dispatch() /home/vagrant/.composer/vendor/drush/drush/includes/preflight.inc:66
PHP 4. drush_dispatch() /home/vagrant/.composer/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php:67
PHP 5. call_user_func_array:{/home/vagrant/.composer/vendor/drush/drush/includes/command.inc:185}() /home/vagrant/.composer/vendor/drush/drush/includes/command.inc:185
PHP 6. drush_command() /home/vagrant/.composer/vendor/drush/drush/includes/command.inc:185
PHP 7. _drush_invoke_hooks() /home/vagrant/.composer/vendor/drush/drush/includes/command.inc:217
PHP 8. call_user_func_array:{/home/vagrant/.composer/vendor/drush/drush/includes/command.inc:366}() /home/vagrant/.composer/vendor/drush/drush/includes/command.inc:366
PHP 9. drush_pm_enable_validate() /home/vagrant/.composer/vendor/drush/drush/includes/command.inc:366
PHP 10. drupal_check_module() /home/vagrant/.composer/vendor/drush/drush/commands/pm/pm.drush.inc:1108
PHP 11. module_invoke() /var/www/sites/drupal-pm.dev/public/acetest/includes/install.inc:1228
PHP 12. call_user_func_array:{/var/www/sites/drupal-pm.dev/public/acetest/includes/module.inc:922}() /var/www/sites/drupal-pm.dev/public/acetest/includes/module.inc:922
PHP 13. ace_editor_requirements() /var/www/sites/drupal-pm.dev/public/acetest/includes/module.inc:922
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function libraries_get_path() in
/var/www/sites/drupal-pm.dev/public/acetest/sites/all/modules/ace_editor/ace_editor.install, line 108
Comments
Comment #3
interdruper commented