Steps to reproduce:
Install devel module.
Open URL like /node/10832/devel/token.
A lot of notices for different tokens: https://take.ms/p87rH.

Issue fork metatag-3196067

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Ruslan Piskarov created an issue. See original summary.

damienmckenna’s picture

It might be better to check if $processed_tags[$tag_name][$delta] exists.

mohit.bansal623’s picture

Status: Active » Needs review
StatusFileSize
new673 bytes
damienmckenna’s picture

StatusFileSize
new966 bytes

Yay PHP 7's null coalescing operator.

damienmckenna’s picture

StatusFileSize
new966 bytes
new917 bytes

One of these days I'll learn how to make a patch properly ;-)

ruslan piskarov’s picture

Status: Needs review » Reviewed & tested by the community

Thank you, @DamienMcKenna.
Looks good to me.

damienmckenna’s picture

Title: Notice: Undefined offset: 2 in metatag_tokens() (line 218 of modules\contrib\metatag\metatag.tokens.inc) » Notice: Undefined offset: 2 in metatag_tokens() (line 218 of metatag.tokens.inc)
Status: Reviewed & tested by the community » Fixed
Parent issue: » #3186720: Plan for Metatag 8.x-1.16

Committed. Thank you.

Status: Fixed » Closed (fixed)

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