Module

Developer
Supported

Sitemap Module

ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5

Back to this add-on's main page
View Other Add-ons From PutYourLightsOn

     

You must be logged in to post.

Errors when generating sitemap

General

Eric Smith
Eric Smith

Hi-
I think I followed all of the install correctly.  I created a new template group called sitemap and then created a template called sitemap within that.  Is that correct?

When viewing the sitemap, I am getting a few errors, many of which seem to be HTML validation issues.  For example it throws the error when using the

&copy
XML Parsing Errorundefined entity
Location
http://esmithproductions.com/sitemap.php
Line Number 102Column 15

Should this be throwing the errors like this or did I not install it correctly?
Thanks,
Eric

PutYourLightsOn
# 1
Developer
PutYourLightsOn

hi eric,

the default template structure is site/sitemap. you can either change it to that (change the template group to site) or adjust the sitemap.php file accordingly. let me know if you have any further problems.

ben

Eric Smith
# 2
Eric Smith

Hi Ben-
I moved the new template so that it’s in my home>sitemap (where my home page index page is) I added the code {exp:sitemap:get} to this page.  I’m still getting the errors when generating the site map from www.esmithproductions.com/sitemap.php. Is this something with my code?
Thanks,
Eric

PutYourLightsOn
# 3
Developer
PutYourLightsOn

as i said, you need to adjust the sitemap.php file. change line 14 to:

$template = ‘home/sitemap’;

Eric Smith
# 4
Eric Smith

Ah, got it, sorry for the confusion.
Do I have to add additional pages that aren’t included in a Channel?  Under insert new location?
I have some static template pages that aren’t showing up in the site map.  I wasn’t sure how much I needed to add/change.
Thanks!!

PutYourLightsOn
# 5
Developer
PutYourLightsOn

you can add as many static template pages as you wish under insert new location