PHP Fatal error: Uncaught TypeError: WPDesk\FPF\Free\Service
-
PHP Fatal error: Uncaught TypeError: WPDesk\FPF\Free\Service\TemplateFinder\TemplateFinder::find(): Argument #1 ($product) must be of type WC_Product, false given, called in /srv/htdocs/wp-content/plugins/flexible-product-fields/classes/fpf-product.php on line 130 and defined in /srv/htdocs/wp-content/plugins/flexible-product-fields/src/Service/TemplateFinder/TemplateFinder.php:37 Stack trace: #0 /srv/htdocs/wp-content/plugins/flexible-product-fields/classes/fpf-product.php(130): WPDesk\FPF\Free\Service\TemplateFinder\TemplateFinder->find(false, false) #1 /srv/htdocs/wp-content/plugins/flexible-product-fields/classes/fpf-cart.php(340): FPF_Product->get_translated_fields_for_product(false) #2 /wordpress/core/6.7.1/wp-includes/class-wp-hook.php(326): FPF_Cart->woocommerce_add_cart_item_data(Array, 798, 0) #3 /wordpress/core/6.7.1/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #4 /wordpress/plugins/woocommerce/9.4.3/includes/class-wc-cart.php(1146): apply_filters('woocommerce_add...', Array, 798, 0, 1) #5 /wordpress/plugins/woocommerce/9.4.3/includes/class-wc-form-handler.php(842): WC_Cart->add_to_cart(798, 1) #6 /wordpress/plugins/woocommerce/9.4.3/includes/class-wc-form-handler.php(814): WC_Form_Handler::add_to_cart_handler_simple(798) #7 /wordpress/core/6.7.1/wp-includes/class-wp-hook.php(324): WC_Form_Handler::add_to_cart_action('') #8 /wordpress/core/6.7.1/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #9 /wordpress/core/6.7.1/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #10 /wordpress/core/6.7.1/wp-settings.php(726): do_action('wp_loaded') #11 /srv/htdocs/wp-config.php(84): require_once('/wordpress/core...') #12 /wordpress/core/6.7.1/wp-load.php(55): require_once('/srv/htdocs/wp-...') #13 /wordpress/core/6.7.1/wp-blog-header.php(13): require_once('/wordpress/core...') #14 /wordpress/core/6.7.1/index.php(17): require('/wordpress/core...') #15 {main} thrown in /srv/htdocs/wp-content/plugins/flexible-product-fields/src/Service/TemplateFinder/TemplateFinder.php on line 37This error occurs if i embed the product block into a post.
standalone product works ok.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘PHP Fatal error: Uncaught TypeError: WPDesk\FPF\Free\Service’ is closed to new replies.