I am trying to create a profile with the profiler_builder and by hand which lists atjs as dependency. During the install process, I receive the following error message:

[Wed Mar 23 17:05:57.008210 2016] [:error] [pid 20877] [client ::1:37241] PHP Fatal error:  Call to undefined function libraries_get_libraries() in /home/user/drupal-code/sites/all/modules/atjs/atjs.install on line 224, referer: http://localhost/drupal-test/install.php?profile=my_profile
[Wed Mar 23 17:05:57.009936 2016] [:error] [pid 20877] [client ::1:37241] PHP Stack trace:, referer: http://localhost/drupal-test/install.php?profile=my_profile
[Wed Mar 23 17:05:57.009953 2016] [:error] [pid 20877] [client ::1:37241] PHP   1. {main}() /home/user/drupal-code/install.php:0, referer: http://localhost/drupal-test/install.php?profile=my_profile
[Wed Mar 23 17:05:57.009960 2016] [:error] [pid 20877] [client ::1:37241] PHP   2. install_drupal() /home/user/drupal-code/install.php:26, referer: http://localhost/drupal-test/install.php?profile=my_profile
[Wed Mar 23 17:05:57.009966 2016] [:error] [pid 20877] [client ::1:37241] PHP   3. install_run_tasks() /home/user/drupal-code/includes/install.core.inc:77, referer: http://localhost/drupal-test/install.php?profile=my_profile
[Wed Mar 23 17:05:57.009972 2016] [:error] [pid 20877] [client ::1:37241] PHP   4. install_run_task() /home/user/drupal-code/includes/install.core.inc:339, referer: http://localhost/drupal-test/install.php?profile=my_profile
[Wed Mar 23 17:05:57.009978 2016] [:error] [pid 20877] [client ::1:37241] PHP   5. install_verify_requirements() /home/user/drupal-code/includes/install.core.inc:471, referer: http://localhost/drupal-test/install.php?profile=my_profile
[Wed Mar 23 17:05:57.009983 2016] [:error] [pid 20877] [client ::1:37241] PHP   6. install_check_requirements() /home/user/drupal-code/includes/install.core.inc:743, referer: http://localhost/drupal-test/install.php?profile=my_profile
[Wed Mar 23 17:05:57.009989 2016] [:error] [pid 20877] [client ::1:37241] PHP   7. drupal_check_profile() /home/user/drupal-code/includes/install.core.inc:1625, referer: http://localhost/drupal-test/install.php?profile=my_profile
[Wed Mar 23 17:05:57.009994 2016] [:error] [pid 20877] [client ::1:37241] PHP   8. atjs_requirements() /home/user/drupal-code/includes/install.inc:1189, referer: http://localhost/drupal-test/install.php?profile=my_profile

When removing the atjs dependency and all dependencies that require atjs, the profile is successfully installed.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ehj-52n created an issue. See original summary.

ehj-52n’s picture

Priority: Critical » Normal
david.hughes’s picture

Status: Active » Needs review
FileSize
352 bytes

Thanks for raising this!

I've added a check for the libraries_get_libraries function at the start of hook_requirements. This does mean that at install/update phase your libraries will not be checked but the status report will still show.

Please can you check that this works for you?

david.hughes’s picture

Hi ehj-52n, can you update and let me know if you're still having issues with this? Just noticed that heylookalive has made a commit that should fix this.

ehj-52n’s picture

Status: Needs review » Reviewed & tested by the community

I just tested it and the error seems to be fixed.

david.hughes’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.