Conversation
supportShortly after installation I get this: Fatal error: Class ‘civievent_Widget’ not found in wordpress/wp-content/plugins/civievent-widget/civievent-single-widget.php on line 71 Civicrm 4.7.1 is installed working fine. Any suggestions? https://wordpress.org/plugins/civievent-widget/
Hmm–no idea. Is anything available when you go to your widgets page?
Yes the backend admin pages work, and I can drag and drop the civievent widget into various locations. The config dialog opens up in the widget. It only fails on the front end with the message above on a white screen. I hacked the code a little to display the output of get_declared_classes(), and civievent_Widget is clearly there. So as a temporary workaround I have commented out the single widget references in two places: // require_once 'civievent-single-widget.php'; add_action( 'widgets_init', function() { register_widget( 'civievent_Widget' ); // register_widget( 'civievent_single_Widget' ); wp_register_style( 'civievent-widget-Stylesheet', plugins_url( 'civievevent-widget.css', __FILE__ ) ); }); And now the rest of it works. Not a solution, but it will be ok until a solution is found. I don’t need the single widget anyway.
Hmm–no idea. Is anything available when you go to your widgets page?
Yes the backend admin pages work, and I can drag and drop the civievent widget into various locations. The config dialog opens up in the widget. It only fails on the front end with the message above on a white screen. I hacked the code a little to display the output of get_declared_classes(), and civievent_Widget is clearly there. So as a temporary workaround I have commented out the single widget references in two places: // require_once 'civievent-single-widget.php'; add_action( 'widgets_init', function() { register_widget( 'civievent_Widget' ); // register_widget( 'civievent_single_Widget' ); wp_register_style( 'civievent-widget-Stylesheet', plugins_url( 'civievevent-widget.css', __FILE__ ) ); }); And now the rest of it works. Not a solution, but it will be ok until a solution is found. I don’t need the single widget anyway.