#1 January 27, 2019 5:05pm

daansk44
Member
From: Amersfoort, The Netherlands
Registered: September 12, 2016
Posts: 42

Sitemap throws error

We are running a website with +- thirty thousand pages on BigtreeCMS that almost works flawlessly. The only problem we are facing right now is that the sitemap.xml isn't made correctly.

We are getting the next error

This page contains the following errors:
error on line 1 at column 7: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.

version 4.3.2

Last edited by daansk44 (January 27, 2019 5:06pm)

Offline

#2 January 27, 2019 6:08pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Sitemap throws error

Can you point me to the site map URL so I can view the source? Thanks!

Offline

#3 January 27, 2019 6:10pm

daansk44
Member
From: Amersfoort, The Netherlands
Registered: September 12, 2016
Posts: 42

Re: Sitemap throws error

Offline

#4 January 28, 2019 4:56am

daansk44
Member
From: Amersfoort, The Netherlands
Registered: September 12, 2016
Posts: 42

Re: Sitemap throws error

 <?xml version="1.0" encoding="UTF-8" ?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"><url><loc>https://froets.nl//</loc></url>
<url><loc>https://froets.nl/producten/</loc></url>
<url><loc>https://froets.nl/productcategorieen/</loc></url>
<url><loc>https://froets.nl/zoek-op-categorie/</loc></url>
<url><loc>https://froets.nl/cronjob/</loc></url>
<url><loc>https://froets.nl/producten/drinkwaren/flessen/</loc></url>

Offline

#5 January 28, 2019 9:09am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Sitemap throws error

It looks like there's a space at the beginning of the file which is throwing it off. Make sure everything in /custom/inc/required as well as your /custom/environment.php and /custom/settings.php does not output any empty lines (easiest way is to not close your PHP tags in environment and settings).

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.