Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML Sitemap not shown #466

Open
fabianhaef opened this issue Dec 22, 2023 · 1 comment
Open

XML Sitemap not shown #466

fabianhaef opened this issue Dec 22, 2023 · 1 comment

Comments

@fabianhaef
Copy link

Description

When I try to access the sitemap.xml, it shows me the error:

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.

Bildschirmfoto 2023-12-22 um 10 35 58

Steps to reproduce

  1. Open up baseurl/sitemap.xml

Additional info

  • Craft version: 4.5.13
  • SEO version: 4.2
  • PHP version: 8.1
  • Database driver & version: mysql
  • Other Plugins: many
@youriGetHooked
Copy link

Same issue but only on a specific language

One of our clients has the same issue, but it only appears on the sitemap for one of the languages setup for their website. Additionally, the main sitemap.xml seems to be working fine, but the underlaying sitemaps which are referred to in that document all have the error mentioned above by @fabianhaef .

For the English site, which is the primary site, everything seems to be fine and no blank lines can be found in any of the XML files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants