admin管理员组文章数量:1406178
I get the following errors in the JavaScript console with no file source hint:
Uncaught TypeError: Cannot read property 'closingEls' of undefined
and
Script error
These errors prevent my page from running scripts and I don't understand what kind of errors they are.
I tried searching what 'closingEls' is, but no luck. I don't know what type of tags I need to put in this question due to the vague nature of these errors.
Edit 1: Please, before you say show us the code, read the question! my scripts do not run in the first place. And this errors does not e out of the site's scripts, it es from the user's agent trying to load the page.
Edit 2: Please, advice a way to deal with the users having this errors and can not load the page successfully. I would consider this very helpful, constructive and question-related.
I get the following errors in the JavaScript console with no file source hint:
Uncaught TypeError: Cannot read property 'closingEls' of undefined
and
Script error
These errors prevent my page from running scripts and I don't understand what kind of errors they are.
I tried searching what 'closingEls' is, but no luck. I don't know what type of tags I need to put in this question due to the vague nature of these errors.
Edit 1: Please, before you say show us the code, read the question! my scripts do not run in the first place. And this errors does not e out of the site's scripts, it es from the user's agent trying to load the page.
Edit 2: Please, advice a way to deal with the users having this errors and can not load the page successfully. I would consider this very helpful, constructive and question-related.
Share Improve this question edited Oct 3, 2017 at 8:02 Sherif asked Jun 21, 2017 at 4:57 SherifSherif 1,2894 gold badges15 silver badges40 bronze badges 7- Where's the code? Please show that so we can help. – Andrew Li Commented Jun 21, 2017 at 4:59
- Post your code. – Matt Commented Jun 21, 2017 at 4:59
- accessing a property of something which isn't there. Well without seeing any code it is not easy to answer a solution to this. – Jai Commented Jun 21, 2017 at 5:00
- 1 Are you saying that you created the JS on the page and don't know of any closingEl variable? Then it's probably injected code. But it sounds from your question that you are trying to decipher someone else's page. – HaLeiVi Commented Jun 21, 2017 at 5:02
- 2 I have the same error popping in our bug reporting with this extra indication: window.Mindspark_.closingEls(); – Paul Slm Commented Jun 22, 2017 at 15:10
1 Answer
Reset to default 8The "Script error." happens in Firefox, Safari, and Chrome when an exception violates the browser's same-origin policy - i.e. when the error occurs in a script that's hosted on a domain other than the domain of the current page.
Can read more over here:
- http://blog.errorception./2012/04/script-error-on-line-0.html
- https://blog.sentry.io/2016/05/17/what-is-script-error.html
Regarding "Uncaught TypeError: Cannot read property 'closingEls' of undefined" Even I'm getting them in my Sentry log, and I don't know how to fix them. I think these errors are from Browser Extensions trying to add their own script. In case of the "Script Error" the extension (or browser) has not allowed you to access the debugging information, while the other extension (or browser) has allowed you to see it.
Most Client JS error tracking ignore "Script Error.". Read here
- https://docs.sentry.io/clients/javascript/tips/
- http://blog.errorception./2012/03/tale-of-unfindable-js-error.html
Let's hope that this question finds popularity and we find the developer of the extension.
本文标签:
版权声明:本文标题:browser - Javascript - "Cannot read property 'closingEls' of undefined" and "Script e 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744962407a2634736.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论