XML Parsing Error: syntax error
Location: https://www.echobabyphotography.co.uk/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl
Line Number 1, Column 50:
————————————————-^
How do I fix this so I can see my sitemaps again please?
Thank you
]]>as in this screenshot: https://ibb.co/jHJts29.
How can I fix it.
Thank you for your attention.
Error:
XML Parsing Error: XML or text declaration not at start of entity
Location: https://pcsite.co.uk/sitemap_index.xml
Line Number 4, Column 1:
<?xml version=”1.0″ encoding=”UTF-8″?><?xml-stylesheet type=”text/xsl” href=”//pcsite.co.uk/main-sitemap.xsl”?>
thanks
]]>The cause
After investigating further, I believe the problem is the way in which the plugin optimises SVG files. After downloading the SVGs after Safe SVG has done its work, I’ve noticed that the problem seems to be that the plugin removes the DOCTYPE tag from the SVG file.
While DOCTYPE is an optional tag as far as the W3C QA standard, as far as browsers are concerned, it seems to be required.
After adding the doctype back to the optimised SVG files manually and uploading them back to the webserver, the files act as they should. This is clear evidence that (for whatever reason) the doctype is required for the SVG file to render.
This is true of all major browsers, latest versions.
]]>I’m using version 5.0.7 of XML Sitemap & Google News. When trying to view the sitemap, there is a blank page. Upon refresh, the following message appears:
XML Parsing Error: XML or text declaration not at start of entity
Location: https://publicspeakinglosangeles.net/sitemap.xml
Line Number 2, Column 1:<?xml version="1.0" encoding="UTF-8"?>
^
Inspecting the page source, the sitemap is there, but there is a blank line at the start of the file:
[[First line is empty here.]]
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://publicspeakinglosangeles.net/wp-content/plugins/xml-sitemap-feed/views/styles/sitemap-index.xsl?ver=5.0.7"?>
<!-- generated-on="2019-02-10T21:09:37+00:00" -->
<!-- generator="XML & Google News Sitemap Feed plugin for WordPress" -->
<!-- generator-url="https://status301.net/wordpress-plugins/xml-sitemap-feed/" -->
<!-- generator-version="5.0.7" -->
<sitemapindex xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.sitemaps.org/schemas/sitemap/0.9
https://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd">
<sitemap>
<loc>https://publicspeakinglosangeles.net/sitemap-home.xml</loc>
<lastmod>2016-01-20T22:41:43+00:00</lastmod>
</sitemap>
<sitemap>
<loc>https://publicspeakinglosangeles.net/sitemap-posttype-post.2016.xml</loc>
<lastmod>2016-01-21T04:12:52+00:00</lastmod>
</sitemap>
<sitemap>
<loc>https://publicspeakinglosangeles.net/sitemap-posttype-post.2015.xml</loc>
<lastmod>2017-09-01T16:34:37+00:00</lastmod>
</sitemap>
<sitemap>
<loc>https://publicspeakinglosangeles.net/sitemap-posttype-post.2014.xml</loc>
<lastmod>2014-12-30T06:35:14+00:00</lastmod>
</sitemap>
<sitemap>
<loc>https://publicspeakinglosangeles.net/sitemap-posttype-page.xml</loc>
<lastmod>2018-03-14T23:11:38+00:00</lastmod>
</sitemap>
</sitemapindex>
I’ve already checked wp-config.php and functions.php for extraneous white space. Also, I have the Yoast plugin activated, but with the sitemap feature off.
Any insight into fixing this will be greatly appreciated.
]]>The error message from a feed validator is:
Sorry
This feed does not validate.line 6, column 44: XML parsing error: <unknown>:6:44: not well-formed (invalid token) [help]
Line 6 is: xmlns:media=”https://search.yahoo.com/mrss/”xmlns:georss=”https://www.georss.org/georss” xmlns:geo=”https://www.w3.org/2003/01/geo/wgs84_pos#”
ActiveCampaign says the error is a result of a missing space, and it does seem as if these three xmlns entries should be on separate lines (or at least that there should be a space between the xmlns:media and xmlns:georss entries.
But I don’t know what to do to fix this.
]]>Running Avada Theme. All plugins latest versions.
What do I have to do to fix this?
Regards,
Ron
I got following failure, but was until now unable to fix this (1. Deactivate plugin. 2. Remove and install plugin again 3. deactivate specific .htaccess and WP hardening options)
Google XML Sitemaps Plugin Version: 4.0.9
XML Parsing Error: XML or text declaration not at start of entity
Location: https://www.zenerino.ch/sitemap.xml
Line Number 2, Column 1:<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="https://www.zenerino.ch/wp-content/plugins/google-sitemap-generator/sitemap.xsl"?><!-- sitemap-generator-url="https://www.arnebrachhold.de" sitemap-generator-version="4.0.9" -->
On my test site the plugin is running well and generating the xml site as expected. I just got on the production site this failure. I use the plugin Autoptimize. Could this maybe generate this error?
Does anyone have an idea how to solve this?