WordPress.org

Forums

Events Manager
JS error "em_ajaxify is not defined" (6 posts)

  1. trewknowledge
    Member
    Posted 3 years ago #

    I am getting a JS error when clicking on the next or previous month in the calendar full view.

    The error is:

    em_ajaxify is not defined

    And this line is causing the error:

    var url = em_ajaxify($(this).attr('href'));

    Any way to resolve this issue?

    http://wordpress.org/extend/plugins/events-manager/

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    are all the em js files being included? must be something like that

  3. trewknowledge
    Member
    Posted 3 years ago #

    I believe they are. I did not remove any files from the plugin.

  4. agelonwl
    Member
    Posted 3 years ago #

    do you have any other plugin installed?

    it might be a conflict between your other plugin or theme. please try deactivating those temporarily or switching to default theme.

    also are you in multisite or bp?

  5. joeybeninghove
    Member
    Posted 3 years ago #

    FYI, to get this working I had to hack the plugin's calendar-full.php to include this before the rebinding of the nab buttons. Probably not the best fix, but that got it working.

    var em_ajaxify = function(url){
    if ( url.search('em_ajax=0') != -1){
    url = url.replace('em_ajax=0','em_ajax=1');
    }else if( url.search(/\?/) != -1 ){
    url = url + "&em_ajax=1";
    }else{
    url = url + "?em_ajax=1";
    }
    return url;
    }

  6. Frank Strack
    Member
    Posted 3 years ago #

    @joebeninghove's solution worked for me, though you should follow their instructions on how to create a template and put the JS code in THAT rather than the original source file.

    Cheers.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic