Sitemap Error

#285243
  • Resolved Bernd H. Knöller
    Rank Math free

    hi there

    i’m getting this error at my sitemap link: “error on line 4 at column 6: XML declaration allowed only at the start of the document”

    I’ve been using Yoast from the beginning, but yesterday just found out that there was an error with the sitemap. I’ve tried to fix it by spotting extra spaces in the current theme’s functions.php file, but found none. However, I’ve found some extra spaces at the end of other three .php theme files and consequently fixed them by deleting these spaces, but that didn’t help. so I switched to rank math (was going to, anyway) to see if that would solve the problem, but it still persists. could you please help me to sort it out? I’ve set up a temporary access for you (details below). thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    I’ve checked your site for a plugin conflict using the Health Check plugin, and it seems that the conflicting plugin is TheFork Widgets. You can temporarily disable that plugin, and your sitemap is showing fine. I’ve also attached a screencast in the sensitive data section for your reference.

    In this case, you may need to get in touch with the developer of that plugin to check if they are adding some white spaces in your functions.php or wp-config.php file. It is also possible that they already have a fix for this issue.

    I hope that helps.

    Thank you.

    reinelle,

    thanks a lot for your help. I’ve sent a message to TheFork to see if they have a solution, I’ll let you know as soon as I’ve got their answer.

    thanks again,
    ivan

    Hello,

    Glad that helped.

    Sure, let us know how it goes.

    Meanwhile, please don’t hesitate to contact us anytime if you have other questions to assist you further with anything else.

    Looking forward to helping you.

    Thank you.

    reinelle,
    I’ve managed to eliminate the blank spaces in the plugin myself, and now it all works just fine.
    thank you for your help.

    Azib Yaqoob
    Rank Math business

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘Sitemap Error’ is closed to new replies.