WoodMartW
WoodMart
Aug 20

Fatal Error With Elementor and Elementor PRO

Hello XTemos Support,I am reporting a reproducible PHP Fatal Error in the WoodMart Elementor integration.The error occurs in:/wp-content/themes/woodmart/inc/integrations/elementor/helpers.phpSpecifically, in the woodmart_is_elementor_full_width() function.The fatal error is:PHP Fatal error: Uncaught Error: Call to a member function get_conditions_manager() on nullThe relevant code currently calls:\ElementorPro\Plugin::instance()->modules_manager->get_modules('theme-builder')->get_conditions_manager();In the affected request, get_modules('theme-builder') returns null, and WoodMart immediately calls get_conditions_manager() on that null value.This causes the frontend request to terminate with a PHP Fatal Error.Environment:WordPress: 7.0WooCommerce: 10.9.1Elementor: 4.1.4Elementor Pro: 4.1.1PHP: 8.4Theme: WoodMartTheme Core: WoodMart CoreStack trace begins with:woodmart_is_elementor_full_width()followed by:XTS\Layout->get_main_container_class()woodmart_page_top_part()header.phpThe same pattern also exists in woodmart_elementor_has_location() in the same file.As a temporary local workaround, I added null/object/method checks around the Theme Builder and Conditions Manager access so that WoodMart falls back to the existing WordPress page-template value instead of triggering a fatal error.I strongly recommend adding an appropriate null/availability check in the official WoodMart release so that a missing or not-yet-initialized Elementor Pro Theme Builder module cannot cause a frontend PHP Fatal Error.Please investigate the compatibility/initialization timing between the current WoodMart Elementor integration and the current Elementor Pro Theme Builder module, and include the fix in a future WoodMart update.Thank you.
PendingPending