Title: wunderkinder's Replies | WordPress.org

---

# wunderkinder

  [  ](https://wordpress.org/support/users/wunderkinder/)

 *   [Profile](https://wordpress.org/support/users/wunderkinder/)
 *   [Topics Started](https://wordpress.org/support/users/wunderkinder/topics/)
 *   [Replies Created](https://wordpress.org/support/users/wunderkinder/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/wunderkinder/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/wunderkinder/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/wunderkinder/engagements/)
 *   [Favorites](https://wordpress.org/support/users/wunderkinder/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[XML Sitemap Generator for Google] [Plugin: Google XML Sitemaps] Sitemap doesn't automatically generate, manual rebuild works fine](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-sitemap-doesnt-automatically-generate-manual-rebuild-works-fine/)
 *  Thread Starter [wunderkinder](https://wordpress.org/support/users/wunderkinder/)
 * (@wunderkinder)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-sitemap-doesnt-automatically-generate-manual-rebuild-works-fine/#post-1945906)
 * In sitemap-core.php, line 837 looks like this:
 * `$root = str_replace( $_SERVER["PHP_SELF"], '', $_SERVER["SCRIPT_FILENAME"] );`
 * I’m not sure if it is an issue caused by the Win environment, but the variable
   $root had a value of “[http://mysite.com/](http://mysite.com/)\index.php”. I 
   changed the line to this:
 * `$root = str_replace( '\index.php', '', $_SERVER["SCRIPT_FILENAME"] );`
 * I don’t claim to be a PHP developer, and this probably isn’t an ideal solution.
   Oh well, it took care of the problem for me.

Viewing 1 replies (of 1 total)