Plugin

Archived
Forum
(read-only)

Rein de Vries does not actively monitor this forum
(but you can still get help from other EE users).


For official support, visit the official support site »

Google Sitemap Lite

ExpressionEngine 2, ExpressionEngine 3

Back to this add-on's main page
View Other Add-ons From Rein de Vries

     

You must be logged in to post.

XML Parsing Error

Support (Resolved)

Jbishop228
Jbishop228

Hello, I installed Google Sitemap Lite and followed your instruction to create a template and add the code. Now I’m getting this error when I try to view the template:

XML Parsing Error: no element found
Location: http://local.jasonbishop.com/sitemap
Line Number 1, Column 1:

Any ideas?

Thanks,
Jason

Reinos
# 1
Developer
Reinos

Hello Jason,

Can you get me a little more information about your EE installation?

- What version of EE you are running?
- From witch module you are create a Sitemap? (Structure, navee or Taxanomy?)
- What tag you are using to create a xml sitemap?
- What are the site settings for your template? (is it a XML template)
- What is the source of your sitemap when its outputting to te browser (ctrl+u to view in the browser)

Rein

Jbishop228
# 2
Jbishop228

Ah, yes, that would help :)

- What version of EE you are running?
2.4.0

- From witch module you are create a Sitemap? (Structure, navee or Taxanomy?)
Structure

- What tag you are using to create a xml sitemap?
The one in your instructions:
{exp:google_sitemap_lite:generate type=“structure”}

- What are the site settings for your template? (is it a XML template)
XML

- What is the source of your sitemap when its outputting to te browser (ctrl+u to view in the browser)
It’s nothing, two empty lines. Just that XML parsing error comes up.

Thanks Rein!
Jason

Reinos
# 3
Developer
Reinos

Hi Jason,

is it possible that i get some credentials of your site so I can look at the preferences?
With my test case I got no errors.

Rein

Jbishop228
# 4
Jbishop228

Sure, I’ll need your email to do that.

Thanks,
Jason

Reinos
# 5
Developer
Reinos

Yes: info@reinos.nl

mcsnidely
# 6
mcsnidely

I’m having the same problem.

EE v2.5.5
with structure installed
sitemap template is xml

If I use this code

{exp:google_sitemap_lite:generate type="structure" mode="all"}
{exp
:google_sitemap_lite:generate type="structure"

I get this error:

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

If I just use this

{exp:google_sitemap_lite:generate type="structure" mode="all"

The page outputs this, but none of my structure pages.

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<
url>
<
loc>http://mydomain.com/</loc>
<lastmod>2013-05-29</lastmod>
<
changefreq>weekly</changefreq>
<
priority>1</priority>
</
url>
</
urlset

 

Reinos
# 7
Developer
Reinos

Hi there,

Do you got a test url where i can see the sitemap?

mcsnidely
# 8
mcsnidely

Thanks Reinos,

But I realized that the sitemap Lite plugin isn’t the right solution for me because my site is a single page application and the urls will not be what I need.