WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
[resolved] [Problem] AIO Sitemap Module Creates Sitemap.xml_.gz File (32 posts)

  1. Yet Another WP User
    Member
    Posted 11 months ago #

    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/

  2. Peter Baylies
    Member
    Plugin Author

    Posted 11 months ago #

    Yet Another WP User,

    I've seen this happen before, but cannot reproduce it here; what is the url to your site? Do you have any other plugins running that might be conflicting here? In the meantime, you can turn compressed sitemaps off and submit your sitemap again.

  3. Yet Another WP User
    Member
    Posted 11 months ago #

    ^^ Thanks for your reply. I appreciate it. Sorry but I cant share website URL. I tried it with a freshly installed WordPress + Akismet plugin but it was still creating sitemap.xml_.gz file.

  4. Yet Another WP User
    Member
    Posted 11 months ago #

    UPDATE: I also tried following:

    Installed WordPress locally using InstanWP. It came with 4 built-in plugins. I removed all 4 plugins and then installed AIO SEO plugin only. Still its creating sitemap.xml_.gz file.

    That means it has nothing to do with other plugins. Strange things is that same things are happening in actual website as well as locally installed WordPress.

    I'll highly appreciate if you check the issue and fix it. I cant switch to AIO SEO Sitemap until this issue is fixed. I'm sure many other people would be also facing this issue.

    Thanks again for your awesome plugin.

  5. Peter Baylies
    Member
    Plugin Author

    Posted 11 months ago #

    Yet Another WP User,

    Thanks for the bug report; I'll see if I can test and reproduce this issue on another server.

  6. Yet Another WP User
    Member
    Posted 11 months ago #

    ^^ Welcome. I'll wait for the fix. :)

  7. Peter Baylies
    Member
    Plugin Author

    Posted 11 months ago #

    Yet Another WP User,

    I still can't reproduce this issue, so, a few more questions for you.

    What version of InstantWP are you using - is it 4.3.1?

    What platform are you on; are you on Windows?

    What version of All in One SEO Pack are you using - is it 2.0.3.1?

  8. Yet Another WP User
    Member
    Posted 11 months ago #

    ^^ Latest versions of InstantWP and AIO SEO i.e. InstantWP 4.3.1 and AIO SEO 2.0.3.1.

    Platform: Windows.

    I didnt change anything. Just installed InstantWP, removed build-in plugins, installed AIO SEO and created sitemap.

  9. Peter Baylies
    Member
    Plugin Author

    Posted 11 months ago #

    Ok; we're a Mac shop here, so most everything I test on is Mac or Linux; I'll see if I can get an instance of InstantWP running today or tonight so I can test this out.

  10. Yet Another WP User
    Member
    Posted 11 months ago #

    ^^ Thanks for your quick responses and support. I appreciate it. I hope you'll be able to recreate and fix the issue. :)

  11. Peter Baylies
    Member
    Plugin Author

    Posted 11 months ago #

    Me too, of course; can you tell me what settings you use / change on the sitemap? enabling sitemap indexes and compressed sitemaps I assume; any others?

  12. Yet Another WP User
    Member
    Posted 11 months ago #

    I tried with default settings but it still created sitemap.xml_.gz file. I also tried to disable sitemap indexing and a few other options but didnt work. So basically it doesnt matter which options are enabled or disabled, it always creates sitemap.xml_.gz file for me.

  13. Peter Baylies
    Member
    Plugin Author

    Posted 11 months ago #

    Ok; that's interesting because that basically shouldn't happen. Can you try renaming that file and see if it gets regenerated? Or opening it up and verifying that it's coming from All in One SEO Pack?

  14. Yet Another WP User
    Member
    Posted 11 months ago #

    ^^ When I rename it and again build sitemap using the plugin, it creates a new sitemap.xml_.gz file.

    I tried to open sitemap.xml_.gz file and found that it contained sitemap.xml_ file instead of sitemap.xml file.

  15. Yet Another WP User
    Member
    Posted 11 months ago #

    Any update? Did you try to recreate the issue on Windows machine?

  16. Peter Baylies
    Member
    Plugin Author

    Posted 11 months ago #

    Yes, I was able to reproduce this behavior on Windows; so far it looks like an issue with the sanitize_file_name() function under Windows - it seems to be adding in that stray underscore character. However, this only appears to happen in the plugin when files are written, so that shouldn't affect the dynamically generated sitemaps. One option is you could search through aioseop_sitemap.php for sanitize_file_name() and remove that function call and see if that fixes your issue - basically in the write_sitemap() function you'd be changing that line to this:

    $filename = get_home_path() . $filename;

  17. Yet Another WP User
    Member
    Posted 11 months ago #

    ^^ 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?

  18. Peter Baylies
    Member
    Plugin Author

    Posted 11 months ago #

    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.

  19. Yet Another WP User
    Member
    Posted 11 months ago #

    ^^ 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?

  20. Peter Baylies
    Member
    Plugin Author

    Posted 11 months ago #

    Yet Another WP User,

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

  21. Yet Another WP User
    Member
    Posted 11 months ago #

    ^^ Thanks.

  22. sandeepbhuiya
    Member
    Posted 11 months ago #

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

  23. Peter Baylies
    Member
    Plugin Author

    Posted 11 months ago #

    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.

  24. sandeepbhuiya
    Member
    Posted 11 months ago #

    okay got it thanks!!! love your plugin :)

  25. Yet Another WP User
    Member
    Posted 10 months ago #

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

  26. Peter Baylies
    Member
    Plugin Author

    Posted 10 months ago #

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

  27. Yet Another WP User
    Member
    Posted 10 months ago #

    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.
    =====================

  28. Peter Baylies
    Member
    Plugin Author

    Posted 10 months ago #

    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.

  29. Yet Another WP User
    Member
    Posted 10 months ago #

    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".

  30. Peter Baylies
    Member
    Plugin Author

    Posted 10 months ago #

    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.

Reply »

You must log in to post.

About this Plugin

About this Topic