When metatag_context is defined through the context UI, the context condition is not path and the Meta Data reaction is also exposed in the metatag_context UI, accessing to the reactions list, the following errors are displayed:

Notice: Undefined index: path en metatag_context_context_overview() (línea 27 de xxxxxxxxx/sites/all/modules/contrib/metatag/metatag_context/metatag_context.admin.inc).
Warning: implode(): Invalid arguments passed en metatag_context_context_overview() (línea 27 de xxxxxxxxx/sites/all/modules/contrib/metatag/metatag_context/metatag_context.admin.inc).

It is because there are not path conditions for that metadata context.

Regards

CommentFileSizeAuthor
#1 no_path_error-1850014-1.patch1.25 KBplopesc

Comments

plopesc’s picture

Status: Active » Needs review
StatusFileSize
new1.25 KB

Attaching patch that fixes the bug.

It checks if the current context has path conditions or not and show a "No path condition" message if the path condition is not defined.

Regards

damienmckenna’s picture

Status: Needs review » Fixed

Good catch, thanks!

Status: Fixed » Closed (fixed)

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