Post by tilesupply » Thu Sep 09, 2010 6:56 pm

I am looking for a programer to help fix a few erros on my site to help it pass the Validation.
This will take a few hours so if you can PM your rate per hour.

This will be an ongoing job and I am looking to have it started right away.

Many Thanks

Active Member

Posts

Joined
Wed Aug 26, 2009 7:48 am


Post by tilesupply » Thu Sep 09, 2010 8:34 pm

From what I can se most of the errors I have are from Categories & Information.

Example

1/
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).

2/
Line 219, Column 93: reference to external entity in attribute value
/index.php?route=product/category&path=8877998_8878021">Bath Screens</a></li> …

This is generally the sign of an ampersand that was not properly escaped for inclusion in an attribute, in a href for example. You will need to escape all instances of '&' into '&'.

If you can help can you PM me please.

Many Thanks

Active Member

Posts

Joined
Wed Aug 26, 2009 7:48 am


Post by tilesupply » Fri Sep 10, 2010 7:11 am

Problem is now sorted please close.

Jay once again has done some fine work for me.
Thanks again Jay.

Kind Regards

Active Member

Posts

Joined
Wed Aug 26, 2009 7:48 am


Post by joegti10 » Tue Mar 01, 2011 10:17 am

would have been nice to tell us what you did. im looking to resolve the same thing...

New member

Posts

Joined
Sun Sep 05, 2010 1:49 am

Post by craig100 » Tue Mar 15, 2011 4:34 am

Me too, getting a lot of problems with ampersands instead of &

Newbie

Posts

Joined
Mon Feb 28, 2011 7:50 pm

Post by shmerler » Mon May 16, 2011 3:50 pm

ditto to above posts ...

any solutions to the ampersand problem ?

thanks in advance

Newbie

Posts

Joined
Thu Sep 30, 2010 6:23 pm

Post by JAY6390 » Mon May 16, 2011 6:05 pm

If you want to fix it yourselves you'll need to find all the places where the ampersands are not escaped, and do so...why does that need explaining?

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by screamkitty » Wed Aug 24, 2011 5:17 am

I just fixed an issue regarding ampersands in the Sort feature. It stumped me at first, since merely changing the ampersands to their HTML entities in the "catalog/controller/product/catalog.php" file wasn't doing anything. Seems as though the entities were being changed back before being sent to the browser.

The simple workaround I used is this:

Open your "template/product/category.tpl" file and find this bit of code:

Code: Select all

<select name="sort" onchange="location = this.value">
          <?php foreach ($sorts as $sorts) { ?>
          <?php if (($sort . '-' . $order) == $sorts['value']) { ?>
          <option value="<?php $echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option>
          <?php } else { ?>
          <option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option>
          <?php } ?>
          <?php } ?>
        </select>
Replace it with this bit of code:

Code: Select all

<select name="sort" onchange="location = this.value">
          <?php foreach ($sorts as $sorts) { ?>
          <?php if (($sort . '-' . $order) == $sorts['value']) { ?>
          <option value="<?php $sortsafe = htmlentities($sorts['href']); echo $sortsafe; ?>" selected="selected"><?php echo $sorts['text']; ?></option>
          <?php } else { ?>
          <option value="<?php $sortsafe = htmlentities($sorts['href']); echo $sortsafe; ?>"><?php echo $sorts['text']; ?></option>
          <?php } ?>
          <?php } ?>
        </select>
It merely, converts the ampersands in the URLs back into their HTML entities before serving it to the browser. It worked like a charm for me.

I haven't checked a lot of the other types of pages on my site, yet - so I'd be interested in hearing anyone's experience with other aspects of OC not validating.

Cheers! :banana:

New member

Posts

Joined
Thu Dec 30, 2010 5:42 pm

Post by alicejorge » Mon Aug 29, 2011 7:16 pm

It is very interesting topic as well as I got the perfect information why w3c is needed for my website. It is really excellent information you shared with us.

christian marriage counseling


Newbie

Posts

Joined
Fri Aug 19, 2011 7:28 pm

Post by expanism » Tue Nov 15, 2011 3:25 pm

screamkitty wrote:I just fixed an issue regarding ampersands in the Sort feature. It stumped me at first, since merely changing the ampersands to their HTML entities in the "catalog/controller/product/catalog.php" file wasn't doing anything. Seems as though the entities were being changed back before being sent to the browser.

The simple workaround I used is this:

Open your "template/product/category.tpl" file and find this bit of code:

Code: Select all

<select name="sort" onchange="location = this.value">
          <?php foreach ($sorts as $sorts) { ?>
          <?php if (($sort . '-' . $order) == $sorts['value']) { ?>
          <option value="<?php $echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option>
          <?php } else { ?>
          <option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option>
          <?php } ?>
          <?php } ?>
        </select>
Replace it with this bit of code:

Code: Select all

<select name="sort" onchange="location = this.value">
          <?php foreach ($sorts as $sorts) { ?>
          <?php if (($sort . '-' . $order) == $sorts['value']) { ?>
          <option value="<?php $sortsafe = htmlentities($sorts['href']); echo $sortsafe; ?>" selected="selected"><?php echo $sorts['text']; ?></option>
          <?php } else { ?>
          <option value="<?php $sortsafe = htmlentities($sorts['href']); echo $sortsafe; ?>"><?php echo $sorts['text']; ?></option>
          <?php } ?>
          <?php } ?>
        </select>
It merely, converts the ampersands in the URLs back into their HTML entities before serving it to the browser. It worked like a charm for me.

I haven't checked a lot of the other types of pages on my site, yet - so I'd be interested in hearing anyone's experience with other aspects of OC not validating.

Cheers! :banana:
Thanks! I had the same problem on OC 1.5.1.2 fixed now :)

New member

Posts

Joined
Fri Sep 30, 2011 8:43 pm
Who is online

Users browsing this forum: No registered users and 10 guests