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.
| Comment | File | Size | Author |
|---|---|---|---|
| extended_search.patch | 451 bytes | paulgemini |
Comments
Comment #1
paulgemini commentedComment #2
paulgemini commentedComment #3
paulgemini commentedComment #4
quazardous commentedcommited with some other changes (had to use the new ->entityWrapper())
to be tested !
Comment #5
softmax commentedWhen 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;
Comment #6
nicolasM commentedI 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.
Comment #7
quazardous commentedhi,
i ve had the same problem...
I ve made a hot ugly fix for now....
Comment #8
quazardous commentedComment #10
joelrotelli commentedThe patch works , thanks !