Guest Terry Rogers Posted June 12, 2009 Share Posted June 12, 2009 I have recently installed my cart, when first installed this problem did not exist. However now, the & sign is appearing all over the place whereever I have a &. You can see here http://www.williams.uk.com/shop/index.php. Help would be muchly appreciated. Quote Link to comment Share on other sites More sharing options...
Guest soulmanmtl Posted June 12, 2009 Share Posted June 12, 2009 Well maybe Im missing it but there is not that many I guess cuz Ive just been on few pages and I havent seen one. By the way.... your trade survey... I would love to be able to do something like that, but Im a beginner in that field.... can you give me some tips on how? Basically, Im selling mobiles and accessories but Im also buying back old mobiles or defect ones. So I need something they would fill like that one. Do I need an HTML editor (guess so loll) and do you have any to suggest. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted June 13, 2009 Share Posted June 13, 2009 I have recently installed my cart, when first installed this problem did not exist. However now, the & sign is appearing all over the place whereever I have a &. You can see here http://www.williams.uk.com/shop/index.php. Help would be muchly appreciated. Hi Terry I cant see any examples either - can you direct us to a page where it is a problem. Regards Ian Quote Link to comment Share on other sites More sharing options...
Guest Chris IOW Posted June 14, 2009 Share Posted June 14, 2009 I also cannot see any examples? Quote Link to comment Share on other sites More sharing options...
Guest Paul Arden Posted June 15, 2009 Share Posted June 15, 2009 Hi guys, OK I have the same problem but it's worse because I can't get euro or pound signs to display either! I've tried collating in mysql, re-entering them, directly entering them into mysql, specifying character sets in the source code and it's still not displaying. The problem started happening with the upgrade. http://www.flytackleeurope.com The & sign is in Terms & Conditions. And if you change to Euros it gets really interesting. Any help would be much appreciated. Thanks, Paul Wow, I've been a member for 3 years. First post :yeahhh: Quote Link to comment Share on other sites More sharing options...
Ausy Posted June 15, 2009 Share Posted June 15, 2009 I seem to be getting the problem with £ and Euro signs too after the upgrade to version 4.3.2, something has changes somewhere with the database. I fixed mine temporarily through phpmyadmin and edited the cubecart_currencies table directly but its not ideal. Anyone have any ideas? Quote Link to comment Share on other sites More sharing options...
Guest Paul Arden Posted June 15, 2009 Share Posted June 15, 2009 Hi Ausy, what did you edit in the cubecart_currencies table? I've been in there so that they show £ and € signs, but when I load the cart I still get the same problem. I've also tried setting the field to TEXT as opposed to VARBINARY. Still no joy. Thanks, Paul Quote Link to comment Share on other sites More sharing options...
Ausy Posted June 15, 2009 Share Posted June 15, 2009 Hi Ausy, what did you edit in the cubecart_currencies table? I've been in there so that they show £ and € signs, but when I load the cart I still get the same problem. I've also tried setting the field to TEXT as opposed to VARBINARY. Still no joy. Thanks, Paul When I went in to edit the table, instead of the £ and € sign it showed £ and € so I just changed them to the correct symbol and hit Go. I have two stores with this problem now, both with different databases and it happend after the upgrade. Quote Link to comment Share on other sites More sharing options...
Guest Terry Rogers Posted June 16, 2009 Share Posted June 16, 2009 A bit more info,... It seems that it may be something to do with browsers. In Internet Explorer 8 our Browser Title shows "Trade Only Plumbing & Heating Supplies", in Mozilla Firefox (Latest Version) it shows "Trade Only Plumbing & Heating Supplies". That may explain why some people see it fine. Any further ideas would be appreciated! Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted June 16, 2009 Share Posted June 16, 2009 A bit more info,... It seems that it may be something to do with browsers. In Internet Explorer 8 our Browser Title shows "Trade Only Plumbing & Heating Supplies", in Mozilla Firefox (Latest Version) it shows "Trade Only Plumbing & Heating Supplies". That may explain why some people see it fine. Any further ideas would be appreciated! Terry It is fine in IE8 and also Google Chrome. I have also tried it with FF 3.0.6 and that is OK as well. Just getting the very latest version 3.0.10 - what version have you tested it with ? My guess is that possibly it is a problem with a specific version of FF although you do have other display problems with your skin between different browser that need fixing so maybe that is contributing (Chrome doesnt display the latest product text and pricing correctly) Regards Ian Quote Link to comment Share on other sites More sharing options...
Guest Paul Arden Posted June 16, 2009 Share Posted June 16, 2009 I tried that Ausy - it didn't work for me. Anyway, good news is that Cubecart Support has fixed my £/€ problem - I'm not sure how, but I've asked and will report back! The & sign still isn't displaying in Terms & Conditions, but that's not such a big problem for me. Cheers, Paul Quote Link to comment Share on other sites More sharing options...
Ausy Posted June 16, 2009 Share Posted June 16, 2009 I tried that Ausy - it didn't work for me. Anyway, good news is that Cubecart Support has fixed my £/€ problem - I'm not sure how, but I've asked and will report back! The & sign still isn't displaying in Terms & Conditions, but that's not such a big problem for me. Cheers, Paul Please let me know if they give you the solution, I would really apreciate it. Quote Link to comment Share on other sites More sharing options...
Guest Paul Arden Posted June 16, 2009 Share Posted June 16, 2009 They didn't give me the solution but they told me the problem (I know that doesn't help ) Yes, the new security function is encoding the input with HTML. Then there is a function validHTML() being used in some places double encoding it. Fixed my & sign anyway! Quote Link to comment Share on other sites More sharing options...
Ausy Posted June 16, 2009 Share Posted June 16, 2009 So annoying, why not give the info on the fix so it can be shared in the community. I suppose I will have to file a bug report instead unless someone here can decipher what you quoted in your post. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted June 17, 2009 Share Posted June 17, 2009 There is a double encoding issue caused by the new security coding. Please open includes/functions.inc.php and find:function validHTML($var) { $var = htmlspecialchars($var); return str_replace("'", "'", $var); } Replace with: function validHTML($var) { ## prevent double encoding $var = html_entity_decode($var, ENT_QUOTES, 'UTF-8'); $var = htmlspecialchars($var); return str_replace("'", "'", $var); } Quote Link to comment Share on other sites More sharing options...
Ausy Posted June 17, 2009 Share Posted June 17, 2009 Fixed, thanks Al Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted June 17, 2009 Share Posted June 17, 2009 Infact the issue is being caused by the fact that the ini.inc.php file thinks you have PHP5.1 regardless if you have PHP5.2?! if (version_compare(PHP_VERSION, '5.2.0', '<')) { define('PHP51_MODE',true); } if(PHP51_MODE) { echo "PHP 5.1"; } else { echo "PHP 5.2"; } I have had to change it to if (version_compare(PHP_VERSION, '5.2.0', '<')) { define('PHP51_MODE',true); } else { define('PHP51_MODE',false); } I have made alterations to fix the encoding issues for those on PHP 5.1 and for it to define the constant correctly for PHP 5.2. Release to follow. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted June 17, 2009 Share Posted June 17, 2009 Hi Al Thanks for posting the fix here but can you explain why it was a problem for some people viewing the website and not for others ? Ian Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted June 17, 2009 Share Posted June 17, 2009 It will have affected all. I believe that it may have only occurred on pages with no meta data. e.g. login page etc... So it may have seemed like it affected some and not others but they were probably viewing different pages. Quote Link to comment Share on other sites More sharing options...
AstroDude Posted June 17, 2009 Share Posted June 17, 2009 Infact the issue is being caused by the fact that the ini.inc.php file thinks you have PHP5.1 regardless if you have PHP5.2?! if (version_compare(PHP_VERSION, '5.2.0', '<')) { define('PHP51_MODE',true); } if(PHP51_MODE) { echo "PHP 5.1"; } else { echo "PHP 5.2"; } I have had to change it to if (version_compare(PHP_VERSION, '5.2.0', '<')) { define('PHP51_MODE',true); } else { define('PHP51_MODE',false); } I have made alterations to fix the encoding issues for those on PHP 5.1 and for it to define the constant correctly for PHP 5.2. Release to follow. Hello, I guess a forum post is going to get quicker action than a proper bug report which I made, as indicated here http://bugs.cubecart.com/view.php?id=1475 on the 7th of June. I see you have now referred to this thread in the bug report. So which ini.inc.php file are we looking at here as the one in the store root does not have exactly the same code as indicated in the "before" changes. In fact it's missing a few lines. Why doesn't it look like your example which concerns me regardless of this issue as I am using CubeCart 4.3.2? I don't want to start guessing. Here is the extent of the code from my ini.inc.php that is close to what is referred to for the fix. It's from 4.3.2. There are two solutions supplied in this thread. I see you provide one solution and then refer to the second one as being the problem, but don't mention what we should do with the first. Once again, I don't want to start guessing. Edit: Version 4.3.3 released to address the issue.if (version_compare(PHP_VERSION, '5.2.0', '<')) { define('PHP51_MODE',true); } Quote Link to comment Share on other sites More sharing options...
Guest Maclady Posted June 20, 2009 Share Posted June 20, 2009 Hi, Something similar is happening in v4.2.3... produits-frana-ais/cat_10.html should be: produits-français/cat_10.html (note that the accented "c" is messing up only in the URL bar - it's fine in the navigation and text areas) I had the problem with the &/& and accents in 4.3.2, and this is why I re-did everything using 4.2.3. Also, I should mention that I am using the SEO Friendly URLs. Anyone know how to fix this. I don't want to resort to using a regular "c" instead of "ç". Thanks Maclady Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.