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:
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.
Comment | File | Size | Author |
---|---|---|---|
stack-trace.txt | 8.66 KB | jnycz | |
simple_sitemap.settings.yml | 412 bytes | jnycz |
Comments
Comment #3
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commentedThanks, can you report back if the notice is gone on the dev version?
Comment #4
jnycz CreditAttribution: jnycz as a volunteer commentedYes, both messages are fixed. Thanks!