Closed (fixed)
Project:
Search API
Version:
7.x-1.0-beta10
Component:
Facets
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2011 at 16:43 UTC
Updated:
2 Jan 2014 at 19:06 UTC
Jump to comment: Most recent
Comments
Comment #1
drunken monkeyYou seem to not have run update.php right after updating (did you maybe first try to clear the cache?), or something went wrong with the update.
This (i.e., the update code) should fix the issue. I had the same error before I wrote the update function.
The cause is the following:
- The stale entity_info cache data causes indexes to use the wrong controller class.
- The wrong controller class can't load indexes by name.
- Facets load their index by name.
- And the really bad thing: The facets' cache is rebuilt before the entity info is.
Maybe with this information you can find some other fix if the above doesn't help.
Comment #2
a1russell commentedActually, I did run update.php right after updating. I've finally found what I think is triggering it. Things work fine until I try to recreate my features containing the index and the facets. The diffs of the recreation look something like:
In my_feature.features.inc:
And in my_other_feature.info:
After I put these recreated features in place, the machine_name of my node index seems to change from node_index to 2, and everything goes down the toilet from there.
Comment #3
pfrenssenI'm having the same problem. I have to disable Features to be able to use the new versions of Search API and Entity API.
Comment #4
drunken monkeySeems to be caused by/related to #1193862: Rules are exported by Features with their numeric IDs instead of machine names. Does this still happen with the latest Entity API dev version (where this should now be fixed)?
Comment #5
a1russell commentedAh, who would have known to check the Rules issue tracker for an issue encountered in Search API? Haha. That was it, though... Thanks.
*Edit: Okay, the issue was in the Entity tracker, but still...the title was misleading. ;)
Comment #6
a1russell commentedComment #7
jfmyself commentedI have the same problem... where have I to put this code in my update.php file???
Should I replace this?
if (db_table_exists('cache_update')) {
cache_clear_all('*', 'cache_update', TRUE);
}
Comment #8
drunken monkeyNo, never change code in Drupal core files!
This problem should disappear when updating to the newest dev version of the Entity API, and then running update.php normally. (And then recreating the features.)
Comment #9
jfmyself commentedshould I update my Drupal core (7.0) to 7.2??? Could that be a reason of WSoD too???
Comment #10
a1russell commentedJfmyself, please at least try the solution discussed in this thread before asking about other possible causes of the problem. A bug report is not a place to ask for general support. That said, seeing as how Drupal 7.1 (and 7.2) include security fixes from 7.0, you should update regardless of whether it is the cause of any WSOD.
Comment #11
jfmyself commentedOk thanks! Sorry I didn't know... :S