• Resolved skorzeniowski

    (@szkorzonek)


    I wanted to enter booking management page in WP Dashboard (wp-admin/edit.php?post_type=event&page=events-manager-bookings), but I got an error:

    Error thrown
    Call to undefined method EM_Booking::is_no_user()

    I made few tweaks in plugin’s files and probably that’s the reason, but could you guide me where are these files that I could’ve made a mistake in?
    Regards,
    Szymon Korzeniowski

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry but not quite sure what files did you edited however did you edited any templates or use mu-plugins or theme functions.php ?

    Thread Starter skorzeniowski

    (@szkorzonek)

    I changed some files regarding events form, so I didn’t think they can directly influence the booking management page. I did this changes by myselft, manually, without using any third-party software.

    If you switch back to the original files does the error disappear?

    Thread Starter skorzeniowski

    (@szkorzonek)

    Ok, I managed to find an error. There was not following code in the events-manager/classes/em-booking.php file.

    	
    /**
    	 * Returns true if booking is associated with a non-registered user, i.e. booked as a guest 'no user mode'.
    	 * @return mixed
    	 */
    	function is_no_user(){
    		return apply_filters('em_booking_is_no_user', $this->get_person()->ID === 0, $this);
    	}
    

    Probably after the plugin’s update I copied old file instead of editing new one.
    Thanks for your help though. ??
    Regards,
    Szymon Korzeniowski

    No problem, glad you got it fixed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error on booking management page’ is closed to new replies.