Jump to content

strange js exceptions on product detail page.


Diddino12

Recommended Posts

prestashop 1.7.5.1 here:

When i open the product detail, on loading page, i found this errors during the js debugging:

DOMException: Failed to execute 'querySelectorAll' on 'Element': '*,:x' is not a valid selector.

DOMException: Failed to execute 'webkitMatchesSelector' on 'Element': '[s!='']:x' is not a valid selector.

DOMException: Failed to execute 'querySelectorAll' on 'Element': '*,:x' is not a valid selector.

DOMException: Failed to execute 'querySelectorAll' on 'Document': '#attribute_group optgroup#75' is not a valid selector.  main.bundle.js:313

Error: No select2/i18n/it

Error: No en

DOMException: Failed to execute 'querySelectorAll' on 'Element': '#form_step1_features_0_feature :selected' is not a valid selector.

--loop--

Error: No select2/i18n/it

Error: No en

Error: No it

--loop--

image.thumb.png.92c5b3f8289a648478dec16912d270ff.png

well If i uncheck the 'pause on caught exception' to pass throught the exceptions loop, the page loads:

If i try to click the preview(Anteprima in screenshot) button can't catch any exception with debug, a new page with a spinning circle appear but nothing happen there, the BO doesn't works anymore until a restart server throught ssh service apache2 restart command, then this exception in js is thrown: 

DOMException: Failed to execute 'querySelectorAll' on 'Document': 'body:not(:has(#growls-default))' is not a valid selector.

in mainbundle.js

SyntaxError: Unexpected token u in JSON at position 0.

form.js?1.7.5.1:703

any advice or help is greatly appreciated. thanks

 

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...