Closed (fixed)
Project:
OpenID Selector
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2011 at 17:00 UTC
Updated:
8 Mar 2013 at 01:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
andriy_gerasika commenteddo you install using install profiles? I suspect this error might be related to
http://drupal.org/node/1064298
Comment #2
kenorb commentedNo, it was simply enabled from admin/build/modules
I think you shouldn't use any of module function which haven't been activated yet and it happen very often with Drupal when you activating depending modules at once.
It's kind of Drupal bug, but it never was fixed.
Could be related to: #389126: system_modules_submit() disable only the module whose hook_requirements() returns an error, not the modules depending from it
Comment #3
kenorb commentedComment #4
sylv3st3r commentedI can confirm that this happen to latest D7 version.
Fresh download Libraries and this module. Active both modules at the same time. And boom.
Comment #5
lee20 commentedSame problem occurred with 6.x-1.5 when trying to enable both modules at the same time using Drush. Easy workaround to get up and running is to enable libraries, then enable openid_selector (in case that wasn't already obvious).
Comment #6
andriy_gerasika commentedfixed in Drupal 6 & Drupal 7 -dev versions (dev version downloads will be refreshed in 12 hours)
Comment #8
xurizaemon46aa8256bd8459538889ad14da60d6a3f306e9e9 didn't fix this ... How about this?
Duplicated by #1241040: Fatal error: Call to undefined function libraries_get_path().
Comment #9
xurizaemonUpdating patch above to roll in #1673186: Correct drupal_system_listing() $mask param for D7 preg_match() because I am too lazy to manage conflicting patch streams for one-liners while we wait for a reply on #1673150: Is OpenID Selector still being maintained?.
Comment #10
xurizaemonPatch above is bung, it checks the function exists then tries to include_once libraries.module anyway. Apparently I was confused.
On reflection, rather than duplicating libraries module functionality for hook_enable(), shouldn't we just make the JS library check a bit more re-useable, check it in hook_requirements() and on config page, and be done with it?
If this goes from hook_enable() then the problem is solved. If we need Drupal to load depended modules reliably for use in hook_enable() then that's not OpenID Selector's problem (which I think kenorb is alluding to).
Comment #11
andriy_gerasika commentedfixed in http://drupalcode.org/project/openid_selector.git/commit/1ae4acc