Conflict with theme

#442638
  • Resolved comunita sportiva
    Rank Math free

    Figured out with the Health Check plugin ther is a conflict between Rank Math and my theme (Astra + Astra child),which causes an error: when i try to open the link to my website sitemap (all index,pages or posts sitemap)
    the link is opened but the sitemap is not shown, there is a red box reporting:
    “This page contains the following errors:
    error on line 4 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.”

    is there any way to fix it? please help. thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    The error on your sitemap page suggests there must be some white spaces before the XML Sitemap’s source code. This might be added by a blank line/space in your wp-config.php file or your theme’s functions.php file.

    If there is no such blank space in your wp-config.php or functions.php file, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Actually don t know how to check for the white spaces in php files, sorry

    Thank you.

    Finally found the white line in php file, thank you

    Hello,

    Glad that everything has been sorted out. If you have any other questions in the future, know that we are here to help you.

    Thank you.

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

The ticket ‘Conflict with theme’ is closed to new replies.