• I’ve installed the Google Sitemap Generator on a few WordPress instances (all running on IIS 7, on Windows) but it fails on all with the same problem. It generates an error and doesn’t generate a new sitemap when it’s run automatically from WP’s cron job. When I let it generate the sitemap from the wp-admin it works fine.

    But, I think I’ve the solution for it. Going through the sourcecode I’ve tracked it down to the GetHomePath() function in the sitemap-core.php file. When logged into the wp-admin, this function returns the result of the WP get_home_path() function. But when not run from the wp-admin, it includes a copy of the WP source code to generate the same result. However, this source code is out of date and not the same as the original WP 3.2.1. source code. When I change the source code of GetHomePath() to be the same as the WP 3.2.1 source of the get_home_path() function it all just works fine.

    So I think the Google Sitemap Generator just needs to be brought back in sync with the WordPress source code.

    http://wordpress.org/extend/plugins/google-sitemap-generator/

  • The topic ‘[Plugin: Google XML Sitemaps] Sitemap generation files due to invalid path (easy fix available!)’ is closed to new replies.