Fatal Error with BigHearts Core Plugin
-
Hi,
Your widget “Events Widget for Elementor” is causing fatal errors on my site.
-
Hi there,
Sorry for the inconvenience.
Could you please share the screen recording of the complete scenario of the issue that you are facing so that we can create the same scenario on our end and test the case?
Additionally, it would be better if you could share the list of plugins and theme on your site.
ThanksHi,
Can I just share the full error log so you can debug.Replicating it requires you to have the same theme and plugin:
Theme: BigHearts
Plugin: BigHearts CoreThe conflict is directly from your plugin with the above.
Error Log:
Warning: Trying to access array offset on value of type null in /home/stmichael/staging.stmichaelshospicecharity.com/wp-content/plugins/elementor/includes/base/controls-stack.php on line 1158
Fatal error: Uncaught TypeError: Elementor\Controls_Stack::sanitize_settings(): Argument #1 ($settings) must be of type array, null given, called in /home/stmichael/staging.stmichaelshospicecharity.com/wp-content/plugins/elementor/includes/base/controls-stack.php on line 1158 and defined in /home/stmichael/staging.stmichaelshospicecharity.com/wp-content/plugins/elementor/includes/base/controls-stack.php:2514 Stack trace: #0 /home/stmichael/staging.stmichaelshospicecharity.com/wp-content/plugins/elementor/includes/base/controls-stack.php(1158): Elementor\Controls_Stack->sanitize_settings() #1 /home/stmichael/staging.stmichaelshospicecharity.com/wp-content/plugins/elementor/includes/base/controls-stack.php(2259): Elementor\Controls_Stack->get_data() #2 /home/stmichael/staging.stmichaelshospicecharity.com/wp-content/plugins/elementor/core/base/base-object.php(142): Elementor\Controls_Stack->get_init_settings() #3 /home/stmichael/staging.stmichaelshospicecharity.com/wp-content/plugins/elementor/core/base/base-object.php(40): Elementor\Core\Base\Base_Object->ensure_settings() #4 /home/stmichael/staging.stmichaelshospicecharity.com/wp-content/plugins/elementor/includes/base/controls-stack.php(1172): Elementor\Core\Base\Base_Object->get_settings() #5 /home/stmichael/staging.stmichaelshospicecharity.com/wp-content/plugins/elementor/includes/base/controls-stack.php(1263): Elementor\Controls_Stack->get_parsed_dynamic_settings() #6 /home/stmichael/staging.stmichaelshospicecharity.com/wp-content/plugins/events-widgets-for-elementor-and-the-events-calendar/widgets/ectbe-widget.php(63): Elementor\Controls_Stack->get_settings_for_display() #7 /home/stmichael/staging.stmichaelshospicecharity.com/wp-content/plugins/elementor/includes/base/element-base.php(170): ECTBE_Widget->get_style_depends() #8 /home/stmichael/staging.stmichaelshospicecharity.com/wp-content/plugins/elementor/includes/managers/widgets.php(634): Elementor\Element_Base->enqueue_styles() #9 /home/stmichael/staging.stmichaelshospicecharity.com/wp-content/themes/bighearts/core/class/dynamic-styles.php(101): Elementor\Widgets_Manager->enqueue_widgets_styles() #10 /home/stmichael/staging.stmichaelshospicecharity.com/wp-includes/class-wp-hook.php(324): BigHearts_Dynamic_Styles->get_elementor_css_theme_builder() #11 /home/stmichael/staging.stmichaelshospicecharity.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #12 /home/stmichael/staging.stmichaelshospicecharity.com/wp-includes/plugin.php(517): WP_Hook->do_action() #13 /home/stmichael/staging.stmichaelshospicecharity.com/wp-includes/script-loader.php(2272): do_action() #14 /home/stmichael/staging.stmichaelshospicecharity.com/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts() #15 /home/stmichael/staging.stmichaelshospicecharity.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #16 /home/stmichael/staging.stmichaelshospicecharity.com/wp-includes/plugin.php(517): WP_Hook->do_action() #17 /home/stmichael/staging.stmichaelshospicecharity.com/wp-includes/general-template.php(3064): do_action() #18 /home/stmichael/staging.stmichaelshospicecharity.com/wp-content/themes/bighearts/header.php(20): wp_head() #19 /home/stmichael/staging.stmichaelshospicecharity.com/wp-includes/template.php(810): require_once(‘/home/stmichael…’) #20 /home/stmichael/staging.stmichaelshospicecharity.com/wp-includes/template.php(745): load_template() #21 /home/stmichael/staging.stmichaelshospicecharity.com/wp-includes/general-template.php(48): locate_template() #22 /home/stmichael/staging.stmichaelshospicecharity.com/wp-content/themes/bighearts/page.php(21): get_header() #23 /home/stmichael/staging.stmichaelshospicecharity.com/wp-includes/template-loader.php(106): include(‘/home/stmichael…’) #24 /home/stmichael/staging.stmichaelshospicecharity.com/wp-blog-header.php(19): require_once(‘/home/stmichael…’) #25 /home/stmichael/staging.stmichaelshospicecharity.com/index.php(17): require(‘/home/stmichael…’) #26 {main} thrown in /home/stmichael/staging.stmichaelshospicecharity.com/wp-content/plugins/elementor/includes/base/controls-stack.php on line 2514
Hi there,
Sorry for the late reply.
We have tested the issue with your mentioned theme, and on our end the issue persists when we activate the Elementor plugin. Please try to deactivate the plugins one by one; also, please try once to change the theme on your site.
Thanks & RegardsHi,
I am also testing with Elementor (as its an Elementor-based plugin), it works fine until I activate my themes plugin, BigHeartsCore.
The issue is coming from your plugin, throwing the error.Hi @absolutewebsites
Sorry for the misunderstanding.
Please try once to deactivate our plugin (Events Widgets For Elementor And The Events Calendar) only and check this issue, it might be an issue with your theme.
ThanksHi,
Yes that is the problem your plugin. When I deactivate only your plugin, everything else works fine.
When I activate your plugin, the website breaks and I get a fatal error.
Kind Regards,
Jack
Hi @absolutewebsites
Thank you for reaching out. Based on our testing, this issue does not appear to be related to our plugin. We have tested the same scenario with your theme and encountered the issue even when our plugin was not active. To provide more details, we have recorded a video demonstrating our findings, which you can review here. It would be better if you could share the screen recording at your end.
Moreover, please try once to change line number 51, 63 and 727 of ectbe-widget.php file, which lies under widget folder of the plugin (events-widgets-for-elementor-and-the-events-calendar>>widgets>>ectbe-widget.php) from$settings = $this->get_settings_for_display();
to
$settings = $this->get_settings_for_display() ?? [];You can refer to these screenshots for references.
Screenshot 1
Screenshot 2
I hope this will help you.
Thanks & RegardsHi,
I updated the PHP lines you suggested however I still get a fatal error.
The website works completely fine if I have your plugin deactivated, as soon as I activate it, I get a fatal error.
Hi,
Thank you for your update. Since we are unable to replicate this issue on our end, we recommend moving this conversation to our support system for better tracking and troubleshooting.
ThanksSame problem here, seems to be related to your plugin for sure.
Though it has some conflits with elementor. Because when elementor plugin is deactivated and Bighearts activated it doesn’t give the fatal error. Your site is not looking very well either, but it does not have the fatal error screen.
You guys are going to look for a fix?
-
This reply was modified 3 weeks ago by
jeronimus1.
-
This reply was modified 3 weeks ago by
jeronimus1.
Hi there,
The conflict was caused by the Bigheart theme, which may be interfering with Elementor’s settings loading process or overriding certain styles.To ensure the styles load correctly, please replace the
get_style_depends
function in theectbe-widget.php
file (events-widgets-for-elementor-and-the-events-calendar >> widgets >> ectbe-widget.php
) with the following:public function get_style_depends() {
? ? return array( 'ectbe-calendar-main-css', 'ectbe-custom-css', 'ectbe-list-css', 'ectbe-minimal-list', 'ectbe-common-styles' );
}For reference, please check the attached screenshot.
Additionally, we recommend reviewing your theme settings, as there may be an option to properly load Elementor settings on the page.
Let us know if you are still facing the issue.
Thanks & Regards
-
This reply was modified 3 weeks ago by
- You must be logged in to reply to this topic.