Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Sometimes after cache rebuilding there is a PHP Notice on the page:
Undefined offset: 1 in metatag_mobile_page_attachments_alter() (line 64)
Proposed resolution
Check for offset existence.
Comment | File | Size | Author |
---|---|---|---|
#4 | metatag-n2923080-4.patch | 1.5 KB | DamienMcKenna |
|
Comments
Comment #2
pingwin4egComment #3
Ivan Berezhnov CreditAttribution: Ivan Berezhnov as a volunteer and at Drupal Ukraine Community for Levi9 commentedComment #4
DamienMcKennaDoes this solve the problem?
Comment #5
pazhyn CreditAttribution: pazhyn as a volunteer and at AnyforSoft, Drupal Ukraine Community for AnyforSoft commentedTested. No more notice with enabled Metatag: Mobile & UI Adjustments and Cache rebuilding.
Screencast - http://take.ms/RDaxo
Comment #6
DamienMcKennaCommitted. Thanks for the help.
Comment #8
DamienMcKenna