Error with shortcode
-
Fatal error: Uncaught Error: Call to a member function get_attributes() on bool in /wp-content/plugins/size-chart-product-for-woocommerce/main/frontend/scpfw_front.php:22 Stack trace: #0 /wp-content/plugins/size-chart-product-for-woocommerce/main/frontend/scpfw_front.php(895): scpfw_get_chart_ids(‘924’) #1 [internal function]: scpfw_custom_shortcode_button(Array, ”, ‘scpfw_buttons’) #2 /wp-content/themes/Divi/includes/builder-5/server/Packages/Shortcode/ShortcodeUtils.php(138): call_user_func(‘scpfw_custom_sh…’, Array, ”, ‘scpfw_buttons’) #3 /wp-includes/shortcodes.php(434): ET\Builder\Packages\Shortcode\ShortcodeUtils::shortcode_wrapper(Array, ”, ‘scpfw_buttons’) #4 [internal function]: do_shortcode_tag(Array) #5 /wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(scpfw_…’, ‘do_shortcode_ta…’, ‘<div class=”et-…’) #6 /wp-includes/class-wp-hook.php(324): do_shortcode(‘<div class=”et-…’) #7 /wp-includes/plugin.php(205): WP_Hook->apply_filters(‘<div class=”et-…’, Array) #8 /wp-content/themes/Divi/includes/builder-5/server/FrontEnd/BlockParser/BlockParserStore.php(109): apply_filters(‘the_content’, ‘Semi-formal wit…’) #9 /wp-content/themes/Divi/includes/builder-5/server/Packages/ModuleLibrary/WooCommerce/ProductDescription/WooCommerceProductDescriptionModule.php(566): ET\Builder\FrontEnd\BlockParser\BlockParserStore::render_inner_content(‘Semi-formal wit…’) #10 /wp-content/themes/Divi/includes/builder-5/server/Packages/ModuleLibrary/WooCommerce/ProductDescription/WooCommerceProductDescriptionModule.php(90): ET\Builder\Packages\ModuleLibrary\WooCommerce\ProductDescription\WooCommerceProductDescriptionModule::get_description(853, ‘description’) #11 [internal function]: ET\Builder\Packages\ModuleLibrary\WooCommerce\ProductDescription\WooCommerceProductDescriptionModule::render_callback(Array, ”, Object(WP_Block), Object(ET\Builder\Packages\Module\Layout\Components\ModuleElements\ModuleElements), Array) #12 /wp-content/themes/Divi/includes/builder-5/server/Packages/Module/Options/Loop/LoopUtils.php(2574): call_user_func(Array, Array, ”, Object(WP_Block), Object(ET\Builder\Packages\Module\Layout\Components\ModuleElements\ModuleElements), Array) #13 [internal function]: ET\Builder\Packages\Module\Options\Loop\LoopUtils::ET\Builder\Packages\Module\Options\Loop\{closure}(Array, ”, Object(WP_Block), Object(ET\Builder\Packages\Module\Layout\Components\ModuleElements\ModuleElements), Array) #14 /wp-content/themes/Divi/includes/builder-5/server/Packages/ModuleLibrary/ModuleRegistration.php(490): call_user_func(Object(Closure), Array, ”, Object(WP_Block), Object(ET\Builder\Packages\Module\Layout\Components\ModuleElements\ModuleElements), Array) #15 /wp-includes/class-wp-block.php(586): ET\Builder\Packages\ModuleLibrary\ModuleRegistration::ET\Builder\Packages\ModuleLibrary\{closure}(Array, ”, Object(WP_Block)) #16 /wp-includes/class-wp-block.php(566): WP_Block->render() #17 /wp-includes/class-wp-block.php(566): WP_Block->render() #18 /wp-includes/class-wp-block.php(566): WP_Block->render() #19 /wp-includes/class-wp-block.php(566): WP_Block->render() #20 /wp-includes/blocks.php(2359): WP_Block->render() #21 /wp-includes/blocks.php(2431): render_block(Array) #22 /wp-content/themes/Divi/includes/builder/core.php(344): do_blocks(‘<!– wp:divi/pl…’) #23 /wp-includes/class-wp-hook.php(324): et_builder_render_layout_do_blocks(‘<!– wp:divi/pl…’) #24 /wp-includes/plugin.php(205): WP_Hook->apply_filters(‘<!– wp:divi/pl…’, Array) #25 /wp-content/themes/Divi/includes/builder/core.php(286): apply_filters(‘et_builder_rend…’, ‘<!– wp:divi/pl…’) #26 /wp-content/themes/Divi/includes/builder-5/server/ThemeBuilder/Layout.php(121): et_builder_render_layout(‘<!– wp:divi/pl…’) #27 /wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend.php(398): ET\Builder\ThemeBuilder\Layout::render(‘et_body_layout’, 762) #28 /wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend-body-template.php(10): et_theme_builder_frontend_render_body(762, true, 763) #29 /wp-includes/template-loader.php(106): include(‘/home/mm…’) #30 /wp-blog-header.php(19): require_once(‘/home/mm…’) #31 /index.php(17): require(‘/home/mm…’) #32 {main} thrown in /wp-content/plugins/size-chart-product-for-woocommerce/main/frontend/scpfw_front.php on line 22
There has been a critical error on this website.
I receive this error while trying to use the shortcode the display the size chart button in the description section. I am using the Divi theme and have a custom layout for the products.
You must be logged in to reply to this topic.