Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Tim Moore

    (@tmoorewp)

    Are you using the wp_enqueue_script function to properly add jQuery to your site? If not, that might be what is causing the error.

    studioactiv8

    (@studioactiv8)

    I am getting these errors too:

    TypeError: ‘undefined’ is not a function (evaluating ‘jQuery(‘body’).on’)
    gprofiles.js:2

    TypeError: ‘undefined’ is not a function (evaluating ‘$(document).on’)
    admin-bar-rest.js:23

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    @studioactiv8 This is mostly likely caused by some issues with your theme or one of your plugins.

    If you use an old version of jQuery instead of using the version that comes bundled with WordPress, you might experience a lot of issues with WordPress and with other plugins like Jetpack. You can read more about it here:
    https://www.ads-software.com/support/topic/troubleshooting-wordpress-35-master-list?replies=4#post-3547424

    Try switching to a different theme for a few minutes, and check if that solves the issue; if it does, you’ll want to look for the function loading jQuery in your theme’s header.php file, or in the functions.php file. Once you find that function, you can remove it and enqueue the proper version of jQuery as explained here:
    https://codex.www.ads-software.com/Function_Reference/wp_enqueue_script

    If the issue is not related to your theme, please try to disable all your plugins, one at a time, until you find the one that causes the conflict. You can then enqueue jQuery using the method I linked to above.

    If you do not feel comfortable editing PHP files, you can also contact the theme or plugin author and ask them to solve the issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Jetpack by WordPress.com] Jetpack causes Javascript errors on mobile browsers’ is closed to new replies.