Forums / Basic Configuration / Can't validate featured products

Can't validate featured products

Locked

Views: 640

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
5 Apr 2010, 7:11 AM
#1
australican avatar

australican

Zen Follower

Join Date:
Jan 2009
Location:
Victoria Australia
Posts:
100
Plugin Contributions:
0

Can't validate featured products

Hello all, hope I'm posting in the right place,
I've been working on validating my site and after a few days I'm really stuck on two things.
Any page that has featured products (center box?)displaying has a

" " is not a member of a group specified for any attribute,

error, the source code of my landing page (that has featured products on it) shows the error here

<div class="centerBoxContentsFeatured" 98%;">

I have no idea how the 98% is getting in there.
On my Canisters category page (with featured products at the bottom) it shows

<div class="centerBoxContentsFeatured" 100%;">

same thing different number. If anyone can tell me where this is coming from I would really appreciate it.

My other reoccurring non-validation is that a couple of tags not being closed.
A, table, tr, td are all being set (opened) in tpl_header and being closed in tpl_footer.
In reading the source code I can see that they are being opened and closed, but the validater has it's own ideas.

I have a separate header for the landing page and another for all the rest. I was able to fix this on the landing page by removing a stray </div> tag, but for the life of me can't figure out where this is coming from on all the other pages. I've repeatedly scoured the tpl_header, done comparisons with win merg on tpl_header and my tpl_main_page_header, and I'm really stuck.
Again any advice on where to look would be really appreciated.

Thanks, David

http://countrytothecore.net

8 Apr 2010, 2:11 AM
#2
australican avatar

australican

Zen Follower

Join Date:
Jan 2009
Location:
Victoria Australia
Posts:
100
Plugin Contributions:
0

Re: Can't validate featured products

Solved this part,

australican:

Any page that has featured products (center box?)displaying has a

" " is not a member of a group specified for any attribute,

error, the source code of my landing page (that has featured products on it) shows the error here

<div class="centerBoxContentsFeatured" 98%;">

I have no idea how the 98% is getting in there.
On my Canisters category page (with featured products at the bottom) it shows

<div class="centerBoxContentsFeatured" 100%;">

same thing different number.

Actually I got rid of the error, I'm not sure what the problem was. After a nights rest and using some trial and error between the original file and the one I butchered, here is what I found. My modified featured_products.php had this,

$list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured"' . ' '  . $col_width . '%;"',
'text' => (($featured_products->fields['products_image'] == '' and.....

The original is,

$list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => (($featured_products->fields['products_image'] == '' and......

Somewhere in there is an error. It's seems that it is a syntax error I created when trying to modify it. It was working, but not validating.

The other issue I mentioned in the above post, I solved almost incidentally while cleaning up my sloppy coding.
David