• Resolved lmnoconsulting

    (@lmnoconsulting)


    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 37

    This error occurs if i embed the product block into a post.

    standalone product works ok.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support krzysztofskorupa

    (@krzysztofskorupa)

    Hi,
    thank you very much for your contact.

    I have forwarded the application to our developer.

    I will inform you if a fix comes out that will rule out this problem.

    Will you please tell me if the error affects the correct operation of the plugin, or if it only appears an error in the logs?
    Greetings,

    Plugin Support krzysztofskorupa

    (@krzysztofskorupa)

    Hi,
    thank you for your patience.
    The Flexible Product Fields plugin supports products, not posts containing a product block.

    I have recorded such a request to our idea base and if such a feature appears, then let me get in touch.

    Regards,

    Thread Starter lmnoconsulting

    (@lmnoconsulting)

    Thank you, will adjust our use accordingly for now.

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.