Closed (duplicate)
Project:
jQuery UI
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2009 at 13:39 UTC
Updated:
23 Jun 2009 at 08:41 UTC
Since jquery_ui_requirements() calls drupal_get_path(), which in turns calls drupal_get_filename(), which then looks at whether db_is_active(), and it is active, so it tries to do a SELECT on the system table. However, a system table is not yet installed, since Drupal just checks whether the default set of modules for the profile can be installed. So an 'install' phase of a profile should not have DB queries, because it will be called before any DB table is actually installed.
Attached relevant patch. Same issue would also apply to D6.
| Comment | File | Size | Author |
|---|---|---|---|
| jquery-ui-no-install.patch | 854 bytes | gábor hojtsy |
Comments
Comment #1
gábor hojtsyUhm actually one should return an array from here.
Comment #2
sunThis should already be fixed in CVS, no?
Comment #3
sunoh, btw, since you're working on HEAD/core, it might be worth to also look at #454382: Provide jquery_ui_elements() for easier usage of plugins in other modules.
Comment #4
gábor hojtsyThis was indeed fixed in #325831: url() in hook_requirements breaks install profiles, but we were not tracking had closely.