Support

Admin Tools

#9953 Clarification for exception writing

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Friday, 22 July 2011 01:50 CDT

user14074
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the forum before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 1.5.23
PHP version: 5.2.11
MySQL version: 5.0.91-log
Host: firefox/chrome
Admin Tools version: 2.1.2


Description of my issue:
I read your helpful and funny troubleshooter on writing exceptions, and by and large I think I get it. However my issue isn't directly addressed and I thought I'd get some clarification on the best to address my problem.

Using Xmap to report my xml sitemap to google. Was not having a problem. Just yesterday installed a new extension, Qlue Custom 404, to address my broken links. But now my sitemap is blocked. I get this error:

Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:http://www.[mywebsite].com/index2.php?option=com_xmap&view=xslfile&tmpl=component

I contacted the Qlue team and they told me to try adding the following lines to my .htaccess

AddType application/xml .xsl
AddType application/xml xml

(The period before the xsl and *not* before xml was in their support notice; I haven't test so I don't know if this is an error.)

So in the htaccess maker I added xml and xsl the frontend and backend file-type exceptions.

I also added componant: com_xmap - view: sitemap to the WAF exceptions.

Neither of these solved the problem. When I look at the Chrome Developer Tools I don't see anything that jumps out at me as 'this is what needs to be allowed!' I suspect is has something to do with that index2.php, but I'm not sure how to write a safe exception for that.

Any thoughts?

nicholas
Akeeba Staff
Manager
Hi!

First, let's examine what the error message means. It doesn't mean that your sitemap is blocked. It is read alright. There seems to be an XSLT stylesheet which is attempted to be loaded, but I'd bet that a. it is not in the exceptions list (you have to add it) and b. most likely it's MIME type is wrong.

Important: Not being able to load the XSLT doesn't mean that search engines can't access it. Search engines read only the XML file. The XSLT is read by the web browser in order to transform the XML to HTML and present it to you.

Note: access to index2.php is allowed by .htaccess Maker's .htaccess file.

Regarding the former issue, just add an exception for the .xsl or .xslt file. Regarding the latter issue, the lines in the .htaccess have no place, as the XSLT file is generated dynamically, by XMAP, it's not a static file. I am using XMAP too, without any exceptions set up and it just works. Check it out: https://www.akeebabackup.com/index2.php?option=com_xmap&view=xslfile&tmpl=component I think that you should check your XMAP version and upgrade to the latest release. The problem I see is that your version doesn't set the correct MIME type when it serves its own XSLT to the browser.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user14074
Hey, thanks. I did finally look at my sitemap issue again, and google is indeed seeing it, which is what is important.

I appreciate your help and clarification. I will post back when I have a definite solution for why that MIME type is not being set correctly.

nicholas
Akeeba Staff
Manager
At least we got Google to see the sitemap which is the most important part of the process :) If you figure out what happens with the MIME type, feel free to share the solution.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!