Fatal Error Uncaught TypeError
-
I use WordPress and the Facebook for WooCommerce plugin. There has been a problem with the plugin for 3 days. It leads to a Fatal Error. As a result, the products are not transmitted correctly and it is no longer possible to edit the product in the backend.
WordPress-Version 6.1.1
Active Theme: Woostify (Version 2.1.9)
Plugin: Facebook for WooCommerce (Version 3.0.9)
PHP-Version 7.4.33This is the error shown in product editing. all elements below this section are cut off.
Fatal error: Uncaught TypeError: Argument 1 passed to WooCommerce\Facebook\Admin\Products::render_google_product_category_fields_and_enhanced_attributes() must be an instance of WC_Product, bool given, called in /homepages/30/d856830569/htdocs/app942528086/wp-content/plugins/facebook-for-woocommerce/includes/Admin.php on line 1261 and defined in /homepages/30/d856830569/htdocs/app942528086/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Products.php:43 Stack trace: #0 /homepages/30/d856830569/htdocs/app942528086/wp-content/plugins/facebook-for-woocommerce/includes/Admin.php(1261): WooCommerce\Facebook\Admin\Products::render_google_product_category_fields_and_enhanced_attributes(false) #1 /homepages/30/d856830569/htdocs/app942528086/wp-includes/class-wp-hook.php(308): WooCommerce\Facebook\Admin->add_product_settings_tab_content(”) #2 /homepages/30/d856830569/htdocs/app942528086/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #3 /homepages/30/d856830569/htdocs/app942528086/wp-includes/plu in /homepages/30/d856830569/htdocs/app942528086/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Products.php on line 43
-
This topic was modified 3 years, 3 months ago by
faehrliebe.
-
This topic was modified 3 years, 3 months ago by
-
Hi @faehrliebe
Thanks for reaching out!
I understand that you are receiving the error logs above when editing your products.
I’d like to understand your site properly, please share your System Status Report that you can find via
WooCommerce > Status. SelectGet system reportand thenCopy for support. Once you’ve done that, you can paste it into your reply here.If you could also provide the fatal error logs (if any) under
WooCommerce > Status > Logs.Thanks!
Hi, thanks for you reply.
please find the system status report here:
WordPress Environment WordPress address (URL): https://faehrliebe.de Site address (URL): https://faehrliebe.de WC Version: 7.3.0 REST API Version: ✔</img> 7.3.0 WC Blocks Version: ✔</img> 9.1.5 Action Scheduler Version: ✔</img> 3.4.0 Log Directory Writable: ✔</img> WP Version: 6.1.1 WP Multisite: – WP Memory Limit: 1 GB WP Debug Mode: – WP Cron: ✔</img> Language: de_DE External object cache: – Server Environment Server Info: Apache PHP Version: 7.4.33 PHP Post Max Size: 128 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.64.0 OpenSSL/1.1.1n SUHOSIN Installed: – MySQL Version: 5.7.38-log Max Upload Size: 128 MB Default Timezone is UTC: ✔</img> fsockopen/cURL: ✔</img> SoapClient: ✔</img> DOMDocument: ✔</img> GZip: ✔</img> Multibyte String: ✔</img> Remote Post: ✔</img> Remote Get: ✔</img> Database WC Database Version: 7.3.0 WC Database Prefix: pwuexh2i8i Datenbank-Gesamtgröße: 14.69MB Datenbank-Datengröße: 12.20MB Datenbank-Indexgröße: 2.49MB pwuexh2i8iwoocommerce_sessions: Daten: 0.09MB + Index: 0.02MB + Engine InnoDB pwuexh2i8iwoocommerce_api_keys: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8iwoocommerce_attribute_taxonomies: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8iwoocommerce_downloadable_product_permissions: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB pwuexh2i8iwoocommerce_order_items: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8iwoocommerce_order_itemmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8iwoocommerce_tax_rates: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB pwuexh2i8iwoocommerce_tax_rate_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8iwoocommerce_shipping_zones: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB pwuexh2i8iwoocommerce_shipping_zone_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8iwoocommerce_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB pwuexh2i8iwoocommerce_payment_tokens: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8iwoocommerce_payment_tokenmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8iwoocommerce_log: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8iactionscheduler_actions: Daten: 0.11MB + Index: 0.13MB + Engine InnoDB pwuexh2i8iactionscheduler_claims: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8iactionscheduler_groups: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8iactionscheduler_logs: Daten: 0.08MB + Index: 0.03MB + Engine InnoDB pwuexh2i8iaioseo_cache: Daten: 0.13MB + Index: 0.03MB + Engine InnoDB pwuexh2i8iaioseo_notifications: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB pwuexh2i8iaioseo_posts: Daten: 0.06MB + Index: 0.02MB + Engine InnoDB pwuexh2i8ialp_pickup_location: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB pwuexh2i8icommentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8icomments: Daten: 0.06MB + Index: 0.09MB + Engine InnoDB pwuexh2i8ie_events: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8igla_attribute_mapping_rules: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB pwuexh2i8igla_budget_recommendations: Daten: 0.22MB + Index: 0.14MB + Engine InnoDB pwuexh2i8igla_merchant_issues: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB pwuexh2i8igla_shipping_rates: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8igla_shipping_times: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8ilinks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8ioptions: Daten: 4.05MB + Index: 0.09MB + Engine InnoDB pwuexh2i8ipostmeta: Daten: 3.45MB + Index: 0.41MB + Engine InnoDB pwuexh2i8iposts: Daten: 2.45MB + Index: 0.13MB + Engine InnoDB pwuexh2i8irealmedialibrary: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB pwuexh2i8irealmedialibrary_meta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8irealmedialibrary_posts: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8irealmedialibrary_tmp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB pwuexh2i8isbi_feeds: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8isbi_feed_caches: Daten: 0.11MB + Index: 0.02MB + Engine InnoDB pwuexh2i8isbi_instagram_feeds_posts: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8isbi_instagram_feed_locator: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8isbi_instagram_posts: Daten: 0.13MB + Index: 0.00MB + Engine InnoDB pwuexh2i8isbi_sources: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8itermmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8iterms: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8iterm_relationships: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8iterm_taxonomy: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8itinvwl_analytics: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8itinvwl_items: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB pwuexh2i8itinvwl_lists: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB pwuexh2i8iusermeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8iusers: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB pwuexh2i8iwc_admin_notes: Daten: 0.05MB + Index: 0.00MB + Engine InnoDB pwuexh2i8iwc_admin_note_actions: Daten: 0.05MB + Index: 0.02MB + Engine InnoDB pwuexh2i8iwc_category_lookup: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB pwuexh2i8iwc_customer_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8iwc_download_log: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8iwc_order_coupon_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8iwc_order_product_lookup: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB pwuexh2i8iwc_order_stats: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB pwuexh2i8iwc_order_tax_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB pwuexh2i8iwc_product_attributes_lookup: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8iwc_product_download_directories: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8iwc_product_meta_lookup: Daten: 0.02MB + Index: 0.09MB + Engine InnoDB pwuexh2i8iwc_rate_limits: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8iwc_reserved_stock: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB pwuexh2i8iwc_tax_rate_classes: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8iwc_webhooks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB pwuexh2i8iwpforms_tasks_meta: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB pwuexh2i8iwp_openstreetmap: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB pwuexh2i8iwp_openstreetmap_markers: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB Post Type Counts attachment: 180 custom_css: 1 customize_changeset: 14 elementor_library: 1 nav_menu_item: 16 page: 27 pd_template: 2 post: 16 product: 58 revision: 149 shop_order: 101 wp_global_styles: 1 wpcf7_contact_form: 5 Security Secure connection (HTTPS): ✔</img> Hide errors from visitors: ✔</img> Active Plugins (23) Advanced Local Pickup for WooCommerce: von zorem – 1.5.1 consentmanager: von consentmanager – 3.0.4 Contact Form 7: von Takayuki Miyoshi – 5.7.3 Elementor: von Elementor.com – 3.10.2 Enable jQuery Migrate Helper: von Das Team von WordPress – 1.3.0 Facebook for WooCommerce: von Facebook – 3.0.9 Smash Balloon Instagram Feed: von Smash Balloon – 6.1.1 IONOS Assistant: von IONOS – 8.4.2 IONOS Help: von IONOS – 2.1.2 IONOS Navigation: von IONOS – 1.0.5 IONOS Performance: von IONOS – 2.0.1 IONOS Login: von IONOS – 2.1.4 Local Google Fonts: von EverPress – 0.20.0 Mouseflow for WordPress: von Mouseflow – 5.1.2 Product Designer: von PickPlugins – 1.0.32 Real Media Library (Free): von devowl.io – 4.18.29 TI WooCommerce Wishlist: von TemplateInvaders – 2.2.1 Variation Swatches for WooCommerce: von Woosuite – 2.1.8 WooCommerce Google Analytics Integration: von WooCommerce – 1.6.0 WooCommerce: von Automattic – 7.3.0 Woostify Sites Library: von Woostify – 1.4.4 WP Open Street Map: von InfoD74 – 1.25 WPForms Lite: von WPForms – 1.7.9.1 Inactive Plugins (5) All in One SEO: von All in One SEO Team – 4.2.9 Loco Translate: von Tim Whitlock – 2.6.3 Maintenance: von WebFactory Ltd – 4.07 OptinMonster: von OptinMonster Popup Builder Team – 2.11.2 WooCommerce Amazon Pay: von WooCommerce – 2.4.0 Must Use Plugins (3) 1&1 Managed WordPress: von 1&1 – 1.1.0 1&1 Product Subdomain: von 1&1 – 1.1.0 IONOS Marketplace: von IONOS – 1.1.5 Settings API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: left Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ✔</img> Enforce Approved Product Download Directories: – Order datastore: WC_Order_Data_Store_CPT WC Pages Shop-Basis: #7 - /shop Warenkorb: #8 - /cart Kasse: #9 - /checkout Mein Konto: #10 - /my-account Allgemeine Geschäftsbedingungen: #1165 - /allgemeine-geschaeftsbedingungen-agb Theme Name: Woostify Version: 2.1.9 Author URL: https://woostify.com/about Child Theme: ❌</img> – Wenn du WooCommerce mit einem Theme das du nicht selbst entwickelt hast an eigene Bedürfnisse anpasst dann empfehlen wir die Verwendung eines Child-Themes. Siehe Wie du ein Child-Theme erstellst (engl.) WooCommerce Support: ✔</img> Templates Overrides: – Admin Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience settings Daily Cron: ✔</img> Next scheduled: 2023-02-01 17:43:15 +00:00 Options: ✔</img> Notes: 109 Onboarding: completed Templates von TI WooCommerce Wishlist Überschreibt: – Action Scheduler Abgeschlossen: 353 Oldest: 2023-01-24 11:10:26 +0000 Newest: 2023-02-01 10:27:10 +0000 Ausstehend: 7 Oldest: 2023-02-01 14:09:38 +0000 Newest: 2023-02-07 11:33:09 +0000 Status report information Generated at: 2023-02-01 10:27:21 +00:00 `Please find the fatal error logs here
2023-01-30T14:15:39+00:00 CRITICAL Uncaught TypeError: Argument 1 passed to WooCommerce\Facebook\Admin\Products::render_google_product_category_fields_and_enhanced_attributes() must be an instance of WC_Product, bool given, called in /homepages/30/d856830569/htdocs/app942528086/wp-content/plugins/facebook-for-woocommerce/includes/Admin.php on line 1261 and defined in /homepages/30/d856830569/htdocs/app942528086/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Products.php:43 Stack trace: #0 /homepages/30/d856830569/htdocs/app942528086/wp-content/plugins/facebook-for-woocommerce/includes/Admin.php(1261): WooCommerce\Facebook\Admin\Products::render_google_product_category_fields_and_enhanced_attributes(false) #1 /homepages/30/d856830569/htdocs/app942528086/wp-includes/class-wp-hook.php(308): WooCommerce\Facebook\Admin->add_product_settings_tab_content('') #2 /homepages/30/d856830569/htdocs/app942528086/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #3 /homepages/30/d856830569/htdocs/app942528086/wp-includes/plu in /homepages/30/d856830569/htdocs/app942528086/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Products.php in Zeile 43 2023-01-30T14:17:13+00:00 CRITICAL Uncaught TypeError: Argument 1 passed to WooCommerce\Facebook\Admin\Products::render_google_product_category_fields_and_enhanced_attributes() must be an instance of WC_Product, bool given, called in /homepages/30/d856830569/htdocs/app942528086/wp-content/plugins/facebook-for-woocommerce/includes/Admin.php on line 1261 and defined in /homepages/30/d856830569/htdocs/app942528086/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Products.php:43 Stack trace: #0 /homepages/30/d856830569/htdocs/app942528086/wp-content/plugins/facebook-for-woocommerce/includes/Admin.php(1261): WooCommerce\Facebook\Admin\Products::render_google_product_category_fields_and_enhanced_attributes(false) #1 /homepages/30/d856830569/htdocs/app942528086/wp-includes/class-wp-hook.php(308): WooCommerce\Facebook\Admin->add_product_settings_tab_content('') #2 /homepages/30/d856830569/htdocs/app942528086/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #3 /homepages/30/d856830569/htdocs/app942528086/wp-includes/plu in /homepages/30/d856830569/htdocs/app942528086/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Products.php in Zeile 43Hi there @faehrliebe
From what I gather, the issue started upon updating to the 3.0.9 version. Correct?
Could you go ahead with utilizing the WP Rollback plugin, for temporarily switching to version 3.0.8, and see if the issue persists, please?
Let us know how that goes.
Hello @faehrliebe, Thank you for your patience. I looked into your System Status Report (SSR) and I think the plugin Product Designer by PickPlugins could be the reason for this issue. Can you please deactivate this plugin and try again?
The reason is that our plugin uses the global
$postto fetch the product data usingwc_get_product. The error that you are facing is thrown only when the global$postobject is overridden or set incorrectly.This could happen when a third-party plugin overrides the
$postobject. From your SSR, theProduct Designer by PickPluginsplugin could be the one doing that.If deactivating
Product Designerdoes not work, I’d recommend performing conflict testing which is to de-activate all other plugins exceptWooCommerceandFacebook for WooCommerceand switch the theme to WooCommerce’s defaultStorefronttheme.Let us know how this goes.
Hi @kaderibrahim , thanks for your support! now it works fine!
Hi @faehrliebe
You are most welcome and we’re glad that worked! 🙂
Since this is a third-party plugin (Product Designer by PickPlugins) which we don’t provide support for (please see our Support Policy), it would be best to reach out to the plugin’s developers for further assistance here.
https://pickplugins.com/support/
I will be marking this thread as resolved. Should you have further inquiries, kindly create a new topic here.
Meanwhile, if you have a few minutes, we’d love it if you could leave us a review:
https://wordpress.org/support/plugin/facebook-for-woocommerce/reviews/
Thanks!
The topic ‘Fatal Error Uncaught TypeError’ is closed to new replies.