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!!!!!
Benoit David
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.*:
-
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' );
-
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
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
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
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
Thank you Stephen, it worked.
Benoit David