Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

4.4.4 Site Won't Validate

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-19-2011, 08:47 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 4.4.4 Site Won't Validate

Using http://validator.w3.org to validate our site and get the following error...

Line 3234, Column 127: document type does not allow element "link" here

http://www.<MYDOMAIN.com/var/cache/_563a0f615810726ac1aabd5fd6575619.css" />


The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error)
---------------------------------------

Line 3234 come just before the closing /body tag.
Line 3233 is "<script type="text/javascript" src="http://www.MYDOMAIN.com/var/cache/_095eb7bcf85d388ba7d7dc34fd64401a.js"></script>"

My question is where are these links normally called? They appear to be part of the "speed-up tool for Javascript" and "speed-up tool for CSS".
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #2  
Old 11-19-2011, 09:18 AM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: 4.4.4 Site Won't Validate

Quote:
Originally Posted by JWait
Using http://validator.w3.org to validate our site and get the following error...

Line 3234, Column 127: document type does not allow element "link" here

http://www.<MYDOMAIN.com/var/cache/_563a0f615810726ac1aabd5fd6575619.css" />


The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error)
---------------------------------------

Line 3234 come just before the closing /body tag.
Line 3233 is "<script type="text/javascript" src="http://www.MYDOMAIN.com/var/cache/_095eb7bcf85d388ba7d7dc34fd64401a.js"></script>"

My question is where are these links normally called? They appear to be part of the "speed-up tool for Javascript" and "speed-up tool for CSS".
Try un-checking the speed-up tool and then do cleanup.php. Then validate without the speed-up tool on.
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote

The following user thanks elmirage001 for this useful post:
JWait (11-19-2011)
  #3  
Old 11-19-2011, 11:00 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: 4.4.4 Site Won't Validate

It will validate as long as "Use speed-up tool for CSS" is unchecked, but I still need to know where this is called from, what template?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote

The following user thanks JWait for this useful post:
elmirage001 (11-19-2011)
  #4  
Old 11-19-2011, 11:35 AM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: 4.4.4 Site Won't Validate

Thanks for testing and doing the trailblazing... I still have lots of work to do before I'm where you're at. I'm waiting for Phil's new Ability template
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote
  #5  
Old 11-19-2011, 08:21 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: 4.4.4 Site Won't Validate

/skin/common_files/customer/service_css.tpl

http://help.qtmsoft.com/index.php?title=X-Cart:CSS_and_JavaScript_optimization

Hope this helps...

Paul
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote

The following user thanks elmirage001 for this useful post:
JWait (11-20-2011)
  #6  
Old 11-20-2011, 06:06 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: 4.4.4 Site Won't Validate

I did some checking and found that if I disable the "socialize" module it validates. So it looks like it is another new addon that isn't working correctly. Oh well, at least it isn't something important.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote

The following user thanks JWait for this useful post:
elmirage001 (11-20-2011)
  #7  
Old 11-20-2011, 06:22 AM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: 4.4.4 Site Won't Validate

Quote:
Originally Posted by JWait
I did some checking and found that if I disable the "socialize" module it validates. So it looks like it is another new addon that isn't working correctly. Oh well, at least it isn't something important.
I just unchecked socialize and the css validation error went away also. Thank you!
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote
  #8  
Old 11-21-2011, 06:21 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: 4.4.4 Site Won't Validate

Reported issue to bugtracker..

https://bugtracker.qtmsoft.com/view.php?id=40613
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #9  
Old 11-21-2011, 10:17 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: 4.4.4 Site Won't Validate

Quote:
Originally Posted by JWait
Using http://validator.w3.org to validate our site and get the following error...

Line 3234, Column 127: document type does not allow element "link" here

http://www.<MYDOMAIN.com/var/cache/_563a0f615810726ac1aabd5fd6575619.css" />


The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error)
---------------------------------------

Line 3234 come just before the closing /body tag.
Line 3233 is "<script type="text/javascript" src="http://www.MYDOMAIN.com/var/cache/_095eb7bcf85d388ba7d7dc34fd64401a.js"></script>"

My question is where are these links normally called? They appear to be part of the "speed-up tool for Javascript" and "speed-up tool for CSS".

Look in home.tpl - just before </body>. It calles load_defer_code and loads the css and js cached files. Same code is also loaded from service_head.tpl. I would assume the one in home.tpl is there just in case anything is loaded inline in other templates (for different modules) and not in <head>. Technically this code should not be there yes and moving it to head section will validate the page even with speedup tools enabled.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
JWait (11-21-2011)
  #10  
Old 11-21-2011, 12:28 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: 4.4.4 Site Won't Validate

Quote:
Originally Posted by cflsystems
Look in home.tpl - just before </body>. It calles load_defer_code and loads the css and js cached files. Same code is also loaded from service_head.tpl. I would assume the one in home.tpl is there just in case anything is loaded inline in other templates (for different modules) and not in <head>. Technically this code should not be there yes and moving it to head section will validate the page even with speedup tools enabled.

I moved both {load_defer_code type="css"} and {load_defer_code type="js"} from just before the "{if $active_modules.Wibiya}..."
to just after {include file="customer/service_head.tpl"}.

I then enabled the Socialize module, ran cleanup.php and the site validated.

Thanks.

Edit: I just noticed that by moving the load_defer_code that it removes the formatting on the product detail page for "Customers also bought", "Send to a Friend", etc. so it looks like it isn't really a fix.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:52 AM.

   

 
X-Cart forums © 2001-2020