Uncaught SyntaxError: Unexpected end of input tinymce.min.js - javascript

I wanted to add new post to my WordPress website and I saw that buttons are missing and the text in the textarea is white. I've tried to do everything described here, but it didn't help.
Then I opened console in my browsers (Chrome and Firefox also) and I saw the following error:
Uncaught SyntaxError: Unexpected end of input tinymce.min.js:2
In "Application" tab I opened this file and it ends like this:
"TABLE"===n.nodeName?r=""+a+"":/^(UL|OL)$/.t
But on the server this file is full, it is not corrupted. How to fix this problem?

I replaced wp-includes with the original one and it helped.

Related

JavaScript critical error - SCRIPT1004: Expected ';'

enter image description here
I am getting JavaScript critical error - SCRIPT1004: Expected ';' when i run my solution. It works fine when i click on continue. However, the file in which this erroro message is displayed, is visible only at run time. How should i resolve this issue. On searching for similar keywords, i got a file reference from where the code appears to be coming which is showing error:
enter image description here
Replacing If with if worked, getting similar error on next line:
enter image description here

ajaxToolkit AutoCompleteExtender Chrome error

Facts:
ajaxToolkit AutoCompleteExtender in this specific screen works fine in IE, and Firefox
ajaxToolkit AutoCompleteExtender works fine in Chrome, in a different screen, same application
But not here. Right now I am getting errors like this:
Uncaught Error: Sys.InvalidOperationException: Type
AjaxControlToolkit.Animation.Animation has already been registered.
and
Uncaught Error: Sys.ScriptLoadFailedException: The script
'http://abc/def/ScriptResource.axd?d=uZ7YXSkj4n5b51-4hy2B1kBoyWBzAKQobQalIia8aju5_q790-3ZI8fdE9mfezSEesp77ToyxGv7_erOfA-X853srHT0dJkwMzZ98t3kSUkbkMEhd1StAYZDits_77x15a31Dr-0FO4ytW-aNwix2qkS_181&t=634263938860000000'
failed to load. Check for: Inaccessible path. Script errors. (IE)
Enable 'Display a notification about every script error' under
advanced settings. Missing call to
Sys.Application.notifyScriptLoaded().
Anyone ever had any issues like this?
Scriptresource.axd is not something I tried to change before, so I am feeling totally lost.
So after a lot of debugging, I removed the UpdatePanel from the screen, and it is working fine in Chrom, Firefox, and IE as well.

Slick slider console error

I am currently getting this console error from slick slider:
Uncaught TypeError: b.$list.prop is not a function
I am using this slider on three different sites -all implemented the same exact way. It was working on one of the sites until one day it just went blank. The error I get is on slick.min.js Has anyone else run into this problem? Does anyone know what this error is? Thanks in advance!
UPDATE: Here's a dev site that has the issue: http://dev.semananews.beta.lionheartdms.com/ With #Radiance suggestion, I loaded slick.min.js at the end and it now displays the image but the slider doesn't work still. I now get this console error
Uncaught TypeError: a.type is not a function
Check if you have added the external js files correctly. According to me the error is occurring because the compiler is not able to find the function which you are using
Did you check your jQuery version? Slick requires jQuery 1.7 to function properly. (https://github.com/kenwheeler/slick#dependencies)

Uncaught TypeError: Cannot call method 'toLowerCase' of undefined using Ckeditor

I am trying to filter words(ants,words) using ckeditor.This works fine with normal textarea. http://jsfiddle.net/fqthJ/22/ .Now I am trying it with ckeditor http://jsfiddle.net/s47M3/35/ but I get the following error
Uncaught TypeError: Cannot call method 'toLowerCase' of undefined using Ckeditor
If you check on the console ,I get the above error only once I type the filtered words(ants and words) otherwise no error comes.
Please help
Actually I have been trying to solve a same type of question yesterday that you have posted.
The problem is you can't use jQuery long with CKEDITOR and therefore you faced the error.
FIX:
alert("The following word/words "+
CKEDITOR.instances['editor1'].getData().match(regAry[index])+" is banned");
JSFiddle
If you're interested with jQuery Adaptor of CKEditor, then you can go with your own.
In the second fiddle, try putting a debugger; line just before alert('the following words... and then open up your browsers developer console before running it again. You'll notice that the $(this) is a CKEditor specific dom element that looks like an iFrame so .val() will probably fail, because it looks for strings. I don't know enough about CKEditor to figure out how to get editor content out of it, but know that it is html formatted if you browse around in the CKEditor.dom.element, so it will contain html elements in addition to ordinary text etc.

Javascript Alert Boxes not working in Chrome

This is weird, The following line of javascript:
alert("test");
gives the following error in chrome:
Uncaught TypeError: Property 'alert' of object [object DOMWindow] is not a function
It also breaks when using a prompt. Oddly it works in firefox. Any ideas?
Do you have a another pop up blocker plug-in installed on Chrome? If you do, disable/remove it and see if the error goes away.
Is your Javascript enabled in the Chrome options?
Other thing is any other js library included which might change default js behaviour?
As epascarello said its because of popup blocker plugin and I faced this problem with my localhost websites and prompt method.
So i fixed it by adding my localhost url to popup blocker's whitelist: http://localhost

Categories

Resources