VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: sandomatyas on May 15, 2023, 11:09:46 AM

Title: Invisible characters in cart module
Post by: sandomatyas on May 15, 2023, 11:09:46 AM
Hi
I found some invisible characters at the beginning of the cart module:
https://snipboard.io/wh7mFl.jpg
I tried two different templates with the same result.
When I check mod_virtuemart_cart.php and removes $data = $cart->prepareAjaxData(); it disappears
Any guess where it comes from?

Joomla 4.3.1, VM 4.0.21
Title: Re: Invisible characters in cart module
Post by: Margriet on May 16, 2023, 12:33:59 PM
Unable to reproduce, so I assume it is not a bug, but related to your template(s).
VM 4.0.21???
Title: Re: Invisible characters in cart module
Post by: sandomatyas on May 16, 2023, 17:44:57 PM
hm, I tested with a clean install, it doesn't appears. But it's not the template, I checked with 3 different one, it must be some extension which is triggered during the cart process. I'll check it later.

Yes, I got VM 4.0.21 from Milbo :)
Title: Re: Invisible characters in cart module
Post by: sirius on May 22, 2023, 10:23:43 AM
Hi,
this char is just a "Zero Width No-Break Space."
Also known as B.O.M (Byte Order Mark) to identify unicode files.
So you probably have a file save with B.O.M, so you should save (once found) with Unicode without BOM
It's also present several time in the tiny_mce.js and tinymce.min.js files
Title: Re: Invisible characters in cart module
Post by: sandomatyas on May 22, 2023, 13:52:47 PM
Yep thanks, I found in a 3rd party vmshipment plugin.