I have made a website on one domain, perfecting it to my likings. However, now I took all the files, copied them to another domain. Now the website console throws weird errors, that were not there on the first domain where the website was created.
I get errors:
Uncaught SyntaxError: missing ) after argument list on
bootstrap.min.jsand Uncaught SyntaxError: missing ) after argument
list on jquerymagnific-popup.js
In the code, I am referring to all scripts with the following line(s):
<script src="/js/scripts.js"></script>
I can't seem to figure out why it works on for example domain1.com/testing but not on domain2.com
Related
dti content script.js causing problem in few JSP pages.
Browser Console Error:
Uncaught (in promise) unknow action dti_content_script.js
Uncaught (in promise) unknow action walkme_loading_content_script.js
Using jquery-1.7.2.min.js
Using Okta min.js https://global.oktacdn.com/okta-auth-js/4.5.0/okta-auth-js.min.js
Please let me know if you have any idea.
Needs to remove this error, its coming not every users. Its coming for few users only.
I noticed my debugger was flaring up for a javascript error.
Uncaught SyntaxError: Invalid or unexpected token
http://vionms.beee/wp/wp-includes/js/shortcode.js?ver=4.9.8 line 1
When I open it, it shows a lot of gibberish... and then some (partial) information about a Comodo RSA domain validation/SSL wildcard, see screenshot.
I deactivated all plugins and reverted to a WP default theme, but the error persisted...
If I remove the version from the url, the scripts shows its contents (as expected).
I've never seen this before... and I don't know what caused it, so annoying...
I migrated to the live server. This is running ISS v8.5. Now i have multiple problems that are related to js files. Which weren't there in the testing environment.
Since i copied the wordpress 4.8 website and fixed all the files and linkings i noticed the following problems:
visual composer backend editor wont show, and clicking the backend editor button does nothing. (javascript function). Front-end live editor is working.
in the frontend my (woocommerce) productpage is showing product-pictures in a new page instead of replacing the main/featured product-picture. (slideshow javascript function)
The datepicker addon for contact form 7 is not working either. It just shows a input field but on click a date-selector will not appear.
Most of the js is working great though. And all of it was working great in my linux testing environment. Am i missing something here?? I think its related due to the server settings (ISS 8.5 php 5.5)
Problems in inspector:
jquery.flexslider-min.js?ver=5.2:6 Uncaught SyntaxError: Unexpected identifier
photoswipe.min.js?ver=4.1.1:4 Uncaught SyntaxError: Invalid or unexpected token
jquery-ui-timepicker-nl.js:4 Uncaught TypeError: Cannot read property 'regional' of undefined
www.dab-scooters.nl/:639 Uncaught TypeError: $(...).datetimepicker is not a function
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 come out of the site's scripts, it comes 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.
The "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.com/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.com/2012/03/tale-of-unfindable-js-error.html
Let's hope that this question finds popularity and we find the developer of the extension.
recently, I'm getting very strange error using the libraries XAJAX. Everything seems to work correctly, but Chrome console gives me an error every time I run any element.
The page where I is happening is this:
http://es.woow360.com/
For example clicking on any tab business that appears in the search box it does is load a new panoramic generates this error:
Uncaught TypeError: Object #<Text> has no method 'getBoundingClientRect'
WombatUtils.getElementRect
M
U
Y
CrossbrowserMutationObserver.n
d.callbackWrapper
xajax.dom.assign xajax_core.js:210
(anonymous function) xajax_core.js:318
xajax.command.handler.call xajax_core.js:315
xajax.executeCommand xajax_core.js:404
xajax.tools.queue.process xajax_core.js:150
xajax.responseProcessor.xml xajax_core.js:165
xajax.responseReceived xajax_core.js:399
oRequest.request.onreadystatechange xajax_core.js:356
Here you have the link to the file where error occurs:
http://es.woow360.com/xajax/xajax_js/xajax_core.js
It's very strange. Until recently it worked fine.
But now fails.
It fails only on this page, also I have other pages that use the same library, and gives the same error.
Even in other domains, where I have loaded the library XAJAX gives the same error.
Not to be that.
The strange thing is that except for the error message, everything works fine.
Any idea?
Thank you!
I've got the same errors/warnings. Add-less chrome extension was the issue. Try to review extensions of your chrome.