Title: New version 4.1.7 generate Undefined array key errors
Last modified: November 25, 2022

---

# New version 4.1.7 generate Undefined array key errors

 *  Resolved [ant385](https://wordpress.org/support/users/ant385/)
 * (@ant385)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/new-version-4-1-7-generate-undefined-array-key-errors/)
 * Hello,
 * New version 4.1.7 generate error on php 8.1 in error_log file
 * Example
    PHP Warning: Undefined array key 1 in /home2/risnjak/public_html/wp-
   content/plugins/google-sitemap-generator/class-googlesitemapgeneratorstandard
   builder.php on line 81
 * Can you please fix this issue?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [saurabhdhariwal01](https://wordpress.org/support/users/saurabhdhariwal01/)
 * (@saurabhdhariwal01)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/new-version-4-1-7-generate-undefined-array-key-errors/#post-16234756)
 * Hi [@ant385](https://wordpress.org/support/users/ant385/) – are you using the
   correct 4.1.7 version? Because line number 81 in the current SVN trunc doesn’t
   have anything related to array key and we actually did observe the issue in past
   and fixed it. Check this for reference: [https://plugins.trac.wordpress.org/browser/google-sitemap-generator/trunk/class-googlesitemapgeneratorstandardbuilder.php#L81](https://plugins.trac.wordpress.org/browser/google-sitemap-generator/trunk/class-googlesitemapgeneratorstandardbuilder.php#L81)
   thanks
 *  Thread Starter [ant385](https://wordpress.org/support/users/ant385/)
 * (@ant385)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/new-version-4-1-7-generate-undefined-array-key-errors/#post-16235431)
 * Hi,
 * I again update to newest version and now is ok. I dont see this error anymore.
   
   THANKS a lot!
 * Best regards,
 *  [djswagman](https://wordpress.org/support/users/djswagman/)
 * (@djswagman)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/new-version-4-1-7-generate-undefined-array-key-errors/#post-16237241)
 * Since the recent update, the sitemap stopped updating new posts in the google
   search console
 * I started seeing this error since yesterday
 * Check my URL: [https://tgpbaze.com.ng/sitemap.xml](https://tgpbaze.com.ng/sitemap.xml)
 * Sitemaps: N/A
    Referring page: None detected
 * please I need help on this sitemap not updating new posts/pages in search console
 *  [djswagman](https://wordpress.org/support/users/djswagman/)
 * (@djswagman)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/new-version-4-1-7-generate-undefined-array-key-errors/#post-16239136)
 * **Google showing Home page link instead of Post**
    My website is google news 
   approved and recently I am facing an issue. When I publish a new post it get 
   indexed within few minutes and ranked. But after some time say 6 hours or a day
   Google starts showing Home Page link to that post instead of post title and link.
   Just search
 *  [saurabhdhariwal01](https://wordpress.org/support/users/saurabhdhariwal01/)
 * (@saurabhdhariwal01)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/new-version-4-1-7-generate-undefined-array-key-errors/#post-16239288)
 * [@ant385](https://wordpress.org/support/users/ant385/) – glad I could help.
 * [@djswagman](https://wordpress.org/support/users/djswagman/) – Please try resubmitting
   your sitemap XML to the Google search console. We have checked that the sitemap
   gets generated well and is also accessible so there must be something else. Also,
   we have randomly tried putting multiple links to your site into Google search
   and all of them redirected us to the post page rather than the home page one.
   The posts have canonical URLs also set up properly. Please provide us with more
   details with examples if you feel there is a problem. Thanks.
 *  [djswagman](https://wordpress.org/support/users/djswagman/)
 * (@djswagman)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/new-version-4-1-7-generate-undefined-array-key-errors/#post-16241829)
 * The major problem now is that my posts were indexed but not showing up on google
   except I Site search the URL or add my site title,
 *  I even posted some non-competitive content with low keyword difficulty but yet
   still got the same error
 * am just confused and frustrated please I need help with this
 *  [saurabhdhariwal01](https://wordpress.org/support/users/saurabhdhariwal01/)
 * (@saurabhdhariwal01)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/new-version-4-1-7-generate-undefined-array-key-errors/#post-16243091)
 * Hi [@djswagman](https://wordpress.org/support/users/djswagman/) – I have noticed
   that many of your site pages do not appear under Google results while many do.
   Could you please go to Google search console > select the website from the property
   dropdown > Provide the URL inside the top inspect URL input box > click on Test
   live URL
 * If Google returns any results, please check if you can fix it because they are
   related to that specific page and not the sitemap plugin. And if there are no
   errors then can you please click on request for indexing? Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘New version 4.1.7 generate Undefined array key errors’ is closed to new
replies.

 * ![](https://ps.w.org/google-sitemap-generator/assets/icon-256x256.png?rev=2713572)
 * [XML Sitemap Generator for Google](https://wordpress.org/plugins/google-sitemap-generator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-sitemap-generator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-sitemap-generator/)
 * [Active Topics](https://wordpress.org/support/plugin/google-sitemap-generator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-sitemap-generator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-sitemap-generator/reviews/)

## Tags

 * [seo](https://wordpress.org/support/topic-tag/seo/)
 * [sitemap errors](https://wordpress.org/support/topic-tag/sitemap-errors/)

 * 7 replies
 * 3 participants
 * Last reply from: [saurabhdhariwal01](https://wordpress.org/support/users/saurabhdhariwal01/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/new-version-4-1-7-generate-undefined-array-key-errors/#post-16243091)
 * Status: resolved