Title: Plugin bug
Last modified: February 21, 2022

---

# Plugin bug

 *  Resolved [serge rauber](https://wordpress.org/support/users/kalyx/)
 * (@kalyx)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/plugin-bug-10/)
 * I have this error
 * 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 …./wp-content/plugins/
   facebook-for-woocommerce/includes/Admin.php on line 1358
 * it’s breaking BO on product edit page.
 * Solved by adding **if…**
 *     ```
       if ( $product instanceof \WC_Product ) {
       \SkyVerge\WooCommerce\Facebook\Admin\Products::render_google_product_category_fields_and_enhanced_attributes( $product );
       }
       ```
   
 * please update
 * thanks
    -  This topic was modified 4 years, 2 months ago by [serge rauber](https://wordpress.org/support/users/kalyx/).
    -  This topic was modified 4 years, 2 months ago by [serge rauber](https://wordpress.org/support/users/kalyx/).
    -  This topic was modified 4 years, 2 months ago by [serge rauber](https://wordpress.org/support/users/kalyx/).
    -  This topic was modified 4 years, 2 months ago by [serge rauber](https://wordpress.org/support/users/kalyx/).

Viewing 1 replies (of 1 total)

 *  [abwaita a11n](https://wordpress.org/support/users/abwaita/)
 * (@abwaita)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/plugin-bug-10/#post-15390679)
 * Hi [@kalyx](https://wordpress.org/support/users/kalyx/),
 * Thanks a lot for reporting this and also sharing the fix that worked for you.
 * I’ve looked back at previous similar reports and came across a thread you created
   some time ago – [https://wordpress.org/support/topic/error-500-in-product-edit-page/](https://wordpress.org/support/topic/error-500-in-product-edit-page/)
 * Just to check, were you able to proceed to create a report for this on GitHub–
   [https://github.com/woocommerce/facebook-for-woocommerce/](https://github.com/woocommerce/facebook-for-woocommerce/)?
   If not, it would be great as you’d be able to share with our developers how to
   recreate the issue and share the workaround there as well.
 * Thanks.

Viewing 1 replies (of 1 total)

The topic ‘Plugin bug’ is closed to new replies.

 * ![](https://ps.w.org/facebook-for-woocommerce/assets/icon.svg?rev=3469606)
 * [Meta for WooCommerce](https://wordpress.org/plugins/facebook-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [abwaita a11n](https://wordpress.org/support/users/abwaita/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/plugin-bug-10/#post-15390679)
 * Status: resolved