-
grapeParticipant
I’m getting these errors and I think it might be conflicting with my woocommerce, which all of a sudden isn’t functioning like it used to, after updating theme & plugins. Any help I would be most appreciative!
(index):44 GET http://nancycarlson.com/wp-content/themes/pinboard/styles/mediaelementplayer.css
(index):53 GET http://nancycarlson.com/wp-content/themes/pinboard/scripts/fitvids.js
(index):62 GET http://nancycarlson.com/wp-content/themes/pinboard/scripts/colorbox.js
(index):61 GET http://nancycarlson.com/wp-content/themes/pinboard/scripts/mediaelementplayer.js
jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1
(index):184 Uncaught TypeError: $(…).fitVids is not a function(anonymous function) @ (index):184i @ jquery.js?ver=1.12.4:2j.fireWith @ jquery.js?ver=1.12.4:2n.extend.ready @ jquery.js?ver=1.12.4:2K @ jquery.js?ver=1.12.4:2
(index):187 Uncaught TypeError: jQuery(…).colorbox is not a functionDaniel TaraKeymasterThe JavaScript errors are due to missing .js files in the theme. The console reports some .css files to be missing too. I followed the path of those files and the server does indeed respond with a 404 status. If you haven’t made changes to the theme reinstalling it might be the best option, otherwise just copy the missing files from the original theme into their respective location.
This probably has nothing to do with WooCommerce or any other plugin.
grapeParticipantThank you so much for the reply. What confuses me is that (most of) the files are indeed in the scripts folder. This is what’s in there:
/wp-content/themes/pinboard/scripts/html5.js
/wp-content/themes/pinboard/scripts/ios-orientationchange-fix.js
/wp-content/themes/pinboard/scripts/jquery.colorbox-min.js
/wp-content/themes/pinboard/scripts/jquery.colorbox.js
/wp-content/themes/pinboard/scripts/jquery.fitvids.js
/wp-content/themes/pinboard/scripts/jquery.flexslider-min.js
/wp-content/themes/pinboard/scripts/jquery.infinitescroll.min.jsI just today re-downloaded the theme, and those are the only ones in there as well.
Any ideas why they are there but not functioning?
Do you know where I could get the mediaelementplayer.js & .cssDaniel TaraKeymasterThis is what your website is requesting:
http://nancycarlson.com/wp-content/themes/pinboard/scripts/fitvids.js
This is what your website should be requesting:
http://nancycarlson.com/wp-content/themes/pinboard/scripts/jquery.fitvids.js
Based on this line in functions.php:
wp_register_script( 'fitvids', get_template_directory_uri() . '/scripts/jquery.fitvids.js', array( 'jquery' ), null );
So unless some plugin has overridden the path of the
'fitvids'
handle or you have unintentionally altered that path, I don’t see why this would be happening. I also don’t see why a plugin would alter a path in the theme directory.
Tagged: jquery errors, script errors
You must be logged in to reply to this topic.