Fatal error with Elementor
-
Thanks for this plugin.
Following on from this error when installing Elementor and Essential Addons for Contact Form 7, the Elementor builder and Elementor pages using the CF7 shortcode on the front end return a fatal error:[09-Jul-2025 05:46:12 UTC] PHP Warning: include_once(essential-addons-for-contact-form-7/includes/elementor/ContactForm.php): Failed to open stream: No such file or directory in essential-addons-for-contact-form-7/includes/Elementor.php on line 40
[09-Jul-2025 05:46:12 UTC] PHP Warning: include_once(): Failed opening 'essential-addons-for-contact-form-7/includes/elementor/ContactForm.php' for inclusion (include_path='') in essential-addons-for-contact-form-7/includes/Elementor.php on line 40
[09-Jul-2025 05:46:12 UTC] PHP Fatal error: Uncaught Error: Class "EACF7\Contact_Form_Widget" not found in essential-addons-for-contact-form-7/includes/Elementor.php:47Looking at the register_widgets function there’s two includes for files that do not exist within the plugin.
includes/elementor/ContactForm.php
includes/elementor/PopupForm.php
It looks like these were designed to have the Contact_Form_Widget class that’s later referenced and causing the fatal error./**
* Register Widget
*/
public function register_widgets($widgets_manager) {
$features = eacf7_get_settings('features');
$active_popup_form = in_array('popup-form', $features);
include_once EACF7_INCLUDES . '/elementor/ContactForm.php';
if( $active_popup_form ){
include_once EACF7_INCLUDES . '/elementor/PopupForm.php';
}
if (method_exists($widgets_manager, 'register')) {
$widgets_manager->register(new Contact_Form_Widget());
// popup form
if ($active_popup_form) {
$widgets_manager->register(new Popup_Form_Widget());
}
} else {
$widgets_manager->register_widget_type(new Contact_Form_Widget());
// popup form
if( $active_popup_form){
$widgets_manager->register_widget_type(new Popup_Form_Widget());
}
}
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Fatal error with Elementor’ is closed to new replies.