SearchApiException: Unknown or invalid item type node-Collection of common programming errors
I was working on site, when I got this error:
WD php: SearchApiException: Unknown or invalid item type node. in [error] search_api_get_datasource_controller() (line 1396 of /var/www/luken/shop/sites/all/modules/search_api/search_api.module). SearchApiException: Unknown or invalid item type node. w search_api_get_datasource_controller() (linia 1396 z /var/www/luken/shop/sites/all/modules/search_api/search_api.module). Drush command terminated abnormally due to an unrecoverable error.
[error]
Site is telling me about “Unexpected error”, the above error I’m getting thanks to the Drush. Last thing that I did, was:
- Removing one Product Display content type (I’m using Commerce),
- Changing indexed fields in Search API,
- Clearing the cache – after that, site was down.
I even don’t know where to start with fixing this. I was trying to disable Search API module with Drush, but it appeared that I can’t, because I’m getting above error all the time. I can access to /admin/modules but still I cannot disable Search API, because of unexpected error.
What can I do to fix this?
Added: I deleted my search index, now I was able to disable Search API, but error still appears when entering the site. I checked log, there is an error:
EntityMetadataWrapperException: Unknown data property commerce_product. w EntityStructureWrapper->getPropertyInfo() (linia 339 z /var/www/luken/shop/sites/all/modules/entity/includes/entity.wrapper.inc).