Problem/Motivation:

PHP warnings/notifications on page load after enabling option: Remove hreflang markup in HTML. These errors occur on route pages, /user/1, and more.

Warning: Invalid argument supplied for foreach() in simple_sitemap_page_attachments_alter() (line 246 of /app/web/modules/contrib/simple_sitemap/simple_sitemap.module)

and

Notice: Undefined index: html_head_link in simple_sitemap_page_attachments_alter() (line 246 of /app/web/modules/contrib/simple_sitemap/simple_sitemap.module)

Full stack trace and settings config attached.

CommentFileSizeAuthor
stack-trace.txt8.66 KBjnycz
simple_sitemap.settings.yml412 bytesjnycz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jnycz created an issue. See original summary.

  • gbyte.co committed 1202508 on 8.x-3.x
    Issue #3118054 by gbyte.co, jnycz: Notice: Undefined index:...
gbyte’s picture

Version: 8.x-3.5 » 8.x-3.x-dev
Status: Active » Fixed

Thanks, can you report back if the notice is gone on the dev version?

jnycz’s picture

Yes, both messages are fixed. Thanks!

Status: Fixed » Closed (fixed)

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