Title: PHP Warning for index.php
Last modified: April 9, 2024

---

# PHP Warning for index.php

 *  Resolved [PeppermanWP](https://wordpress.org/support/users/peppermanwp/)
 * (@peppermanwp)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/php-warning-for-index-php/)
 * Hello Eric, seems this previous issue re-appeared with version 2.2.6
 * PHP error log reports “Undefined variable $prod_id in /home/…../wp/wp-content/
   plugins/simple-xml-sitemap-generator/index.php on line 44”
 * Which means this line here in the plugin’s index.php:
 * $xmlpost_id_check = nl2br(get_post_meta($prod_id,’sitemap’,true));
 * System: WP 6.5, PHP 8.3.2

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

 *  Plugin Author [Eric-Oliver Mächler](https://wordpress.org/support/users/annubis/)
 * (@annubis)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-warning-for-index-php/#post-17692679)
 * thank you for this report – i will looking into it
 *  Thread Starter [PeppermanWP](https://wordpress.org/support/users/peppermanwp/)
 * (@peppermanwp)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-warning-for-index-php/#post-17702426)
 * Thank you for looking into this.
 * Error still persists (Apr 21).
 * And I found another one with various occurences in my php 8.3 error log:
 * PHP Warning: Undefined variable $screenshot in /home/…../wp/wp-content/plugins/
   simple-xml-sitemap-generator/form.php on line 203
   (same error msg for line 218
 *  Plugin Author [Eric-Oliver Mächler](https://wordpress.org/support/users/annubis/)
 * (@annubis)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-warning-for-index-php/#post-17712226)
 * after i fixed the error a few weeks ago – i ran a longer beta test. now that 
   no more errors appeared – i have just released the update.
 * thanks for your patience and reporting
 *  Thread Starter [PeppermanWP](https://wordpress.org/support/users/peppermanwp/)
 * (@peppermanwp)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-warning-for-index-php/#post-17713108)
 * Just checked, and everything works fine. Thanks, Eric!
 *  Plugin Author [Eric-Oliver Mächler](https://wordpress.org/support/users/annubis/)
 * (@annubis)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-warning-for-index-php/#post-17715286)
 * perfect. have a nice day

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

The topic ‘PHP Warning for index.php’ is closed to new replies.

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

 * 5 replies
 * 2 participants
 * Last reply from: [Eric-Oliver Mächler](https://wordpress.org/support/users/annubis/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/php-warning-for-index-php/#post-17715286)
 * Status: resolved