Page 1 of 1

bug: opencart 3.0.2.0: white spaces before and after texts in forms

Posted: Wed Apr 15, 2020 5:32 pm
by brennosacra
Hi,

In the Opencart administrative area, when I save some content in input text forms, the system adds 1 white space before and after the text. Whenever saved, add 1 more white space and this is progressive.

Images exemple:
Image

Image

Has anyone ever experienced this? Can you help me?

Re: bug: opencart 3.0.2.0: white spaces before and after texts in forms

Posted: Wed Apr 15, 2020 7:14 pm
by straightlight
These issues have already been fixed on the master branch.

Re: bug: opencart 3.0.2.0: white spaces before and after texts in forms

Posted: Wed Apr 15, 2020 8:00 pm
by letxobnav
Don't have that issue and I do not recognize those screen-shots either.

Re: bug: opencart 3.0.2.0: white spaces before and after texts in forms

Posted: Wed Apr 15, 2020 8:07 pm
by straightlight
That is a different issue. Trim functions have been added on the master branch to validate some inputs from the OC admin. That is probably what the OP user is referring about. However, extension developers are also encouraged to do so whenever different language packs are being used as opposed to the English language.

Re: bug: opencart 3.0.2.0: white spaces before and after texts in forms

Posted: Wed Apr 15, 2020 8:24 pm
by letxobnav
yes, I read the commits but the OP is saying that when he adds a space in front and/or the back, the system adds an additional space every time he saves.
I do not see that and I do not recognize that screenshot so I assume it is an extension, not default OC.

Re: bug: opencart 3.0.2.0: white spaces before and after texts in forms

Posted: Wed Apr 15, 2020 8:30 pm
by straightlight
letxobnav wrote:
Wed Apr 15, 2020 8:24 pm
yes, I read the commits but the OP is saying that when he adds a space in front and/or the back, the system adds an additional space every time he saves.
I do not see that and I do not recognize that screenshot so I assume it is an extension, not default OC.
This issue cannot be reproduced on all servers. Trimming the string does resolved that issue in most cases. It just depends on the language pack and charset settings are being used and the compatibility with the server forum users might be on into.

Re: bug: opencart 3.0.2.0: white spaces before and after texts in forms

Posted: Sat Apr 18, 2020 2:58 am
by EvolveWebHosting
straightlight wrote:
Wed Apr 15, 2020 7:14 pm
These issues have already been fixed on the master branch.
It would be nice if they'd release a patch version since it's been over a year. Not everyone knows how to grab the updates via Github

Re: bug: opencart 3.0.2.0: white spaces before and after texts in forms

Posted: Sat Apr 18, 2020 8:54 am
by IP_CAM
who they ? :D As more PRO something get's, as less 'free' help is part of it. :-\
https://github.com/opencart/opencart/gr ... ntributors

Re: bug: opencart 3.0.2.0: white spaces before and after texts in forms

Posted: Sun Apr 19, 2020 10:27 pm
by EvolveWebHosting
IP_CAM wrote:
Sat Apr 18, 2020 8:54 am
who they ? :D As more PRO something get's, as less 'free' help is part of it. :-\
https://github.com/opencart/opencart/gr ... ntributors
Daniel and his team

Re: bug: Just compare it with the Corona Virus ...

Posted: Mon Apr 20, 2020 5:43 am
by IP_CAM
Well, you should be long enough around this place, to have a deeper inside of
what's has been going on over the years. It's the sound, what makes the music. ;)

But some former Github and OC Contributors turned their back on OC, partly,
because of feeling ignored, and partly, because of feeling offended. And such
leaves traces. It's just human behaviour, here as well as anywhere else, where
one depends on others, to eventually succeed over an extended period of time.

But i'm also aware of, how difficult it can be, in an environment, where most
everybody involved is in competition with others. And from that point of view,
it's more a wonder, that it still works, as it does. I was long enough active in
Business, to know, what it takes, and/or how little it takes, to eventually fail.

Still, that's only my personal opinion, also fully aware of, that I'm one of the
very few around here, who would have absolutely nothing to loose. :D
Ernie

Re: bug: opencart 3.0.2.0: white spaces before and after texts in forms

Posted: Fri Apr 24, 2020 9:15 pm
by xxvirusxx
@brennosacra

You use php 7.4, right?

Re: bug: opencart 3.0.2.0: white spaces before and after texts in forms

Posted: Fri Apr 24, 2020 10:05 pm
by IP_CAM
xxvirusxx wrote:
Fri Apr 24, 2020 9:15 pm
You use php 7.4, right?
Yep, I'm using PHP 7.4.5 , the Hoster just updated to that Version a few days ago.
Only OcShop's TURBO LIGHT VqMod Extension did no longer function, just to mention this. But
I did not bother to check on it, since I don't use it anyway ... :D
---
Image