The latest update of Search API renamed the {search_api_index}.entity_typerow to {search_api_index}.item_type. See this issue: #1064884: Add support for indexing non-entities and this commit: http://drupalcode.org/project/search_api.git/commit/8552f6c

So extended search is spitting out this error:
Notice: Undefined property: SearchApiIndex::$entity_type in ext_search_page_load_pages() (line 895 of /home/content/09/7651809/html/myavail/sites/all/modules/ext_search_page/ext_search_page.module).

Here's a patch that fixes this.

CommentFileSizeAuthor
extended_search.patch451 bytespaulgemini

Comments

paulgemini’s picture

Status: Active » Needs review
paulgemini’s picture

Issue tags: +Search API
paulgemini’s picture

Title: update to Search API causes error » updating to latest Search API dev causes error
quazardous’s picture

commited with some other changes (had to use the new ->entityWrapper())

to be tested !

softmax’s picture

When I create a search page I get on the next screen following error:

"Notice: Undefined property: SearchApiIndex::$item_type in ext_search_page_load_pages() (line 895 of *****/httpdocs/sites/all/modules/contrib/XTRA_SEARCH_API/ext_search_page/ext_search_page.module)."

I am using:
Drupal 7.7
ext_search_page "7.x-1.x-dev"
search_api "7.x-1.0-beta10"

problem on ext_search_page.module (line 895):
$pages_by_type[$index->item_type][$page->id]=$page;
should be
$pages_by_type[$index->entity_type][$page->id]=$page;

nicolasM’s picture

I have the same error.

Notice: Undefined property: SearchApiIndex::$item_type in ext_search_page_load_pages() (line 895 of /home/www/projet/sites/all/modules/contrib/ext_search_page/ext_search_page.module).

I try to replace "$pages_by_type[$index->entity_type][$page->id]=$page;" by "$pages_by_type[$index->entity_type][$page->id]=$page;"
and it seems to remove the error message.

But now i have this error message :

Notice: Undefined property: SearchApiIndex::$item_type in search_api_page_admin_edit() (line 352 of /home/www/projet/sites/all/modules/contrib/search_api_page/search_api_page.admin.inc).
Notice: Undefined index: view modes in search_api_page_admin_edit() (line 353 of /home/www/projet/sites/all/modules/contrib/search_api_page/search_api_page.admin.inc).
Warning: Invalid argument supplied for foreach() in search_api_page_admin_edit() (line 353 of /home/www/projet/sites/all/modules/contrib/search_api_page/search_api_page.admin.inc).

I try to find a solution.
Regards.

quazardous’s picture

hi,

i ve had the same problem...

I ve made a hot ugly fix for now....


if (!isset($index->entity_type)) $index->entity_type = $index->item_type;

quazardous’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

joelrotelli’s picture

The patch works , thanks !