Author Topic: Template manager is adding backslashes to site width  (Read 5281 times)

Offline 200268am

  • Newbie
  • *
  • Posts: 5
  • Karma: +2/-0
    • View Profile
Template manager is adding backslashes to site width
« 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 ?
« Last Edit: August 19, 2018, 06:33:43 AM by 200268am »

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5751
  • Karma: +273/-2
    • View Profile
Re: Template manager is adding backslashes to site width
« Reply #1 on: August 20, 2018, 01:50:48 AM »
Hello.
Very unusual behaviour. What is your AbanteCart and PHP version?

Offline 200268am

  • Newbie
  • *
  • Posts: 5
  • Karma: +2/-0
    • View Profile
Re: Template manager is adding backslashes to site width
« Reply #2 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
« Last Edit: August 20, 2018, 04:30:26 AM by 200268am »

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Template manager is adding backslashes to site width
« Reply #3 on: August 20, 2018, 05:20:04 AM »
please post screenshot.
btw what operating system do you run under?
windows?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline 200268am

  • Newbie
  • *
  • Posts: 5
  • Karma: +2/-0
    • View Profile
Re: Template manager is adding backslashes to site width
« Reply #4 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

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Template manager is adding backslashes to site width
« Reply #5 on: August 20, 2018, 06:46:03 AM »
please PM me credentials and url to your admin-side
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline madnesss

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
  • http://www.bombchat.ir
    • View Profile
    • مشهد چت
Re: Template manager is adding backslashes to site width
« Reply #6 on: August 19, 2019, 07:40:38 AM »
me neither.same issue what should i do for my website
newbielink:http://www.bombchat.ir [nonactive]

Offline 200268am

  • Newbie
  • *
  • Posts: 5
  • Karma: +2/-0
    • View Profile
Re: Template manager is adding backslashes to site width
« Reply #7 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

Offline Jimako

  • Newbie
  • *
  • Posts: 4
  • Karma: +1/-0
    • View Profile
Re: Template manager is adding backslashes to site width
« Reply #8 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.

 

Powered by SMFPacks Social Login Mod