Warning: Undefined array key "href" in Drupal\metatag_favicons\Plugin\metatag\Tag\MaskIcon->output()

Created on 30 September 2022, about 2 years ago
Updated 22 June 2023, over 1 year ago

Problem/Motivation

After updating to Metatag 1.22, started getting this error on some public facing nodes:

Warning: Undefined array key "href" in Drupal\metatag_favicons\Plugin\metatag\Tag\MaskIcon->output() (line 80 of modules/contrib/metatag/metatag_favicons/src/Plugin/metatag/Tag/MaskIcon.php).

Drupal\metatag_favicons\Plugin\metatag\Tag\MaskIcon->output() (Line: 621)
Drupal\metatag\MetatagManager->generateRawElements(Array, Object) (Line: 547)
Drupal\metatag\MetatagManager->generateElements(Array, Object) (Line: 520)
metatag_get_tags_from_route() (Line: 277)
_metatag_remove_duplicate_entity_tags(Array) (Line: 219)
metatag_entity_view_alter(Array, Object, Object) (Line: 562)
Drupal\Core\Extension\ModuleHandler->alter('node_view', Array, Object, Object) (Line: 305)
Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array) (Line: 239)
Drupal\Core\Entity\EntityViewBuilder->build(Array)

Steps to reproduce

Acquia
PHP 8.0
Drupal 9.4.7
Metatag 1.22

πŸ› Bug report
Status

Fixed

Version

1.22

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States nkraft

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024