Sitemaps issue, potential conflict with Polylang Pro ?

#916791
  • Resolved Odile Bauduin
    Rank Math free

    Hello,

    I am experiencing an issue with the Rank Math SEO plugin on my WordPress site (unable to access sitemaps with URL), and I am reaching out for your assistance to resolve it. Below are some important details about my current setup:

    WordPress version: [6.7] (problem was also present with previous version)
    Rank Math SEO version: [1.0.232]
    Rank Math SEO PRO version: [3.0.62]
    Other active plugins: [Polylang Pro v3.6.4] (problem also present with 3.6.5 version) / [UpDraft Plus v2.24.11.0] / [WP Fastest Cache v1.3.2] / [Connect Polylang for Elementor v2.4.5] / [Elementor v3.25.5] / [Elementor Theme Core v1.5.8] / [All-in-One WP Migration v7.87] / [CMS Portal v2.0.3] / [Akismet Anti-spam: Spam Protection v5.3.3] / [Contact Form 7 v6.0] / [Country State City Dropdown CF7 v2.7.4] / [Disable Gutenberg v3.2.2] / [Duplicate Page v4.5.4] / [ManageWP – Worker v4.9.20] / [Redirection v5.5.0] / [Simple Page Ordering 2.7.2] / [Site Kit by Google 1.139.0] / [Slider Revolution v6.7.10] / [Smush Pro v3.16.2] / [Theme Core Options v1.1.8] / [Wordfence Security v8.0.1] / [WP Admin Audit v1.2.12] / [WP Mail SMTP v4.2.0] /
    Active theme: [Allianz child, v1.0]
    Parent theme: [Allianz, v1.0.3]
    PHP version: [7.4.33]
    Sitemaps URL : https://www.inibar.eu/sitemap_index.xml

    Other useful informations in Sensitive Data

    Problem Description
    When I try to access the sitemap file generated by Rank Math SEO, I receive the following error:
    This page contains the following errors:
    error on line 3 at column 6: XML declaration allowed only at the start of the document
    Below is a rendering of the page up to the first error.

    When I activate LOG, I have this message : “Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the polylang-pro domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in C:\wamp64\www\inibar-prod\wp-includes\functions.php on line 6114

    This issue persists despite several corrective actions:

    – Deactivating third-party plugins
    – Switching to a WordPress default theme (Twenty Twenty-Four)
    – Clearing the cache (or disabling caching plugin : WP Fastest Cache)
    – Checking principals .php files in order to search for whitespaces errors (functions.php / wp-config.php…)
    – Checking sitemaps .xml file in order to search a declaration problem ; it seems to be perfectly written
    – The robots.txt file seems to perfectly allow access to sitemaps
    – I also checked the files via SFTP and noticed that the sitemap.xml file sometimes appears to be missing from the directory. Despite multiple attempts, the issue remains unresolved.

    Could you please guide me in identifying the root cause of this problem and how to fix it?

    Thank you in advance for your help and support.

    Best regards,
    Odile Bauduin.

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

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    This sitemap error indicates that there must be some white space before the XML Sitemap’s source code. You can also look at the source code of Sitemap and you’ll notice there are some extra lines before the XML. This is caused by a blank line or space in your wp-config.php or functions.php file.

    In case, you’re not able to find any blank lines in the wp-config.php or functions.php files, you can try to follow this guideline to fix the issue: https://wejn.org/stuff/wejnswpwhitespacefix.php.html

    Once done, please try to clear the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    However, you’re currently using the Rank Math PRO plugin on your website but the account you have used to open this ticket is the Rank Math free version.

    Please search and forward a receipt from FastSpring.com so we can locate your account and verify it.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Odile Bauduin
    Rank Math free

    Hello,
    Thanks a lot for your quick answer !
    I tried to use the PHP script available to fix the whitespaces in the site’s ‘index.php’ file and it actually worked ; the sitemaps is now available.
    Now I’m using this script in order to find which PHP file contains bad whitespaces, it will take some time but I get closer and closer. Apparently, a PHP file in one of the active plugins should be in cause ; I just need to find which one now.
    I’m truly sorry, I wasn’t aware of the existence of a PRO support ; I work for the account of a customer of mine, so I need to ask him the Rank Math PRO credentials.
    I’ll pursue the investigations and let you know when I find the source of the bad whitespaces.
    Thank you again, have a great day !
    Odile.

    Hello,

    That is fine.

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

    If you don’t mind us 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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Sitemaps issue, potential conflict with Polylang Pro ?’ is closed to new replies.