• Resolved baseballrocks0412

    (@baseballrocks0412)


    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&#8217; 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&gt;
    </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.

    https://www.ads-software.com/plugins/events-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter baseballrocks0412

    (@baseballrocks0412)

    Anyone have any thoughts?

    This sounds like a possible conflict caused by your theme or another plugin. To check if it is, can you test with all other plugins deactivated and while running the default WordPress theme?

    Thread Starter baseballrocks0412

    (@baseballrocks0412)

    When I put in the default theme I got this error, “Uncaught RangeError: Maximum call stack size exceeded
    js?v=3.24&libraries=places&callback=em_maps&key=APIKEY

    That caused me to look in my functions.php, I started with a blank theme and modified to create my own, the blank theme was enqueuing jQuery 1.4 using this, ` if ( !is_admin() ) {
    wp_deregister_script(‘jquery’);
    wp_register_script(‘jquery’, (“https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&#8221;), false);
    wp_enqueue_script(‘jquery’);
    }`

    I was also calling <script src="https://code.jquery.com/jquery-1.12.0.min.js"></script> I am newer to wordpress, should I be able to change the jQuery enqueuing script to make my call and remove it from the header?

    Thanks

    Are you trying to load Google Maps without an API key? You can longer do that:

    https://wp-events-plugin.com/documentation/google-maps/api-key/

    Which version of Events Manager and WordPress are you using?

    Thread Starter baseballrocks0412

    (@baseballrocks0412)

    I am using the API key, I just replaced it in the post above as APIKEY. WordPress 4.5.3 and Event Manager 5.6.5. When I replaced my theme with the default theme, I believe I was receiving an error for en queuing jQuery wrong.

    I am working fine now, after playing around with my function to en queue jQuery. Thanks you for helping me find that problem earlier.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Uncaught Type Error’ is closed to new replies.