Forums

Google XML Sitemaps
Sitemap doesn't automatically generate, manual rebuild works fine (5 posts)

  1. wunderkinder
    Member
    Posted 2 years ago #

    When I visit the admin page for "XML Sitemap Generator for WordPress 3.2.4", I see this error in red:

    "There was a problem writing your sitemap file. Make sure the file exists and is writable."

    If I manually rebuild the sitemap, it works fine. If I run the debug function, it works fine. If I hit the GET request URL to build the sitemap, it works fine.

    I am using Windows hosting, in case that matters.

    Any suggestions for getting the automatic sitemap generator functionality to work?

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

  2. graham76
    Member
    Posted 2 years ago #

    Same problem here. Started a few days ago. I have the sitemap files writeable on the server, and still get the error.

  3. andriukass
    Member
    Posted 2 years ago #

    The same problem here what is wrong ?

  4. wunderkinder
    Member
    Posted 2 years ago #

    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/\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.

  5. andriukass
    Member
    Posted 2 years ago #

    Thanks but not helped for me... Maybe someone found a solution?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic