I've just updated our site to 10.0.3 from 10.0.2, which went without a hitch.
However, I've just discovered an issue that occurs on adding a product to the basket when there was no issue on 10.0.2.
In certain situations (discussed below), adding to cart generates a general script error: "Error: Input contains invalid characters (Error 2)".
After conducting experiments, I know the cause of the issue, but it has wider implications that the products involved.
It occurs because some of our product references have an ampersand '&' in the reference. However, these product names have not changed since we first set up the site under version 7; nor has it been a problem running it using version 8, 9, or 10.0.1 or 10.0.2.
However, the wider implications mentioned are the fact that it generates the script error when adding any product from the section containing the product with the ampersand in the reference. So, if there is one product with an ampersand in a section containing twenty products, the script error will occur when adding any of those twenty products to the cart - even though they don't have an ampersand in the reference. There are other products that have spaces, hyphens '-' or forward slashes '/' in the reference, but the error doesn't affect those products or sections.
However, if the offending product is hidden on the site, the issue goes away.
Unfortunately, these products are exported from Sage Line 50, and have a long audit trail, which means it's not an option to simply change the reference. At the moment, I've hidden all the offending products to allow people to order other items in the same section, but is it just a case of reverting certain scripts to the 10.0.2 version?
If so, which scripts should I revert?
All help gratefully received.
However, I've just discovered an issue that occurs on adding a product to the basket when there was no issue on 10.0.2.
In certain situations (discussed below), adding to cart generates a general script error: "Error: Input contains invalid characters (Error 2)".
After conducting experiments, I know the cause of the issue, but it has wider implications that the products involved.
It occurs because some of our product references have an ampersand '&' in the reference. However, these product names have not changed since we first set up the site under version 7; nor has it been a problem running it using version 8, 9, or 10.0.1 or 10.0.2.
However, the wider implications mentioned are the fact that it generates the script error when adding any product from the section containing the product with the ampersand in the reference. So, if there is one product with an ampersand in a section containing twenty products, the script error will occur when adding any of those twenty products to the cart - even though they don't have an ampersand in the reference. There are other products that have spaces, hyphens '-' or forward slashes '/' in the reference, but the error doesn't affect those products or sections.
However, if the offending product is hidden on the site, the issue goes away.
Unfortunately, these products are exported from Sage Line 50, and have a long audit trail, which means it's not an option to simply change the reference. At the moment, I've hidden all the offending products to allow people to order other items in the same section, but is it just a case of reverting certain scripts to the 10.0.2 version?
If so, which scripts should I revert?
All help gratefully received.
Comment