In function metatag_taxonomy_facets_get_searcher_metatags_data() checked for entity but not checks metatags property exists.

there is entity without metatags property:
Entity debug info

For this entity on line 274 try to use metatags property and getting error.
$result['entity_metatags'] = $entity ? $entity->metatags : array(LANGUAGE_NONE => metatag_config_load($config->instance)->config);

Comments

armrus created an issue. See original summary.

armrus’s picture

  • potop committed 5110e02 on 7.x-1.x authored by armrus
    Issue #3039936 by armrus: Undefined property: stdClass::$metatags в...
potop’s picture

Assigned: Unassigned » potop
Status: Active » Fixed

@armrus thank you for the issue and the patch!
changed the code a bit before committing.

Status: Fixed » Closed (fixed)

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