Hello,
I would like to try this module, but I was not able to set it up. I tried to install it with cck facets, and got a problem. Now, if I had the FS directory in modules, I get:
Fatal error: Class 'faceted_search_ui_style' not found in /Users/thomasjulou/Sites/LPS/drupal57/modules/faceted_search/faceted_search_views.module on line 87
So I have no access any more to the site, but if I remove the FS module…
Thank you in advance for your help,
Thomas
Comments
Comment #1
julou commentedComment #2
julou commentedNo idea, really?
Your help would be greatly appreciated…
Thank you in advance, Thomas
Comment #3
David Lesieur commentedIf you wish to use CCK Facets, make sure you have the "dev" version of Faceted Search, as stated on the CCK Facets page.
Comment #4
julou commentedI try to make it clearer:
I installed both Faceted Search and CCk facets. It didn't work: I removed both.
Now if I add the (dev version of) CCK facets in "modules", it appears in the module page and displays a warning to remind me Faceted search is missing.
If I add Faceted search in "modules" (with or without CCK facets), I get this error message on every page of the site:
Obviously, I am not the only one with this trouble: see the comment at the bottom of this page as well as the last record on this google search.
Thank you for your help,
Thomas
Comment #5
Helmut Neubauer commentedI know this problem. I had it too. I'm not sure, if there is a bug. I didn't have the time to analyze it completely. You can do the following work around:
open the module file 'faceted_search_views.module' in an editor and add the following php command:
include_once('faceted_search_ui.module');
Comment #6
borgo commentedI had similar problem, I think...
I needed CCK facets, so installed module and got an error, then I found out I needed dev version of Faceted search to use with cck facets. So I disabled the Faceted search, removed the folder from /modules folder, and replaced it with dev version. I got the same error as you. All website was inaccessible, so I got to hard edit the tables in database.
To turn off the module in database I searched in system table. In rows mentioning faceted I changed status value from 1 to 0. Site started to work, I made sure the faceted search and cck facets are turned off, then I uninstalled them properly in /admin/build/modules/uninstall and reinstalled the new dev version of Faceted search and Cck facets. It seems to work OK now.
I'm not an expert on this, but it seems to work fine. Hope it helps.
Comment #7
borgo commentedNope! I got the same problem again, Helmut's solutions seems to fix it well. Thanks.
Comment #8
David Lesieur commentedIt is not normal to have to "manually" include faceted_search.module... The order of file inclusion in your installation seems incorrect. Perhaps there is an issue with indirect dependencies in Drupal's package system? faceted_search_views.info put faceted_search_ui as a dependency, but did not specify indirect dependencies such as faceted_search. I have now added faceted_search in the dependencies and I think that will solve the issue (with new installs at least).
Comment #9
David Lesieur commentedComment #10
jbrown commentedThis bug still exists.
I think Drupal includes each module's .module file while they are being enabled and does not do so in dependancy order. This causes the error. The dependencies do not get installed and the site is left broken.
If you enable Faceted Search Views separately this problem does not arise.
This is not normally a problem as most modules do not use classes or extend them across modules.
Comment #11
David Lesieur commented@jbrown: You seem right... faceted_search_views extends a base class from faceted_search_ui, but there are no guarantees that faceted_search_ui.module is loaded before faceted_search_views.module.
I've just committed a change that should fix it: A new .inc file containing the base class and that is explicitly included from any module that need that class.
Comment #12
David Lesieur commentedComment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.