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.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | cannot_install_profile-2693025-3.patch | 352 bytes | david.hughes |
Comments
Comment #2
ehj-52n CreditAttribution: ehj-52n as a volunteer commentedComment #3
david.hughesThanks 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?
Comment #4
david.hughesHi 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.
Comment #5
ehj-52n CreditAttribution: ehj-52n as a volunteer commentedI just tested it and the error seems to be fixed.
Comment #6
david.hughesThanks!