WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Problem] AIO Sitemap Module Creates Sitemap.xml_.gz File

[Resolved] [Problem] AIO Sitemap Module Creates Sitemap.xml_.gz File

  • Yet Another WP User

    @yet-another-wp-user

    Hello

    I’m using AIO SEO plugin since many years without any problem. Now I want to replace my “XML Sitemap Generator” plugin with AIO SEO’s Sitemap module.

    I checked and found the Sitemap module of AIO SEO plugin contains everything which exists in “XML Sitemap Generator” plugin.

    But I’m having one problem which is stopping me from the switch.

    AIO SEO’s Sitemap module creates the compressed file with “sitemap.xml_.gz” name. I want to know why does it add an extra underscore ‘_’ in the gz file name? “XML Sitemap Generator” plugin doesn’t add the underscore and it creates the compressed file with “sitemap.xml.gz” name.

    So I want to know how to fix it in AIO SEO plugin? I want to do this because I have submitted the “sitemap.xml.gz” file to Google and Bing searchengines.

    Thank you.

    http://wordpress.org/plugins/all-in-one-seo-pack/

Viewing 15 replies - 16 through 30 (of 31 total)
  • Yet Another WP User

    @yet-another-wp-user

    ^^ Awesome. Worked like a charm. Now its creating the correct file sitemap.xml.gz without any underscore.

    Will you release an update to your plugin to fix this issue or should I manually edit your plugin file in my live website?

    Plugin Contributor Peter Baylies

    @pbaylies

    Yet Another WP User,

    Manually edit the plugin for now – I’ll have to look at this a bit more to get a real fix in for the next release. The sanitize_file_name() function is a core function within WordPress, and if that is indeed the issue, then I’d like to know what the rationale is for adding the underscore in the first place, or if that’s a bug.

    Yet Another WP User

    @yet-another-wp-user

    ^^ Ok. Thanks for your assistance and fixing the issue for me. I appreciate it a lot.

    PS: Just one thing to ask! If I edit the php file and you release a new version in future, will you fix this underscore issue in the new version or will I need to edit the file again manually?

    Plugin Contributor Peter Baylies

    @pbaylies

    Yet Another WP User,

    Yes, we plan on having this fixed in the next release; added it to the list of bugs here.

    Yet Another WP User

    @yet-another-wp-user

    ^^ Thanks.

    sandeepbhuiya

    @sandeepbhuiya

    dear author i have the same problem Can you help me to. I don’t have much knowledge about this 🙁

    Plugin Contributor Peter Baylies

    @pbaylies

    sandeepbhuiya,

    See the above thread, this is a known bug stemming from how WordPress handles the .xml MIME type and will be fixed in the next release; note that this should only happen when sitemaps are written to disk, which means that alternatively, you might be able to use the Dynamically Generate Sitemap option.

    sandeepbhuiya

    @sandeepbhuiya

    okay got it thanks!!! love your plugin 🙂

    Does the new update 2.0.4 come with the fix for sitemap.xml_.gz issue?

    Plugin Contributor Peter Baylies

    @pbaylies

    It does; let me know if it’s fixed for you!

    As soon as I activated XML Sitemap module, I got following error message on my website and Wp-Admin panel:

    =====================
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
    =====================

    Plugin Contributor Peter Baylies

    @pbaylies

    That’s interesting – can you find any messages about it in the error log? Try setting WP_DEBUG to true temporarily in your wp-config.php and let me know if it says anything there. I’ll try to reproduce this.

    I enabled but the website was still showing the same error message. In fact I was not able to access WP-Admin panel. Then I renamed .htaccess file to .htaccess_old and I was able to access the site.

    Somehow the “XML sitemap module activation” corrupted .htaccess file. When I checked the .htaccess file, some characters were removed like the first character of “RewriteRule” word was removed and it was showing “eriteRule”.

    Plugin Contributor Peter Baylies

    @pbaylies

    No, there’s nothing in All in One SEO Pack that touches the .htaccess file; that’s very strange in any case. I do know that some caching plugins will add rules to your .htaccess file, but they shouldn’t corrupt it either.

    ^^ Yeah. I understand, that was very strange but I did nothing except activating XML Sitemap module and it threw 500 Internal server error on the whole site.

    Now I have successfully re-enabled XML Sitemap module and its working fine.

    Now its creating sitemap.xml.gz file without any problem.

    PS: I want to know if I disable “Dynamically Generate Sitemap” option, will your plugin automatically update sitemal.xml and .gz files whenever I change something on my website such as updating old article or posting new article? Or will I have to manually update sitemap?

Viewing 15 replies - 16 through 30 (of 31 total)
  • The topic ‘[Resolved] [Problem] AIO Sitemap Module Creates Sitemap.xml_.gz File’ is closed to new replies.