Jump to content
thirty bees forum
  • 0

[Solved, issue request created] Product Comparison Error when trying to remove product (30Bz 1.1.0 local dev Xampp)




I've been getting a js error on TB 1.1.0 with Product Comparison when trying to remove a product (adding appears to be ok).
The loading image appears and "loads forever" and throws the following js error:

products-comparison.js:65 Uncaught ReferenceError: baseUri is not defined
    at HTMLButtonElement.<anonymous> (products-comparison.js:65)
    at HTMLDocument.dispatch (jquery-1.11.0.min.js:3)
    at HTMLDocument.r.handle (jquery-1.11.0.min.js:3)


  • This is on local Xampp dev environment with PHP 7.2.
  • Problem occurred in 1.08 previously as well.

Your help is appreciated in advance.


loading error.png

product comparison baseurl error.png

product comparison js .png

Edited by Theo
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

The error may be prior. I did a little test on my Xampp and got an error already on the comparison page before I deleted anything (I have compacted the image a bit to make it less wide):


When click the link to the error file I get this:


I assume that this sharing image will be used as basedir and that its backslashes will be processed as escapes in javascript and cause problems.

Link to comment
Share on other sites

  • 0

Glad to hear it works.

I see you have found the bug report section of the forum already. Some time ago TB changed its forum software and the links were changed. Occasionally you will still find old style links.

As for Github: it is probably best to make a report for the Social sharing module: https://github.com/thirtybees/socialsharing

The second tab there has the name "issues". It is the place where you can report problems.

Link to comment
Share on other sites

  • 0
On 9/10/2019 at 3:47 PM, musicmaster said:

/modules/socialsharing/socialsharing.php line 243


_PS_IMG_DIR_.Configuration::get('PS_LOGO_MAIL', null, null, $this->context->shop->id), "'"


 str_replace("\\","/",_PS_IMG_DIR_).Configuration::get('PS_LOGO_MAIL', null, null, $this->context->shop->id), "'"

Can you make a Github issue?

I've submitted the Github issue as requested

  • Like 1
Link to comment
Share on other sites

  • 0

The issue I believe was not at all with the paths, the problem was that wrong logo URL generation method was used. PS_LOGO_MAIL was intended for use but no fallback was specified. As no PS_LOGO_MAIL is available with demo install I assumed this could happen to non-demo shops so I specified PS_LOGO as media which will be shared.


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...