| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
XML in header for 4.2.1 | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi All.
I was having a problem with my store which was identified by Jon at WebsiteCM as an XML header line in all of my customer pages. I've looked at a few other 4.2.1 sites and they are also showing an xml line at the start of their pages. It looks like it comes from the skin1/customer/home.tpl file, the first couple of lines look like this: Code:
Anyone running 4.2.1 ? Display any of your customer pages in your browser then view the source. Do you see Code:
This line was in the distribution files from QT. Any experts here? Is the solution to remove the "xml" line from skin1/customer/home.tpl ? Is this a bug? Thanks, Steve.
__________________
X-Cart Gold 4.2.1 / 4.4.2 X-AOM, X-SpecialOffers Download Expander 2.1.3 / 2.2.0 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() What was the problem you were having?
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() I have it and it shows like this on output pages
Code:
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#4
|
|||||||
|
|||||||
![]() Moving to the 4.2 template area.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() 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:
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 |
|||||||
#6
|
|||||||
|
|||||||
![]() I got the same error when I put the Google-site-verification line above the xml declaration line. When I moved the Google line down, it worked OK.
__________________
4.3 AOM |
|||||||
#7
|
|||||||||
|
|||||||||
![]() Hi All,
Sorry to bump an old topic ... I've just tried to verify with W3C and it has come up with the error : Line 2, Column 6: XML declaration allowed only at the start of the document However, it IS as the start of home.tpl!? Reading this topic, I wondered what it would do if I removed it from the template. And my site verifys perfectly now ... ? And there are no loading errors at all? Is it OK to remove this!!?
__________________
4.2.3 X-Cart Gold BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers -------[installed]----------------------[installed]--------------[installed]----[installed]-- 5: in development ![]() |
|||||||||
#8
|
|||||||||
|
|||||||||
![]() Make sure it is actually as first line of the html doc. No spaces, empty lines or anything else before it
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#9
|
|||||||||
|
|||||||||
![]() Well, putting it back in, it is definitely at the very, very top of home.tpl.
However, I viewed the source & it is appearing at line 2! So, what's before it?! ![]()
__________________
4.2.3 X-Cart Gold BCSE Address Book | XCartMods QuickFind | X-RMA | X-Offers -------[installed]----------------------[installed]--------------[installed]----[installed]-- 5: in development ![]() |
|||||||||
#10
|
|||||||||
|
|||||||||
![]() Well something is putting a line before it, could be home.php, check the script
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|