You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On TB 1.1.0, local XAMPP development environment:
Product Comparison page throws the following JS errors, causing "removing product from column" to not work:
Uncaught Syntax Error: Invalid Hexadecimal escape sequence
Uncaught Reference Error: baseUri is not defined
Problem is solved by making the following code change in
/modules/socialsharing/socialsharing.php line 243
You have to wonder whether the problem here really is Windows. It is highly unusual (and considered a bit of a security risk) to expose the full path on the server in the code that is served to the customers. That is one of the reasons why we don't display error messages unless in debug mode. A javascript file is less visible but one still has to wonder why.
This may not be a problem with cloud servers. In the TB demo the js file looks like this:
This is an error that also happens in Prestashop 1.6. In Prestashop 1.7 the compare function seems to have disappeared.
On TB 1.1.0, local XAMPP development environment:
Product Comparison page throws the following JS errors, causing "removing product from column" to not work:
Problem is solved by making the following code change in
/modules/socialsharing/socialsharing.php line 243
change
_PS_IMG_DIR_.Configuration::get('PS_LOGO_MAIL', null, null, $this->context->shop->id), "'"
into
str_replace("\\","/",_PS_IMG_DIR_).Configuration::get('PS_LOGO_MAIL', null, null, $this->context->shop->id), "'"
Related TB Forum Post:
https://forum.thirtybees.com/topic/3466-solved-product-comparison-error-when-trying-to-remove-product-30bz-110-local-dev-xampp/
As this is one of my first issue posts, please point out any issues or improvements that I can make on future issue posts. Thanks :)
The text was updated successfully, but these errors were encountered: