-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS Error on every page #28
Comments
Could you provide a live URL where this error happens? It could be due to a malformed |
Yeah sure. You’ll get the exception on every page within our shop http://www.casamoda.com/
Here are some exceptions, caught through sentry:
· NotFoundErrormedia/exit-intent-popup/js/bioep in Object.window.bioEp.addCSS
<https://sentry.io/casamoda-heinrich-katt-gmbh-co/casamoda-b2c/issues/208438145/>
Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
o vor 3 Stunden — 2 Tage old
o javascript<https://sentry.io/casamoda-heinrich-katt-gmbh-co/casamoda-b2c/?query=logger%3Ajavascript>
ErrorNotFoundErrormedia/exit-intent-popup/js/bioep in window.bioEp.addCSS
<https://sentry.io/casamoda-heinrich-katt-gmbh-co/casamoda-b2c/issues/208460508/>
Node was not found
o vor 3 Stunden — 2 Tage old
o javascript<https://sentry.io/casamoda-heinrich-katt-gmbh-co/casamoda-b2c/?query=logger%3Ajavascript>
ErrorNotFoundErrormedia/exit-intent-popup/js/bioep in ?
<https://sentry.io/casamoda-heinrich-katt-gmbh-co/casamoda-b2c/issues/208443893/>
DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
o vor 3 Stunden — 2 Tage old
ErrorNotFoundErrormedia/exit-intent-popup/js/bioep in window.bioEp.addCSS
<https://sentry.io/casamoda-heinrich-katt-gmbh-co/casamoda-b2c/issues/208461431/>
Node was not found
o vor 3 Stunden — 2 Tage old
o javascript<https://sentry.io/casamoda-heinrich-katt-gmbh-co/casamoda-b2c/?query=logger%3Ajavascript>
|
Hmm, it seems to be working for me without any errors. I've attached a couple of screenshots showing the popup and errors. I have an idea for a fix but I'm unable to replicate the error, so it would be kind of a shot in the dark. The idea is to change how the If your page or browser/plugins do something to change the I could possibly add an option to choose where to append the CSS, either to the head or body element. |
Since Sentry is receiving the exception from all kinds of users on a second basis, the problem seems pretty imminent. Function wise everything works just fine. The problem is, AFAIK, just a cosmetic one…given the probably avoidable exception throwing of our users browsers. If you could just catch the exception that would be already fine I suppose.
The following two Exceptions might come in handy:
https://sentry.io/share/issue/3131353638302e323039323737383032/
https://sentry.io/share/issue/3131353638302e323038343433383933/
Thanks for your quick efforts!
|
Hi, this issue is occurring on our site too. You can reproduce by going to https://www.intrigu.com/blogs Note that it only happens on this one page. If you could investigate that would be great! |
I'm also having this issue on one page and only page only. Was there a fix? |
I'm also having this issue on one page. Doing A/B test with 2 landing pages. No issues on A, this error on B, and exit-intent won't work. The div just appears at the bottom of the page. Been racking by brain trying to solve this one. Perplexing. Edit. Found my issue. It is because I had some style tags for page B that I want to override the standard css for page A. It was a lazy way to make some quick changes to page B, now I'll do it the proper way. :) The error makes sense given what it's trying to do at this line.
|
This Error also prevents custom events (fe. to close on bg click, as described by maintainer on his blog, top section of comments) from functioning as expected |
Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
at Object.addCSS (http://www.casamoda.com/media/exit-intent-popup/js/bioep.min.js:4:94)
The text was updated successfully, but these errors were encountered: