{"id":6097,"date":"2014-04-13T02:18:11","date_gmt":"2014-04-13T02:18:11","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/searchapiexception-unknown-or-invalid-item-type-node-collection-of-common-programming-errors\/"},"modified":"2014-04-13T02:18:11","modified_gmt":"2014-04-13T02:18:11","slug":"searchapiexception-unknown-or-invalid-item-type-node-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/searchapiexception-unknown-or-invalid-item-type-node-collection-of-common-programming-errors\/","title":{"rendered":"SearchApiException: Unknown or invalid item type node-Collection of common programming errors"},"content":{"rendered":"<p>I was working on site, when I got this error:<\/p>\n<blockquote>\n<p>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.<\/p>\n<p>[error]<\/p>\n<\/blockquote>\n<p>Site is telling me about &#8220;Unexpected error&#8221;, the above error I&#8217;m getting thanks to the Drush. Last thing that I did, was:<\/p>\n<ol>\n<li>Removing one Product Display content type (I&#8217;m using Commerce),<\/li>\n<li>Changing indexed fields in Search API,<\/li>\n<li>Clearing the cache &#8211; after that, site was down.<\/li>\n<\/ol>\n<p>I even don&#8217;t know where to start with fixing this. I was trying to disable Search API module with Drush, but it appeared that I can&#8217;t, because I&#8217;m getting above error all the time. I can access to \/admin\/modules but still I cannot disable Search API, because of unexpected error.<\/p>\n<p>What can I do to fix this?<\/p>\n<p><strong>Added:<\/strong> 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:<\/p>\n<blockquote>\n<p>EntityMetadataWrapperException: Unknown data property commerce_product. w EntityStructureWrapper-&gt;getPropertyInfo() (linia 339 z \/var\/www\/luken\/shop\/sites\/all\/modules\/entity\/includes\/entity.wrapper.inc).<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8220;Unexpected [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6097","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6097"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6097\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}