Error on Events page after update to 1.76

Running WordPress 4.0, getting error on my Events page.

I have an Events page with the following shortcodes:

[eab_calendar navigation = 'yes' footer='yes' title_format='F Y' categories=2,3,4,5,6,32]

[eab_archive lookahead="yes" weeks="52" categories=2,3,4,5,6,32]

The follow error is displayed at the top of the page, before the calendar:

Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Eab_EventsHub' does not have a method 'enqueue_api_scripts' in /home/hauntedr/public_html/Test/wp-includes/plugin.php on line 505

Any suggestions would be much appreciated.


  • Vinod Dalvi

    Hi Tom,

    Thanks for posting on the forum.

    I could reproduce this issue on my test site using latest version of Events+ plugin and WordPress 4.0 therefore i have notified the plugin developer to fix this issue in the plugin.

    In the meanwhile to fix this issue try adding the below code in the following Events + plugin file on line number 820

    Events + plugin file :


    public function enqueue_api_scripts () {
    		if (!$this->_data->get_option('accept_api_logins')) return false;
    		$domain = get_bloginfo('name');
    		$domain = $domain ? $domain : __('WordPress', self::TEXT_DOMAIN);
    		wp_localize_script('eab_api_js', 'l10nEabApi', apply_filters('eab-javascript-api_vars', array(
    			'facebook' => __('Login with Facebook', self::TEXT_DOMAIN),
    			'twitter' => __('Login with Twitter', self::TEXT_DOMAIN),
    			'google' => __('Login with Google', self::TEXT_DOMAIN),
    			'wordpress' => sprintf(__('Login with %s', self::TEXT_DOMAIN), $domain),
    			'cancel' => __('Cancel', self::TEXT_DOMAIN),
    			'please_wait' => __('Please, wait...', self::TEXT_DOMAIN),
    			'wp_register' => __('Register', self::TEXT_DOMAIN),
    			'wp_registration_msg' => __('Create a username in order to register for this event - or just click cancel to register using your Facebook or Twitter ID', self::TEXT_DOMAIN),
    			'wp_login' => __('Log in', self::TEXT_DOMAIN),
    			'wp_login_msg' => __('Login with your existing username in order to register for this event - or just click cancel to register using your Facebook or Twitter ID', self::TEXT_DOMAIN),
    			'wp_username' => __('Username', self::TEXT_DOMAIN),
    			'wp_password' => __('Password', self::TEXT_DOMAIN),
    			'wp_email' => __('Email', self::TEXT_DOMAIN),
    			'wp_toggle_on' => __('Already a member? Log in here', self::TEXT_DOMAIN),
    			'wp_toggle_off' => __('Click here to register', self::TEXT_DOMAIN),
    			'wp_submit' => __('Submit', self::TEXT_DOMAIN),
    			'wp_cancel' => __('Cancel', self::TEXT_DOMAIN),
    			// Vars
    			'show_facebook' => !$this->_data->get_option('api_login-hide-facebook'),
    			'show_twitter' => !$this->_data->get_option('api_login-hide-twitter'),
    			'show_google' => !$this->_data->get_option('api_login-hide-google'),
    			'show_wordpress' => !$this->_data->get_option('api_login-hide-wordpress'),
    			//validation error for worpress popup
    			'wp_missing_username_password' => __( 'Username and password are required!', self::TEXT_DOMAIN ),
    			'wp_username_pass_invalid' => __( 'Invalid username or password!', self::TEXT_DOMAIN ),
    			'wp_missing_user_email' => __( 'Username and email are required!', self::TEXT_DOMAIN ),
    			'wp_signup_error' => __( 'Your email/username is already taken or email is invalid!', self::TEXT_DOMAIN ),
    		if (!$this->_data->get_option('facebook-no_init')) {
    			if (defined('EAB_INTERNAL_FLAG__FB_INIT_ADDED')) return false;
    			add_action('wp_footer', create_function('', "echo '" .
    				'<div id="fb-root"></div><script type="text/javascript">
    				window.fbAsyncInit = function() {
    					  appId: "%s",
    					  status: true,
    					  cookie: true,
    					  xfbml: true
    				// Load the FB SDK Asynchronously
    					var js, id = "facebook-jssdk"; if (d.getElementById(id)) {return;}
    					js = d.createElement("script"); = id; js.async = true;
    					js.src = "//";
    			) .
    			define('EAB_INTERNAL_FLAG__FB_INIT_ADDED', true, true);

    Best Regards,
    Vinod Dalvi

  • Vaughan

    Hi @thomas,

    Glad the update fixed your issue :slight_smile:

    Good to hear you figured FTP out :slight_smile: it really is one of those tools you should practice with & learn to use, especially where web sites are concerned. The CPanel filemanagers whilst do the job, are a little slow and less convenient than using an FTP client such as filezilla. Once you get used to it, it's like riding a bike, you'll never forget.


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.