Error 500 in product edit page
-
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 putif ( $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)
- The topic ‘Error 500 in product edit page’ is closed to new replies.