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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pingwin4eg created an issue. See original summary.

pingwin4eg’s picture

Issue tags: +Quick fix
Ivan Berezhnov’s picture

Issue tags: +CSKyiv18
DamienMcKenna’s picture

Status: Active » Needs review
Issue tags: -Quick fix
FileSize
1.5 KB

Does this solve the problem?

pazhyn’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +KharkivGSW18

Tested. No more notice with enabled Metatag: Mobile & UI Adjustments and Cache rebuilding.
Screencast - http://take.ms/RDaxo

DamienMcKenna’s picture

Status: Reviewed & tested by the community » Fixed
Parent issue: » #2932455: Plan for Metatag 8.x-1.5

Committed. Thanks for the help.

  • DamienMcKenna committed 1e3251c on 8.x-1.x
    Issue #2923080 by DamienMcKenna, pingwin4eg, pazhyn: Undefined offset: 1...
DamienMcKenna’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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