XML Parsing Error: no root element found
-
Hello, I have the following error in my sitemaps.
https://cinebreak.com.br/wp-content/uploads/2022/07/Captura-de-Tela-35.png
https://cinebreak.com.br/wp-content/uploads/2022/07/Captura-de-Tela-36.pngthe news sitemap works fine now the normal sitemap that has this error. and I can’t use another sitemap plugin because it keeps causing conflict and loss of audience
-
Hi, this can happen if another plugin (or your theme) inserts some stuff that breaks the XML markup. It can even be a blank/empty line at the start of the markup.
You may be able to see when you view the source code in your browser with Ctrl+U (usually). Or if you can share a link to your sitemap, I can take a quick look for you.
Have you tried disabling the XML Sitemap Index option on Settings > Reading, and then checking the default WordPress sitemap on /wp-sitemap.xml? If that one is alright, the you may want to consider using the core sitemap…
If that is not an option for you, and if it is indeed just a blank line at the start, then the only way to find out where that is coming from, is disabling all other plugins, and maybe even switch to the default theme for a short while. Then check again and if it is gone, then switch back to your current theme and one by one enable every plugin again, each time checking if the issue reappears.
But if after disabling all and even with the default theme, the issue remains, then if is probably coming from your wp-config.php. Check it for an empty line before the opening
<?phptag, or if there is a closing?>tag at the end then remove that.Can I use Yoast SEO Sitemap and your Google News Sitemap together? or will you have a problem?
well I deactivated all the plug ins and even so I keep showing the same error, so I just need to deactivate the theme to see if it’s not an update from them that went bad and see the wp-config.php.
As soon as I take a look at this error persists I’ll let you know.
Here it is: https://cinebreak.com.br/sitemap.xml
Hi, just checked your sitemap and do not see the error. Make sure to clear your browser cache when rechecking the sitemap…
php_errors.log
[09-Jul-2022 04:34:42 UTC] PHP Warning: require_once(/domains4/cinebreak/public_html/wp-content/plugins/xml-sitemap-feed/views/feed-sitemap-xml.php): failed to open stream: No such file or directory in /domains4/cinebreak/public_html/wp-includes/template.php on line 770
[09-Jul-2022 04:34:42 UTC] PHP Fatal error: require_once(): Failed opening required ‘/domains4/cinebreak/public_html/wp-content/plugins/xml-sitemap-feed/views/feed-sitemap-xml.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /domains4/cinebreak/public_html/wp-includes/template.php on line 770`
`[09-Jul-2022 04:47:33 UTC] PHP Warning: require_once(/domains4/cinebreak/public_html/wp-content/plugins/xml-sitemap-feed/views/feed-sitemap-xml.php): failed to open stream: No such file or directory in /domains4/cinebreak/public_html/wp-includes/template.php on line 770
[09-Jul-2022 04:47:33 UTC] PHP Fatal error: require_once(): Failed opening required ‘/domains4/cinebreak/public_html/wp-content/plugins/xml-sitemap-feed/views/feed-sitemap-xml.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /domains4/cinebreak/public_html/wp-includes/template.php on line 770
[09-Jul-2022 04:49:34 UTC] PHP Warning: require_once(/domains4/cinebreak/public_html/wp-content/plugins/xml-sitemap-feed/views/feed-sitemap-index.php): failed to open stream: No such file or directory in /domains4/cinebreak/public_html/wp-includes/template.php on line 770
[09-Jul-2022 04:49:34 UTC] PHP Fatal error: require_once(): Failed opening required ‘/domains4/cinebreak/public_html/wp-content/plugins/xml-sitemap-feed/views/feed-sitemap-index.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /domains4/cinebreak/public_html/wp-includes/template.php on line 770It still shows the same error.
I’ve already changed browsers, google and Sitemap Validator also show the error.
screenshot taken now : https://cinebreak.com.br/wp-content/uploads/2022/07/Captura-de-Tela-37.png
Those errors will appear when someone is trying to access non-existant sitemaps. In this case /sitemap-xml.xml or /sitemap-index.xml causing the plugin to try and load a non-existant template file. This should not be related to errors in existant sitemaps.
Lost, I didn’t understand.
Does it happen when you are logged in maybe?
Could you enter Ctrl+U to open the source code and make a screenshot?
Even when I’m logged out, mine also appears as you show in the image, but when you refresh the page it gives the error
Strange, refreshing does not change anything on my side…
2) when I refresh the page: https://cinebreak.com.br/wp-content/uploads/2022/07/Captura-de-Tela-39.png
when i refresh the page it goes back to image 1
Can I use Yoast SEO Sitemap and your Google News Sitemap together? or will you have a problem?
Very strange. Never seen that happen before.
I wonder if it is related to the Litespeed server.
Can I use Yoast SEO Sitemap and your Google News Sitemap together? or will you have a problem?
No, there is no problem. YOAST SEO will show an error message but you can ignore it (hide the message) and use the plugins together. Just make sure the option “XML Sitemap Index” on Settings > Reading is off.
The topic ‘XML Parsing Error: no root element found’ is closed to new replies.