AbanteCart Community

Shopping Cart Operations => Support => Template Support => Topic started by: 200268am on August 19, 2018, 06:11:06 AM

Title: Template manager is adding backslashes to site width
Post by: 200268am on August 19, 2018, 06:11:06 AM
I am having an issue with resizing on different browsers on different mediums.


It turned out that the template manager (system --> settings  --> appearance) is adding backslashes to the site width property after saving on the default template.

So for example instead of 100% it shows 100\% after saving. Every time you hit the save button it adds a backslash.

This causes some browsers to read it as 100px.


Is there a way to access the configuration file for this directly and adjust it and if yes where is it located ?
Title: Re: Template manager is adding backslashes to site width
Post by: Basara on August 20, 2018, 01:50:48 AM
Hello.
Very unusual behaviour. What is your AbanteCart and PHP version?
Title: Re: Template manager is adding backslashes to site width
Post by: 200268am on August 20, 2018, 04:12:55 AM
Abantecart version 1.2.12

PHP version 5.5.22



I have changed the PHP to 7.0.15 but still the same issue
Title: Re: Template manager is adding backslashes to site width
Post by: abolabo on August 20, 2018, 05:20:04 AM
please post screenshot.
btw what operating system do you run under?
windows?
Title: Re: Template manager is adding backslashes to site width
Post by: 200268am on August 20, 2018, 06:41:24 AM
The platform of the web server is Debian and I am accessing via Firefox on Windows 7


First picture is after pressing save for 1 time

Second picture is after saving several times. One backslash for each save
Title: Re: Template manager is adding backslashes to site width
Post by: abolabo on August 20, 2018, 06:46:03 AM
please PM me credentials and url to your admin-side
Title: Re: Template manager is adding backslashes to site width
Post by: madnesss on August 19, 2019, 07:40:38 AM
me neither.same issue what should i do for my website
Title: Re: Template manager is adding backslashes to site width
Post by: 200268am on August 19, 2019, 03:19:30 PM
Hi

This issue was resolved by changing the SQL database type from PDO MySQL to MySQLi    :D
Title: Re: Template manager is adding backslashes to site width
Post by: Jimako on September 02, 2019, 08:16:23 AM
–°onfirmed with 1.2.15 and PHP 7.2
Changing to amysqli helped. Thank you.
Just note:  if you have already saved text data f.e. tax with %, you need to rewrite them to rid backslashes.