Closed (cannot reproduce)
Project:
Search API
Version:
7.x-1.11
Component:
Framework
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2011 at 22:25 UTC
Updated:
29 Oct 2014 at 20:50 UTC
Jump to comment: Most recent
Comments
Comment #1
drunken monkeyThis is strange indeed. It seems the update function was successfully executed, but the cache was not cleared afterwards. Therefor, the hook implementation is not found.
Try to manually clear the cache, or to disable and then re-enabled the Search API module.
Comment #2
yurg commentedThank you, will do: as far as I could see even node deletion relates from SearchAPI status now. Just found some records like this in Watchdog:
Guess it's because update wasn't finished. SO just leaving error message here in order to help other searchers with same issue.
Comment #3
drunken monkeySee #1313088-9: Fatal error: Class name must be a valid object or a string in drupal/includes/common.inc on line 7522 and install the Database search module.
Comment #4
yurg commentedSpoke too soon unfortunately: still get an issues with illegal service class search_api_db_service. in SearchApiServer->ensureProxy() (line 133 of.. even after disabling module - clearing cache - enabling module & disabling search server.
Additionally An error occurred while trying to index items on index contentsearch: Search server with machine name search specifies illegal service class search_api_db_service. error started to appear. Previously I resolved it by completely module re-installing, guess I have to repeat it now and afraid that will have to do it after next module update?
Comment #5
yurg commentedOk, thank you! Will give it a try: let's see how it will work with "Search views" also.
Comment #6
drunken monkeyComment #7
janip commentedThe "Unknown or invalid item type node." issue occurs in our project too during profile installation after upgrading to 7.x-1.0-rc1.
Comment #8
drunken monkeyDuring installation? OK, that's really weird, I can't imagine how that could ever happen. Could you maybe get a stack trace of the error?
Otherwise I'd have to conclude this is some weird hidden bug in core, not properly clearing the
module_implements()cache or such.Comment #9
janip commentedI will do some debugging. The actual error message in our case is "Unknown or invalid item type .", so the type seems to be missing.
Our search index is exported as a feature (using older versions), so I think that is the problem. The exported index does not contain item_type and may be missing other important data as well.
Comment #10
drunken monkeyAs update functions naturally don't touch exported data, you should never do this anyways. Import the index, execute the update function, export the index again.
In this case, replacing all occurrences of
'entity_type'with'item_type'should, however, also work.Oh, apart from the fact that the field and workflow settings will be wrong, too. So yeah, just do the update the right way and you should have no problems.
Comment #11
Jujubre commentedI also have this issue during my installation process.
Comment #12
Jujubre commentedReverting to beta10 allow me to pass the error.
Comment #13
yurg commentedGuess I should continue here. So, after Database search module installation I tried to configure SearchAPI and received these errors after saving Search Index:
Additionally, after that I tried to configure (mean edit first and disable/delete after) my View which uses SearchAPI and received this on WSOD:
Will probably continue researches, but this time even don't know where to start from.
Comment #14
drunken monkeyContinue from where? And how is your error similar to the one discussed here?
Please don't randomly hijack issues!
Comment #15
yurg commentedThank you for your help and sorry for hijacking: I just tried to follow your advises and continue posting results here in order to provide as much as possible issue details. Issue could be closed anyway: I decided to use core Search since my tasks don't require all SearchAPI power.
Thank you again and sorry for disturbance.
Comment #16
Kodiak commentedI have the same problem, I don't even know how it happened but when trying to create a new index, the "item type" dropdown only shows the type "user".
And when I try to access a previously created index on nodes, I get this very error.
SearchApiException : Unknown or invalid item type node. dans search_api_get_datasource_controller() (line 1334 in [...]\drupal-7.18\sites\all\modules\search_api\search_api.module).The same error occures when I try to uncheck Search API in the module list... So I can't even uninstall it.
EDIT: sorry, my version of Search API is 7.x-1.3, not beta2
Comment #17
Kodiak commentedReproduced with 1.4
Comment #18
Todd Young commentedDitto. Something I've installed - either Search API or Commerce Search API has tried to create an index during install, but the index it created has no name or other fields populated. Can't delete it, can't populate & save it.
Comment #19
ajlozier commentedThis may be completely unrelated, but I had this same error. Once I disabled APC cache the problem went away.
Comment #20
vaccinemedia commentedI get:
SearchApiException: Unknown or invalid item type node. in search_api_get_datasource_controller() (line 1336 of /var/www/vhosts/commerce.pix/httpdocs/profiles/commerce_kickstart/modules/contrib/search_api/search_api.module).
When installing Node Export and UUID on Commerce Kickstart (no demo store).
Comment #21
ruski commentedUpgrading to the latest dev version of UUID fixed this for me.
Comment #22
BParticle commentedSame here, latest dev of UUID fixed this ugly error.
Comment #23
drupalninja99 commentedDoes search api have some kind of dependency on uuid? I am running into the same issue. I really don't want to have uuid installed if I don't need it. Is it a situation where uuid either needs to be a) upgraded or b) uninstalled?
I don't understand the relationship.
Comment #24
gmclelland commented@drupalninja99 - There's no dependency. If you use UUID, then it needs to be upgraded. At least I think that is what fixed it for me.
Comment #25
drupalninja99 commentedOK well one problem I discovered was that I was using the wrong schema.xml. I had copied the apachesolr one instead of the search_api_solr schema which is different. So this might be a search_api_solr issue. I thought that would fix the problem but sadly it didn't.
Comment #26
drupalninja99 commentedOK I found my problem:
My server setting at /admin/config/search/search_api/server/dev_solr/edit was different than the search configured with the apache solr module. So I just had to fix that. I had dumped a production site that I was setting up locally so I had to change the solr server info and that's what was breaking.
Comment #27
drunken monkeyOK, seems like no-one has any problems here anymore?
For UUID users, as said, please use the newest dev version (and maybe go to #1663390: Roll a new UUID stable release and help trying to talk some sense into the maintainers).
Comment #29
texas-bronius commentedJust sharing with the world.. Latest uuid 1.0-alpha and then -dev, still no joy.
My situation:
Developing locally, mysqldump and restore to remote Pantheon server: Kablammo! Every time I visit a particular index's Status page I get the error:
Not reopening, per se, as I've never had problems like this before-- just sharing more forensics in hopes it helps someone else. (or me) I did in fact just delete the Index (which initially produced the error again, but hitting back gave 404 on that index, and up one level showed the index gone: no more error).
Comment #30
divined commentedSearchApiException: Unknown or invalid item type node. in search_api_get_datasource_controller() (line 1853 of /sites/all/modules/search_api/search_api.module)
Comment #31
divined commentedSearch API Attachments Field Collections module problem.
Comment #32
divined commentedNope.
At evening all was fine. Open site at morning and i get:
SearchApiException: Unknown or invalid item type node. in search_api_get_datasource_controller() (line 1705 of ... search_api.module).
Comment #33
divined commentedreturn zero array();
Comment #34
drunken monkey… What?
Is this fixed now or active? In the latter case, what do you want to say with the last comment?
Comment #35
divined commentedIt's active.
Try to find error.
Comment #36
divined commentedAny manipulation with modules (Install or Uninstall) fix error on a few days.
And after few days of site inactivity i get this error again.
Comment #37
divined commentedit's entity module problem.
/includes/entity.property.inc
20 function entity_get_property_info($entity_type = NULL)
32 cache_get("entity_property_info:$langcode") not return "node" info
something broke this cache ((
Comment #39
zuernbernhard commentedSame Problem here:
SearchApiException: Unknown or invalid item type profile2
Comment #40
zuernbernhard commentedComment #41
drunken monkey@ zuernBernhard: Please provide a bit more detail and context. When does this happen?
Better still, please close this again and open a new issue. This one is too full of year-old bug reports which probably haven't got the same cause as your issue.
Comment #42
zuernbernhard commentedOk,
haven't seen the problem during the last 3 or 4 days. WIll open a new issue if it occurs again. Thank you anyway !
Comment #43
zuernbernhard commentedComment #44
mrded commentedI can confirm this problem on 7.x-1.11 version.
7.x-1.13 seems to solve the problem,
Comment #45
dergachev commentedJust an FYI we're having the same problem, and after hours of debugging it was caused by this:
https://www.drupal.org/node/496170
In our case we had upgraded to php 5.3, which caused some depreciation warnings very early in the bootstrap due to watchdog.
This too-early use of watchdog polluted (corrupted) the module_implements() caches.
The solution for us? Fix the warnings in the code. But obviously it's a really thorny issue and I'm hoping that in a few months/years it's properly addressed in core.
That hook caching scheme is pretty complicated and the errors it causes are hard to track down, which might explain why that bug hasn't been fixed for so many years.