HELP! Corrupting Events when saving!

WordPress Event Management, Calendars & Registration Forums Report A Bug HELP! Corrupting Events when saving!

This topic contains 5 replies, has 2 voices, and was last updated by  Benoit David 9 years, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18646

    Hi,

    I also reported this issue at:
    https://github.com/stephenharris/Event-Organiser/issues/289

    When I save an event, this has happened a few times now (not every time I save):

    I work on an event, and when saving, i loose my ability to see all the information about the page (can’t use Visual Composer nor Visual view, just TEXT, and th following message appears on the right side of the screen:
    Fatal error: Class ‘EO_Booking_Form_Element_View’ not found in /home/katalyst/public_html/wp/wp-content/plugins/event-organiser-pro/includes/form-customiser/class-eo-booking-form-elements-view.php on line 56

    PLEASE HELP!!!!!

    this is what I get

    when I should get this

    Benoit David
    #18647

    Hi Benoit,

    The error suggests that is EO_Booking_Form_Element_View is not defined – which leads me to think you have a corrupted install. Assuming you have 1.10.*:

    1. Double check the event-organiser-pro.php file has the line:

      require_once( EVENT_ORGANISER_PRO_DIR . 'includes/form-customiser/class-eo-booking-form-view.php' );
      
    2. That the file includes/form-customiser/class-eo-booking-form-view.php contains EO_Booking_Form_Element_View

    That said, I’m concerned that those classes are being called at all – they are used for the front-end display of the fields only – so another plug-in/theme must be doing something to invoke them.

    Stephen Harris
    #18648

    Come to think of it – you can ignore my last comment, after looking at the screenshot it seems you have an SEO plug-in. This is ‘behind the scenes’ rendering the page, presumably to analyse the content, so this explains why those classes are being invoked.

    The fact they are not defined is an entirely seperate issue and suggests that the install is corrupted. You might want to try re-installing the plug-in. I’d recommend against clicking ‘uninstall’ as this will delete data, instead remove the Pro plug-in via FTP and then re-upload it.

    You can download a fresh copy by logging into http://wp-event-organiser.com/my-account and viewing your purchase history.

    Stephen Harris
    #18653

    I replaced the PRO plugin, still a problem. It looks like you,re right. There seems to be a conflict with the YOAST SEO plugin that I’m using. Do you have a recommendation for a SEO plugin?

    And, do I need to replace the other event-organiser plug-in? I fI dont want to uninstall it, where do I get the .zip package?

    Thanks!

    Benoit David
    #18654

    Benoit,

    I think I’ve identified the problem. I hadn’t noticed this for some reason at first, but the View class is not loaded on admin pages:

    if ( ! is_admin() ) {
        require_once( EVENT_ORGANISER_PRO_DIR . 'includes/form-customiser/class-eo-booking-form-element-view.php' );
    }
    

    If you replace that (in event-organiser-pro.php) with simply

    require_once( EVENT_ORGANISER_PRO_DIR . 'includes/form-customiser/class-eo-booking-form-element-view.php' );
    

    Then it should work.

    I think really I ought to be using auto-loading here, which I will do for the 1.11.0 release.

    Stephen Harris
    #18668

    Thank you Stephen, it worked.

    Benoit David
Viewing 6 posts - 1 through 6 (of 6 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.