Critical error (Fatal Error) after upgrading the plugin to version 7.x
-
Good day,
I would like to ask for help. After upgrading your website-llms-txt plugin to the latest version, a fatal error has occurred which makes it impossible to edit products in WooCommerce.
Immediately after updating your plugin, any attempt to save or update a product in the admin panel ends up displaying the critical error ‘Fatal error’. Prior to the update, everything was working fine. After restoring previous versions prior to 7.x, everything is working fine again.
Error logs
Below is the full error log that appears after following the steps above:
Fatal error: Uncaught Error: Call to a member function has_weight() on null in /sciezka-do-strony/wp-content/plugins/woocommerce/includes/wc-template-functions.php:3771 Stack trace: 0 /sciezka-do-strony/wp-includes/class-wp-hook.php(324): wc_display_product_attributes(NULL) 1 /sciezka-do-strony/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 2 /sciezka-do-strony/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 3 /sciezka-do-strony/wp-content/plugins/woocommerce/templates/single-product/tabs/additional-information.php(30): do_action(‘woocommerce_pro…’, NULL) 4 /sciezka-do-strony/wp-content/plugins/woocommerce/includes/wc-core-functions.php(346): include(‘/sciezka-do-strony/wp-content/plugins/woocommerce/templates/single-product/tabs/additional-information.php’) 5 /sciezka-do-strony/wp-content/plugins/woocommerce/includes/wc-template-functions.php(2088): wc_get_template(‘single-product/…’) 6 /sciezka-do-strony/wp-content/themes/Divi/includes/builder/module/woocommerce/Tabs.php(419): woocommerce_product_additional_information_tab(‘additional_info…’, Array) 7 /sciezka-do-strony/wp-content/themes/Divi/includes/builder/module/woocommerce/Tabs.php(257): ET_Builder_Module_Woocommerce_Tabs::get_tabs(Array) 8 /sciezka-do-strony/wp-content/themes/Divi/includes/builder/module/Tabs.php(218): ET_Builder_Module_Woocommerce_Tabs->get_tabs_content() 9 /sciezka-do-strony/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3441): ET_Builder_Module_Tabs->render(Array, ”, ‘et_pb_wc_tabs’, ”, ”, ”, ”, ”) 10 /sciezka-do-strony/wp-includes/shortcodes.php(434): ET_Builder_Element->_render(Array, ”, ‘et_pb_wc_tabs’) 11 [internal function]: do_shortcode_tag(Array) 12 /sciezka-do-strony/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\[(\[?)(et_pb_…’, ‘do_shortcode_ta…’, ‘[et_pb_wc_tabs …’) 13 /sciezka-do-strony/wp-content/themes/Divi/includes/builder/main-structure-elements.php(3784): do_shortcode(‘[et_pb_wc_tabs …’) 14 /sciezka-do-strony/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3441): ET_Builder_Column->render(Array, ‘[et_pb_wc_tabs …’, ‘et_pb_column’, ”, ”, ”, ”, ”) 15 /sciezka-do-strony/wp-includes/shortcodes.php(434): ET_Builder_Element->_render(Array, ‘[et_pb_wc_tabs …’, ‘et_pb_column’) 16 [internal function]: do_shortcode_tag(Array) 17 /sciezka-do-strony/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\[(\[?)(et_pb_…’, ‘do_shortcode_ta…’, ‘[et_pb_column t…’) 18 /sciezka-do-strony/wp-content/themes/Divi/includes/builder/main-structure-elements.php(2274): do_shortcode(‘[et_pb_column t…’) 19 /sciezka-do-strony/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3441): ET_Builder_Row->render(Array, ‘[et_pb_column t…’, ‘et_pb_row’, ”, ”, ”, ”, ”) 20 /sciezka-do-strony/wp-includes/shortcodes.php(434): ET_Builder_Element->_render(Array, ‘[et_pb_column t…’, ‘et_pb_row’) 21 [internal function]: do_shortcode_tag(Array) 22 /sciezka-do-strony/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\[(\[?)(et_pb_…’, ‘do_shortcode_ta…’, ‘[et_pb_row _bui…’) 23 /sciezka-do-strony/wp-content/themes/Divi/includes/builder/main-structure-elements.php(1606): do_shortcode(‘[et_pb_row _bui…’) 24 /sciezka-do-strony/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3441): ET_Builder_Section->render(Array, ‘[et_pb_row _bui…’, ‘et_pb_section’, ”, ”, ”, ”, ”) 25 /sciezka-do-strony/wp-includes/shortcodes.php(434): ET_Builder_Element->_render(Array, ‘[et_pb_row _bui…’, ‘et_pb_section’) 26 [internal function]: do_shortcode_tag(Array) 27 /sciezka-do-strony/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\[(\[?)(divili…’, ‘do_shortcode_ta…’, ‘[et_pb_section …’) 28 /sciezka-do-strony/wp-content/plugins/website-llms-txt/includes/class-llms-generator.php(585): do_shortcode(‘[et_pb_section …’) 29 /sciezka-do-strony/wp-includes/class-wp-hook.php(324): LLMS_Generator->handle_post_update(90, Object(WP_Post), true) 30 /sciezka-do-strony/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 31 /sciezka-do-strony/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 32 /sciezka-do-strony/wp-includes/post.php(5110): do_action(‘save_post’, 90, Object(WP_Post), true) 33 /sciezka-do-strony/wp-includes/post.php(5212): wp_insert_post(Array, false, true) 34 /sciezka-do-strony/wp-admin/includes/post.php(453): wp_update_post(Array) 35 /sciezka-do-strony/wp-admin/post.php(227): edit_post() 36 {main} thrown in /sciezka-do-strony/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 3771
It appears that the new version of the plugin has a compatibility problem with WooCommerce and/or the Divi theme. I would be grateful if you could analyse the problem and let me know if you plan to release a suitable fix.Thank you in advance for your help.
The topic ‘Critical error (Fatal Error) after upgrading the plugin to version 7.x’ is closed to new replies.