J!Extensions Store™
Forum
Welcome, Guest
Please Login to access forum.
Re:Error in XML sitemap (1 viewing) 
Go to bottom
TOPIC: Re:Error in XML sitemap
#2940
Iridium
Fresh Boarder
Posts: 3
User Offline
[SOLVED]Error in XML sitemap Karma: 0  
Hi there! Please help me with this problem.

I have Joomla 3.3, PHP 5.4, ADS Manager 2.9.11.

When I Installed JSitemap Pro v.3.4 then it makes HTML-sitemap OK.
But when I try to open XML-sitemap from admin panel (Show raw XML Sitemaps - Show XML Standart Sitemap) then i see this error at browser:

This page contains the following errors:
error on line 89 at column 10: Extra content at the end of the document
Below is a rendering of the page up to the first error.


I find that the issue is becuase JSitemap adding unnecessary closing tag </head> at the end of XML document, so it is breaks normal XML structure. In the same time i see no opening <head> tag in this XML.

Here is the last lines of my XML sitemap:

84<url>
85<loc>http://my domen.com/component/adsmanager/51-taunkhausy/133-taunkhaus-150-kv-m</loc>
86<changefreq>daily</changefreq>
87<priority>0.5</priority>
88</url>
89</urlset></head>


How to delete this </head> tag???

And please explain me one more thing. If i manually copy link to XML-sitemap and paste it into brouser adress bar (http://my_domen.com/index.php?option=com_jmap&view=sitemap&format=xml) then I see error like I told.

But if I paste this URL (http://my_domen.com/index.php?option=com_jmap&view=sitemap&format=xml) into Joomla article on my site and try to open this hyperlink from site front-end, then I see that another page is opening - with URL http://my_domen.com/sitemap/sitemap/xml

This page contains not raw XML-sitmap, but some kind of hybrid HTML+XML sitemap. Why is so? The link (http://my_domen.com/index.php?option=com_jmap&view=sitemap&format=xml) is the same in both cases.

Thanks in advance!
 
Logged Logged  
  The administrator has disabled public write access.
#2941
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:Error in XML sitemap Karma: 79  
Hello Iridium,

the problem is not due to JSitemap itself, but to some bugged plugin installed on Joomla that breaks the normal XML output format generated by Joomla itself. This is explained at this FAQ: http://storejextensions.org/faq/xml-sitemap-results-not-well-formatted.html
There is also a list of known bugged plugins, not sure if this is your case.

The link when pasted inside articles is traslated to a new sef one automatically, the resulting page should be correct XML again, unless you have some third party extension for SEF routing installed, such as sh404sef.

Thanks and regards

John
 
Logged Logged  
  The administrator has disabled public write access.
#2942
Iridium
Fresh Boarder
Posts: 3
User Offline
Re:Error in XML sitemap Karma: 0  
Hello, John!

Thank you very much.
&#1057;oncerning of link pasted inside article - when I turn off native Joomla SEF (i have no any 3rd party SEF components like sh404sef) then the link become authentic, now its clear for me, &#1054;&#1050;.

But concerning of my main question - I find a big sorrow (
I found that the plugin which breaks the normal XML output format - is the YT Framework plugin. My site is based on Smartaddons Sj Live template, which works on YT Framework 2.2.4. So I cant turn off this plugin, because if I do it then my site isn't works.

Is there any decision for me? ( Or I should to find another sitemap extension? (
 
Logged Logged  
  The administrator has disabled public write access.
#2943
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:Error in XML sitemap Karma: 79  
Hello again,

the solution is to fix the plugin YT Framework, of course every XML documents will be affected by the extra HTML <head> appended by this System plugin. Changing to another sitemap extension will be the same, all sitemaps are based on XML.


John
 
Logged Logged  
  The administrator has disabled public write access.
#2944
Iridium
Fresh Boarder
Posts: 3
User Offline
Re:Error in XML sitemap Karma: 0  
Thank you very much for you help, John! J!Extensions Store tech. support is the best tech. support and JSitemap component is the best component! ))))

For anybody who have the same problem - this is the solution from John, The problem was with YT Framework plugin from Smartaddons template:

I fixed the YT plugin, they forgot an extra check that i've just added, you find the code in the file /plugins/system/yt.php at line 163 :
Code:

if($document->getType() !== 'html') { return; }
THANKS A LOT! )
 
Logged Logged  
  The administrator has disabled public write access.
Go to top