Using the metatag module and using available address field tokens for certain tags causes the below error.

Notice: Undefined index: format_handlers in addressfield_tokens() (line 223 ... of addressfield/addressfield.tokens.inc

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

3dnathaniel created an issue. See original summary.

yoftahe.addweb’s picture

Can you please provide the scenario to generate the same notice?

That would be helpful.

sourabh.singhal’s picture

Assigned: Unassigned » sourabh.singhal
sourabh.singhal’s picture

Hi 3dnathaniel,

Here is the patch attached for the same. Please review.

Thanks

Anybody’s picture

Status: Needs review » Needs work

Patch in #4 leads to an undefined $format_handlers variable if the !empty() doesn't evaluate to true. This is not a proper fix.

Btw. this doesn't fix empty tokens in metatags FYI.