Whenever I try to create a facet block in views, I get this error message:
Notice: Undefined index: name in SearchApiViewsFacetsBlockDisplay->getFieldOptions() (line 130 of /var/www/html/sites/all/modules/search_api/contrib/search_api_views/includes/display_facet_block.inc).

How can this be fixed?

CommentFileSizeAuthor
#3 1347150--views-facets-block-3.patch681 bytesdrunken monkey

Comments

cpliakas’s picture

Project: Facet API » Search API
Component: Usability » Facets

This code seems to be part of the Search API module, so punting over there unless there is an underlying issue in Facet API causing this notice error.

Thanks,
Chris

BeaPower’s picture

Ok, thanks.

drunken monkey’s picture

Status: Active » Needs review
StatusFileSize
new681 bytes

Please test.

BeaPower’s picture

Hi, that error went away and I am now able to see facet fields. But now I am left with this error:

Notice: Undefined index: theme in views_plugin->theme_functions() (line 498 of /var/www/html/sites/all/modules/views/includes/plugins.inc).

BeaPower’s picture

Also when creating a block hierarchy doesn't show, and also I cannot configure facet display and dependencies of these custom blocks.

drunken monkey’s picture

Status: Needs review » Fixed

Committed the patch, the other issues are unrelated.

BeaPower’s picture

Ok, but how about post #5?

BeaPower’s picture

Also when I create a block for non search pages, other facet blocks that are supposed to only appear on the search pages appear. How can that be fixed?

Status: Fixed » Closed (fixed)

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