When you use tokens to reference another meta tag, e.g. [node:metatag:keyword], but that meta tag value didn't contain a value, the following error is logged:
Notice: Undefined index: keywords in _metatag_token_process_metatag() (line 148 of metatag.tokens.inc).

CommentFileSizeAuthor
#1 metatag-n2490846-1.patch1.4 KBDamienMcKenna
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
1.4 KB

This appears to resolve the problem, and also contains a small adjustment to avoid an infinite loop.

Status: Needs review » Needs work

The last submitted patch, 1: metatag-n2490846-1.patch, failed testing.

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 1: metatag-n2490846-1.patch, failed testing.

DamienMcKenna’s picture

I opened an issue for the testbot problem: #2490864: Testbot problems - ctools fails to download properly

Status: Needs work » Needs review
DamienMcKenna’s picture

  • DamienMcKenna committed fd41267 on 7.x-1.x
    Issue #2490846 by DamienMcKenna: Using [metatag] tokens failed if the...
DamienMcKenna’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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