View Single Post
  #5  
Old 05-29-2009, 01:11 PM
 
steve.thompson steve.thompson is offline
 

eXpert
  
Join Date: Feb 2009
Location: Sydney, Australia
Posts: 302
 

Default Re: XML in header for 4.2.1

I'm using FTS SiteMaps. For sites with a lot of products, it has a cached version for faster display and to reduce server load, by making up an html page. That html page was not displaying. I reported the problem to Jon and here is his reply:
Quote:
Hi Steve,

Your site header is issuing code to tell browsers that the site is an xml document, which it isn't. This is on all pages and really needs to be corrected not just to rectify this sitemap issue, but because it will also cause other errors.

The code in question is attached.

Quote:

<?xml version="1.0" encoding="iso-8859-1"?>

Your template should be edited so that this is not appearing in your source code. Likely this code is coming from skin1/customer/main/home.tpl or from a php file.

Jon Peters


So, seems that you should not have an xml header in an html file. It was appearing in all customer pages, not just the sitemap page.

It seems to be coming from the skin1/customer/home.tpl file. I commented that line out and problem fixed. This line in home.tpl is in the QT distribution file that I received for 4.2.1 so, is this a bug in the QT distributed file?

Steve.
__________________
X-Cart Gold 4.2.1 / 4.4.2
X-AOM, X-SpecialOffers
Download Expander 2.1.3 / 2.2.0
Reply With Quote