Closed (fixed)
Project:
Sarnia
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Dec 2011 at 06:21 UTC
Updated:
29 Oct 2014 at 20:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
christowm commentedI get the same problem. I used the same steps and ended up with the same error.
Comment #2
egarias commentedsame here without drush
Comment #3
christowm commentedSo here is what we found out so far. The item_type field in the search_api_index table is NULL. Which seems to cause the uncaught exception. If a value is entered such as "Node" or the value that you would have in the "machine_name" column, then the server is at least accessible again. However at this point we don't know yet what the correct value must be in the item_type field, nor do we know why it is NULL. Hopefully someone can come up with additional information.
Comment #4
christowm commentedOne of our developers (Chris) has done the debugging and found the problem in the sarnia_entity_type_save function of the sarnia.entities.inc file. It looks like the creation of the item_type was omitted in the save function. Here is a patch that Chris created and tested. Please review this patch and provide feedback if it fixes the problem.
Oh, and if you have already fubared your Drupal installation and get the error listed above you can fix it by updating the item_type field in the search_api_index table. Just enter the machine_name into the item_type field and you should be able to get back to your Drupal instance.
Mitch
Comment #5
egarias commentedConfirmed, this solves my issue
Many Thanks!!!
It was a blocking problem, with inaccessible site as a result.
Comment #6
christowm commentedGreat. Glad to see it works. Could the powers that be add this patch to the next release candidate? Many thanks.
Comment #7
becw commentedI've committed this patch; its in the 7.x-1.x branch. Thanks for working this out!
Comment #8
milesw commentedNice work! Looking forward to giving this another shot. :)
Comment #10
mwangi commentedI was having a similar problem
SearchApiException: Unknown or invalid item type node. in search_api_get_datasource_controller() (line 1677 of /home/frontlin/public_html/drop_jobs/profiles/drop_jobs/modules/contrib/search_api/search_api.module).
solved it by rolling back search API module from 7.x-1.8 to 7.x-1.7
Now the site is ok
Comment #11
dergachev commentedI believe this might be related/duplicate of https://www.drupal.org/node/1338156