sitemap error

#82261
  • Resolved aquaphor online
    Rank Math free

    sitemap url This page contains the following errors:

    error on line 2 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.

    */sitemap_index.xml

    I removed blank space from several files before-after <?php ….. function.php file on child theme folder, function.php on theme folder, wp-config file, wp-settings.php file, deactivated almost all plugins and test it, but still there is no sitemap xml file, still display error above.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • i fix it with so strange way,

    i just upgrade php from 7.1 to 7.3,
    after php upgrade through cpanel, there was a message error on home page on header on fronted.
    /public_html/wp-content/themes/”mytheme”/inc/functions/layout.php

    i edit layout.php and removed the blank space on the top, and everything fixed,

    there are many other people that face this problem, with this blank line before <?php in several other php pages, on wp-config file or functions etc… needs to search well to find where is the blank line before <?php ..

    Hello,

    We are glad the issue is now resolved.

    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 2 replies - 1 through 2 (of 2 total)

The ticket ‘sitemap error’ is closed to new replies.