WordPress.org

Ready to get started?Download WordPress

Forums

Sitemap broke after moving blog to root (3 posts)

  1. yumadoug
    Member
    Posted 7 years ago #

    I moved my blog from a subdirectory to the root and now my Google Sitemap Generator plugin has problems. I followed the WordPress move doc (including the doc to update the addresses in my database) and everything else works great, including all plugins, all images appear, all posts, etc. However, when I click on the admin page link to activate the sitemaps plugin, I get these errors:

    Warning: Invalid argument supplied for foreach() in /home/content/y/u/m/myid/html/wp-content/plugins/sitemap/sitemap.php on line 347

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/y/u/m/myid/html/wp-content/plugins/sitemap/sitemap.php:347) in /home/content/y/u/m/yumadoug/html/wp-includes/pluggable-functions.php on line 270

    I downloaded a new copy of the plugin and saved new, blank sitemap.xml and sitemap.xml.gz files with 777 permissions to the root directory, but still get the same errors.

    Any ideas?

  2. yumadoug
    Member
    Posted 7 years ago #

    anybody?

  3. yumadoug
    Member
    Posted 7 years ago #

    Arne Brachhold got back to me on this issue, with:

    "...try if the latest beta version solves your problem? There have been many improvements since the stable release."

    Not sure which change would help in this situation (moving the blog to the root), but he was right. The latest beta version works just fine. I created the sitemap files in advance, which may or may not have been needed, and then uploaded and activated the latest beta. No more errors upon activation, and the xml files are correct.

Topic Closed

This topic has been closed to new replies.

About this Topic