I am using Wordpress and have two plugins installed on there. Both are using the Tinymce WYSIWYG editor. If I have both plugins activated i get the following error message when loading the page plugin B is being displayed:
jquery.js?ver=1.12.3:2 Uncaught Error: no such method 'instance' for autocomplete widget instance
When clicking on one of the tabs of tinymce, this error message pops up:
tinymce.min.js?ver=4310-20160418:11 Uncaught TypeError: Cannot read property 'refreshContentEditable' of undefined
If I have plugin A deactivated, plugin B works flawlessly!
How can the conflict between both plugins be resolved? Shouldn't both just be using the tinymce editor and not changing it for the other plugin?
Thanks for your help!
The problem was the load order of the plugins in wordpress. By moving the plugin that created the error to an earlier load position the problem could be solved
Related
I have visual composer installed on a wordpress site. For some reason when i isert and image or any element and apply the animation from inside visual composer, the page goes blank and nothing shows, no animations, nothing.
After contacting the plugin developer they said another plugin is conflicting but i have just 1 other plugin installed, jetpack. I have uinstalled that and the problem persists.
Using the debug tool i get the following errors. any ideas?
Uncaught TypeError: a.indexOf is not a function
at r.fn.init.r.fn.load (jquery.min.js?ver=3.1.1:4)
at waypoints.min.js?ver=5.0.1:8
at waypoints.min.js?ver=5.0.1:8
at waypoints.min.js?ver=5.0.1:8
at waypoints.min.js?ver=5.0.1:8
Uncaught TypeError: f.getClientRects is not a function
at r.fn.init.offset (https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js?ver=3.1.1:4:20376)
at t.refresh (http://####/wp-content/plugins/js_composer/assets/lib/waypoints/waypoints.min.js?ver=5.0.1:8:2072)
at t. (http://#####/wp-content/plugins/js_composer/assets/lib/waypoints/waypoints.min.js?ver=5.0.1:8:6130)
at Function.each (https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js?ver=3.1.1:2:2865)
at refresh (http:#####/wp-content/plugins/js_composer/assets/lib/waypoints/waypoints.min.js?ver=5.0.1:8:6100)
at Function.n.(anonymous function) [as waypoints] (http://###wp-content/plugins/js_composer/assets/lib/waypoints/waypoints.min.js?ver=5.0.1:8:7638)
at r.fn.init.init (http://####/wp-content/plugins/js_composer/assets/lib/waypoints/waypoints.min.js?ver=5.0.1:8:4817)
at r.fn.init.n.fn.(anonymous function) [as waypoint] (http://######/wp-content/plugins/js_composer/assets/lib/waypoints/waypoints.min.js?ver=5.0.1:8:5712)
at function.window.vc_waypoints.window.vc_waypoints (http://####/wp-content/plugins/js_composer/assets/js/dist/js_composer_front.min.js?ver=5.0.1:1:7243)
By default, the latest version of WordPress uses jQuery version 1.12.4 but your site seems to be calling jQuery 3.1.1 via Google's CDN. It's possible that Visual Composer isn't compatible with jQuery 3 yet.
If this is the only plugin on the site, then it's likely the theme calling this jQuery version. And if it's properly coded, you should be able to find a wp_register_script or wp_enqueue_script function that is overriding the jQuery version. If you replace that with wp_enqueue_script( 'jquery' );, you'll load up WordPress' jQuery which may solve the issue.
Three notes:
The theme may have replaced jQuery by using wp_deregister_script. You'll need to comment that out too.
Changing the jQuery version may break javascript coming from your theme if that js needs jQuery version 3 so look for issues on that end as well.
When you update your theme, it will revert this change. So you should consider doing this through a child theme to preserve your changes across updates.
I am trying to create a youtube video background with the help of Jquery. I referred to https://github.com/rochestb/jQuery.YoutubeBackground and create a page for the same. I was able to successfully play the video in the background but when the page loads I get a JS error
"JavaScript exception: Error calling selector function:TypeError: Cannot read property 'msie' of undefined"
Below is the link for my page.
http://creativated.com/thetest/index.html
Please help me find the rootcause.
Regards
Creativated Dev
Your museutils.js script uses deprecated method .browser()
You still can add it as plugin jQuery browser plugin
All of a sudden the nivo slider on one of our clients websites is not showing up at all: www.bedehouse.org
I have tried all sorts but cannot see why its stopped all of a sudden? We have not done any updates to wordpress or any of its plugins recently.
I can see using chromes "inpect element" feature that there is an error: "Uncaught TypeError: $(...).nivoSlider is not a function" but have no idea what it means.
Any helps or pointers in the right direction would be massively helpful.
You're loading two versions of jQuery. One is the copy WordPress is loading and the second is another.
Both are different versions (WP is loading 1.8.3 and you're loading 1.8.2). WordPress loads jQuery in noconflict mode and does not allow the use of the $ shortcut.
Remove the jQuery 1.8.2 call that you made and change all instances of $ to jQuery and try it.
I'm using Magento 1.9.1 with the RWD template with Augoria Slider on the home page and SM Gallery on the gallery page. They work fine so long as I remove
<action method="addItem"><type>skin_js</type><name>js/lib/jquery-1.10.2.min.js</name></action>
from app/design/frontend/rwd/default/layout/page.xml
This however causes the product description to vanish and I can't seem to get everything working together.
I tried creating a local.xml to only load the templates Jquery version on the product view page but this has not worked.
Website can be found here http://goo.gl/KXNOL4
Thanks
You have to check couple of things first,
Check your Pluggin and remove any additional Jquery core library calls.
Check your script $ sign because, some times it cause conflict issues with prototype.
Also, I have gone through with your page and It gives below js errors.
Uncaught ReferenceError: jQuery is not defined www.handcoded.co.uk/dart/skin/frontend/rwd/default/js/app.js:72
Uncaught ReferenceError: jQuery is not defined www.handcoded.co.uk/dart/skin/frontend/rwd/default/js/lib/jquery.cycle2.min.js:7
Uncaught ReferenceError: jQuery is not defined www.handcoded.co.uk/dart/skin/frontend/rwd/default/js/lib/jquery.cycle2.swipe.min.js:2
Uncaught TypeError: undefined is not a function www.handcoded.co.uk/dart/skin/frontend/rwd/default/js/slideshow.js:26
Uncaught ReferenceError: jQuery is not defined www.handcoded.co.uk/dart/skin/frontend/rwd/default/js/lib/elevatezoom/jquery.elevateZoom-3.0.8.min.js:66
So seems like your jQuery library not loading..
My website was working fine until the other day. I don't know what's happened but the dropdown system for everything has stopped working completely - even the Admin bar.
When I open up the JavaScript Console in Google Chrome when I'm on the site homepage, I get this message for each dropdown item:
Uncaught TypeError: Object #<Object> has no method 'on'...
I don't know how to fix this, I've looked everywhere. Would it be in the themes "Header.php" file? If so, whereabouts?
I found the problem! I wen into the plugins section of Wordpress and disabled "LikeLocker". The only problem is, now I've got to go into the plugins code and try to figure it out haha.
Thank you anyway!