Uncaught Type Error
-
I tried to lookup and see if this had already been solved somewhere else. If it has please direct me.
I recently started using this plugin and was unable to take advantage of the Location maps because of the API issue. Now that the API issue is resolved I am seeing an error that states “Uncaught TypeError: $(…).on is not a function”. It if showing the line of the error to be: events-manager.js?ver=5.64:165.
So far as I can tell in my reading this is the result of jQuery being in no conflict mode in WordPress. Because I am not seeing a bunch of other people with the problem, I am assuming that there is a setting, or something that needs to be done differently.
My head tag looks like `
<head>
<meta charset=”<?php bloginfo(‘charset’); ?>” /><?php if (is_search()) { ?>
<meta name=”robots” content=”noindex, nofollow” />
<?php } ?><title>
<?php
if (function_exists(‘is_tag’) && is_tag()) {
single_tag_title(“Tag Archive for "”); echo ‘" – ‘; }
elseif (is_archive()) {
wp_title(”); echo ‘ Archive – ‘; }
elseif (is_search()) {
echo ‘Search for "’.wp_specialchars($s).’" – ‘; }
elseif (!(is_404()) && (is_single()) || (is_page())) {
wp_title(”); echo ‘ | ‘; }
elseif (is_404()) {
echo ‘Not Found – ‘; }
if (is_home()) {
bloginfo(‘name’); echo ‘ | ‘; bloginfo(‘description’); }
else {
bloginfo(‘name’); }
if ($paged>1) {
echo ‘ – page ‘. $paged; }
?>
</title><link rel=”shortcut icon” href=”/favicon.ico”>
<link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?> “>
<link href=’https://fonts.googleapis.com/css?family=Raleway’ rel=’stylesheet’ type=’text/css’><meta name=”viewport” content=”width=device-width”>
<meta name=”viewport” content=”width=100%, initial-scale=1, user-scalable=no”><link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>”>
<?php wp_head(); ?>
<script src=”https://code.jquery.com/jquery-1.12.0.min.js”></script>
</head>`I have attempted turning off other plugins, and that made no change so I turned them back on.
I am currently testing this in my dev environment.
- The topic ‘Uncaught Type Error’ is closed to new replies.