• Hi

    That’s why I see in my log :

    AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to SkyVerge\\WooCommerce\\Facebook\\Admin\\Products::render_google_product_category_fields_and_enhanced_attributes() must be an instance of WC_Product, bool given, called in /xxx/wp-content/plugins/facebook-for-woocommerce/includes/Admin.php on line 1358 and defined in /xxx/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Products.php:46\nStack trace:\n#0 /xxx/wp-content/plugins/facebook-for-woocommerce/includes/Admin.php(1358): SkyVerge\\WooCommerce\\Facebook\\Admin\\Products::render_google_product_category_fields_and_enhanced_attributes()\n#1 /xxx/wp-includes/class-wp-hook.php(303): SkyVerge\\WooCommerce\\Facebook\\Admin->add_product_settings_tab_content()\n#2 /xxx/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()\n#3 /...', referer: https://www.vinovalie-boutique.com/wp-admin/edit.php?post_type=product

    Thanks

    Solution:
    Just put

    if ( $product instanceof \WC_Product ) {
    						\SkyVerge\WooCommerce\Facebook\Admin\Products::render_google_product_category_fields_and_enhanced_attributes( $product );
    					}

    in facebook-for-woocommerce/includes/Admin.php(1358)

    • This topic was modified 2 years, 11 months ago by serge rauber.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Error 500 in product edit page’ is closed to new replies.