Sitemap plugin not working
Google sent several emails stating that Googlebot cannot access sitemap of forum.
I have "Sitemaps 1.2.1" plugin already installed on forum and when I click on the dashboard http://websitehere/sitemapindex.xml go the error message below
XML Parsing Error: XML or text declaration not at start of entity
Location: http://naijanetwork.com/sitemapindex.xml
Line Number 1, Column 2: <?xml version="1.0" encoding="UTF-8"?>
-^
Do any person know reason for this and how to correct it?
Best Answer
-
peregrine MVP
if you were using
version 1.2 of this plugin addtexttobox version 1.2 produces xml errors - sorry if this was the issue
http://vanillaforums.org/addon/addtexttobox-plugin
please upgrade to version 1.3 of addtextotbox and it will NOT create xml errors.
thx to @Bleistivt for reporting the issue of ver 1,.2 to me.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
5
Answers
There is a space before the XML declaration, which is not allowed.
The sitemap plugin doesn't do that.
It's probably extraneous whitespace after a closing php tag (which shouldn't be used), possibly in a plugin.
Try disabling every plugin except the sitemap plugin, then enable each one seperately to find out which one is causing it.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Thank you for your comment.
I have disabled all plugins and enabled again but could not find the plugin that caused the problem.
Do you know any other thing I can do to solve this problem?
All of your pages have a space prepended, have you made any changes to the core or do you include additional php files?
You can find a faulty php file with this snippet:
https://www.dokuwiki.org/tips:findbadphp.php
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
HI, so it needs to be: <?xml version="1.0" encoding="UTF-8"?> or: <?xmlversion="1.0" encoding="UTF-8"?> ???
Where is this code located so i can edit it?
you don't have a site map sz1hosting try not confuse the issues.
You do have a white space error but it applies to the whole site.
grep is your friend.
if you were using
version 1.2 of this plugin addtexttobox version 1.2 produces xml errors - sorry if this was the issue
http://vanillaforums.org/addon/addtexttobox-plugin
please upgrade to version 1.3 of addtextotbox and it will NOT create xml errors.
thx to @Bleistivt for reporting the issue of ver 1,.2 to me.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Thanks to @Bleistivt for finding out the cause of sitemap problem which was cause by "Add Text to Box" plugin.
Thanks to @peregrine for immediate update to "Add Text to Box" plugin to solve sitemap problem.
by the way if you ever have the same problem.
as others mentioned but to sum it up,
as mentioned before - just change to default theme, disable plugins and applications you downloaded (do NOT disable vanilla or conversations app) one by one and try an rss feed from your site, after you disable a plugin, test, and disable next plugin, etc. until error goes away. also try the default theme,
then try (substitute your version in domain name)
http://vanillaforums.org/discussions.rss
e.g.
http://naijanetwork.com/discussions.rss
and try .xml
http://naijanetwork.com/discussions.xml
see troubleshooting:
http://vanillaforums.org/discussion/comment/188810/#Comment_188810
if there is an xml error you will see. something like this
which may be caused by a closing ?> in the last line of a plugin. or a white space before the opening <? at the start of plugin code.
it could also be introduced in a theme or an application as well as a plugin.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
what is weird is this?
on @prosper site.
http://naijanetwork.com/discussions.rss - no feeds
http://naijanetwork.com/discussions.xml - shows info.
is this still a problem??
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine does /discussions.rss supposed to feed without a plugin by default?
it should I believe.
also go to your categories page.
/index.php?p=/categories
and click on orange icon - it should work as well
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I use vanilla version 2.1.1 and don't have that icon on the forum. Is that normally?
http://vanillaforums.org/categories/all
I think you have a different version than 2.1.1 as well.
also it probably depends if the category is marked as a root category (where it presumably wouldn't show)
as well as DisplayAs and category nesting depth.
in the edit categories section of dashboard.
and this is pretty bizarre - incorrect output in xml or and no feed.rss
http://www.naijanetwork.com/categories/politics.xml // xml formatting is off
http://www.naijanetwork.com/categories/politics/feed.rss // which creates problems here possibly
http://www.naijanetwork.com/index.php?p=/categories/politics/feed.rss // which creates problems here possibly
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine
I have upgraded to version 2.1.3 and now can see the RSS icon but still get this error when I click on the icon;
This page contains the following errors:
error on line 414 at column 190: Opening and ending tag mismatch: link line 0 and channel
Below is a rendering of the page up to the first error.
Please idea on how to solve it?
http://www.tattootalk.nl/sitemapindex.xml - Works
http://www.tattootalk.nl/discussions.rss - Doesn't work
Same problem there? I dont wanna steal this topic so i only wanted to let you know i dont have a .rss they are not working.
So im gonna follow this topic cheers.