woocommerce / facebook-for-woocommerce

A first-party extension plugin built for WooCommerce. Development is managed by Ventures.
https://woocommerce.com/products/facebook/
GNU General Public License v2.0
211 stars 138 forks source link

Product Sets do not sync to Facebook #1993

Closed mdmoore closed 3 years ago

mdmoore commented 3 years ago

πŸ”Ž Isolate the bug

4038003-zen

✍️ Describe the bug

Products are syncing to Facebook, but Product Sets are not. It's been confirmed that products in the Product Sets do not have variations.

πŸšΆβ€β™€οΈ Steps to reproduce

  1. Create a Product Set at **Products > FB Product Sets
  2. Check Facebook to see that the set doesn't sync

βœ”οΈ Expected behavior

Product Sets should sync to Facebook

πŸ—ƒ Logs

WordPress Environment

WordPress address (URL): redacted Site address (URL): redacted WC Version: 5.3.0 REST API Version: βœ” 5.3.0 WC Blocks Version: βœ” 4.9.1 Action Scheduler Version: βœ” 3.1.6 WC Admin Version: βœ” 2.2.6 Log Directory Writable: βœ” WP Version: 5.7.2 WP Multisite: – WP Memory Limit: 768 MB WP Debug Mode: – WP Cron: βœ” Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.28 PHP Post Max Size: 256 MB PHP Time Limit: 1200 PHP Max Input Vars: 3000 cURL Version: 7.66.0 OpenSSL/1.1.1k-fips SUHOSIN Installed: – MySQL Version: 5.7.32-35-log Max Upload Size: 256 MB Default Timezone is UTC: βœ” fsockopen/cURL: βœ” SoapClient: βœ” DOMDocument: βœ” GZip: βœ” Multibyte String: βœ” Remote Post: βœ” Remote Get: βœ” ### Database ### WC Database Version: 5.3.0 WC Database Prefix: wp_ Total Database Size: 166.00MB Database Data Size: 132.23MB Database Index Size: 33.77MB wp_woocommerce_sessions: Data: 0.09MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 2.52MB + Index: 1.00MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 1.52MB + Index: 0.63MB + Engine InnoDB wp_ac_abandoned_cart_history_lite: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ac_email_templates_lite: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ac_guest_abandoned_cart_history_lite: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ac_sent_history_lite: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_adtribes_my_conversions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_categorymeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_check_email_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cli_cookie_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cli_cookie_scan_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_cli_cookie_scan_cookies: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_cli_cookie_scan_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cli_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_ewwwio_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_ewwwio_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB wp_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_icl_content_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_icl_core_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_icl_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_icl_languages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_icl_languages_translations: Data: 0.20MB + Index: 0.17MB + Engine InnoDB wp_icl_locale_map: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_message_status: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_icl_mo_files_domains: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_icl_node: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_reminders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_strings: Data: 6.52MB + Index: 12.09MB + Engine InnoDB wp_icl_string_batches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_string_packages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_string_pages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_icl_string_positions: Data: 1.52MB + Index: 0.34MB + Engine InnoDB wp_icl_string_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_icl_string_translations: Data: 4.52MB + Index: 2.02MB + Engine InnoDB wp_icl_string_urls: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_icl_translate: Data: 10.50MB + Index: 0.20MB + Engine InnoDB wp_icl_translate_job: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_icl_translations: Data: 0.20MB + Index: 0.61MB + Engine InnoDB wp_icl_translation_batches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_translation_downloads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_translation_status: Data: 4.47MB + Index: 0.05MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mclean_refs: Data: 0.09MB + Index: 0.00MB + Engine InnoDB wp_mclean_scan: Data: 0.08MB + Index: 0.02MB + Engine InnoDB wp_member_catmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mgmlp_folders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nextend2_image_storage: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nextend2_section_storage: Data: 0.08MB + Index: 0.06MB + Engine InnoDB wp_nextend2_smartslider3_generators: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nextend2_smartslider3_sliders: Data: 0.11MB + Index: 0.03MB + Engine InnoDB wp_nextend2_smartslider3_sliders_xref: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nextend2_smartslider3_slides: Data: 0.09MB + Index: 0.11MB + Engine InnoDB wp_options: Data: 8.50MB + Index: 0.27MB + Engine InnoDB wp_portfolio_catmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_postmeta: Data: 52.55MB + Index: 11.03MB + Engine InnoDB wp_posts: Data: 33.48MB + Index: 0.81MB + Engine InnoDB wp_product_catmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rank_math_analytics_gsc: Data: 0.25MB + Index: 0.44MB + Engine InnoDB wp_rank_math_analytics_objects: Data: 0.09MB + Index: 0.02MB + Engine InnoDB wp_rank_math_internal_links: Data: 0.27MB + Index: 0.13MB + Engine InnoDB wp_rank_math_internal_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rank_math_redirections: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rank_math_redirections_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_redirection_404: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB wp_revslider_css_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_sliders: Data: 0.06MB + Index: 0.02MB + Engine InnoDB wp_revslider_sliders_bkp: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_revslider_slides: Data: 0.19MB + Index: 0.02MB + Engine InnoDB wp_revslider_slides_bkp: Data: 0.19MB + Index: 0.00MB + Engine InnoDB wp_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rio_process_queue: Data: 0.30MB + Index: 0.33MB + Engine InnoDB wp_sbi_instagram_feeds_posts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_sbi_instagram_feed_locator: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_sbi_instagram_posts: Data: 0.11MB + Index: 0.00MB + Engine InnoDB wp_shortpixel_folders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_shortpixel_meta: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_termmeta: Data: 0.25MB + Index: 0.33MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.09MB + Index: 0.05MB + Engine InnoDB wp_term_taxonomy: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_toolset_associations: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_toolset_connected_elements: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_toolset_post_guid_id: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_toolset_relationships: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_toolset_type_sets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.06MB + Index: 0.09MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woof_query_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_campaign: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_campaign_list: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_custom_field: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_email: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_wysija_email_user_stat: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_email_user_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_list: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wysija_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wysija_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_url_mail: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_user: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wysija_user_field: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_user_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wysija_user_list: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_xyz_ips_short_code: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_indexable: Data: 0.22MB + Index: 0.11MB + Engine InnoDB wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_links: Data: 0.14MB + Index: 0.13MB + Engine InnoDB wp_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### acf-field: 7 attachment: 1475 custom_css: 2 customize_changeset: 54 elementor_library: 3 mc4wp-form: 2 mgmlp_media_folder: 83 nav_menu_item: 121 oembed_cache: 59 page: 56 portfolio: 16 porto_builder: 7 post: 81 product: 124 product_variation: 116 revision: 2338 shop_coupon: 2 shop_order: 15 shop_order_refund: 2 sl-insta-account: 1 sl-insta-media: 50 wp-types-group: 2 wpcf7_contact_form: 6 wpforms: 1 wysijap: 1 xlwcty_thankyou: 1 ### Security ### Secure connection (HTTPS): βœ” Hide errors from visitors: βœ” ### Active Plugins (38) ### WPML Multilingual CMS: by OnTheGoSystems – 4.4.10 WPML SEO: by OnTheGoSystems – 2.0.1 Check & Log Email: by WPChill – 1.0.1 Contact Form 7: by Takayuki Miyoshi – 5.4.1 GDPR Cookie Consent: by WebToffee – 2.0.3 Duplicate Page: by mndpsingh287 – 4.4 Dynamic Featured Image: by Ankit Pokhrel – 3.7.0 Elementor Pro: by Elementor.com – 3.2.2 Elementor: by Elementor.com – 3.2.4 Envato Elements: by Envato – 2.0.8 Envato Market: by Envato – 2.0.6 Facebook for WooCommerce: by Facebook – 2.5.1 Site Kit by Google: by Google – 1.33.0 Social Slider Widget: by creativemotion – 1.9.5 MC4WP: Mailchimp for WordPress: by ibericode – 4.8.5 NitroPack: by NitroPack LLC – 1.5.4 One Click Demo Import: by OCDI – 3.0.2 Porto Theme - Functionality: by P-Themes – 2.1.1 Redsys WooCommerce: by Redsys – 3.1.1 Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.5 Slider Revolution: by ThemePunch – 6.4.8 Webcraftic Robin image optimizer: by Webcraftic – 1.5.4 Rank Math SEO: by Rank Math – 1.0.64 NextMove Lite - Thank You Page for WooCommerce: by XLPlugins – 2.14.1 Abandoned Cart Lite for WooCommerce: by Tyche Softwares – 5.8.8 WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.1 WooCommerce Stripe Gateway: by WooCommerce – 5.2.0 WooCommerce Google Analytics Integration: by WooCommerce – 1.5.1 WooCommerce Multilingual: by OnTheGoSystems – 4.11.5 WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.9.0 WOOF - WooCommerce Products Filter: by realmag777 – 2.2.5.3 WooCommerce Shipping & Tax: by WooCommerce – 1.25.13 WooCommerce: by Automattic – 5.3.0 WP Sitemap Page: by Tony Archambeau – 1.6.4 MailChimp for WordPress Multilingual: by OnTheGoSystems – 0.0.3 WPML Media: by OnTheGoSystems – 2.6.4 WPML String Translation: by OnTheGoSystems – 3.1.8 WPML Translation Management: by OnTheGoSystems – 2.10.6 ### Inactive Plugins (4) ### Contact Form 7 Multilingual: by OnTheGoSystems – 1.0.2 DHL for WooCommerce: by DHL – 2.5.6 Flexible Shipping UPS: by WP Desk – 1.13.2 Product Feed PRO for WooCommerce: by AdTribes.io – 10.2.0 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### 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) woosb (woosb) yith_bundle (yith_bundle) 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: βœ” ### WC Pages ### Shop base: #207 - /ninjashop/ Cart: #32538 - /cart/ Checkout: #32539 - /checkout/ My account: #29463 - /my-account/ Terms and conditions: #31160 - /about/terms-and-conditions/ ### Theme ### Name: Porto Child Version: 1.1 Author URL: https://www.portotheme.com/ Child Theme: βœ” Parent Theme Name: Porto Parent Theme Version: 6.1.0 Parent Theme Author URL: http://www.portotheme.com/ WooCommerce Support: βœ” ### Templates ### Overrides: porto/woocommerce/archive-product.php porto/woocommerce/cart/cart-empty.php porto/woocommerce/cart/cart-shipping.php porto/woocommerce/cart/cart-totals.php porto/woocommerce/cart/cart.php porto/woocommerce/cart/cross-sells.php porto/woocommerce/cart/mini-cart.php porto/woocommerce/cart/proceed-to-checkout-button.php porto/woocommerce/cart/shipping-calculator.php porto/woocommerce/checkout/form-billing.php porto/woocommerce/checkout/form-checkout.php porto/woocommerce/checkout/form-coupon.php porto/woocommerce/checkout/form-login.php porto/woocommerce/checkout/form-pay.php porto/woocommerce/checkout/form-shipping.php porto/woocommerce/checkout/payment-method.php porto/woocommerce/checkout/payment.php porto/woocommerce/checkout/review-order.php porto/woocommerce/checkout/thankyou.php porto/woocommerce/content-product-cat.php porto/woocommerce/content-product.php porto/woocommerce/content-single-product.php porto/woocommerce/content-widget-product.php porto/woocommerce/global/form-login.php porto/woocommerce/global/quantity-input.php porto/woocommerce/global/wrapper-start.php porto/woocommerce/loop/add-to-cart.php porto/woocommerce/loop/loop-end.php porto/woocommerce/loop/loop-start.php porto/woocommerce/loop/no-products-found.php porto/woocommerce/loop/orderby.php porto/woocommerce/loop/pagination.php porto/woocommerce/loop/rating.php porto/woocommerce/loop/sale-flash.php porto/woocommerce/myaccount/dashboard.php porto/woocommerce/myaccount/downloads.php porto/woocommerce/myaccount/form-add-payment-method.php porto/woocommerce/myaccount/form-edit-account.php porto/woocommerce/myaccount/form-edit-address.php porto/woocommerce/myaccount/form-login.php porto/woocommerce/myaccount/form-lost-password.php porto/woocommerce/myaccount/form-reset-password.php porto/woocommerce/myaccount/lost-password-confirmation.php porto/woocommerce/myaccount/my-account.php porto/woocommerce/myaccount/my-address.php porto/woocommerce/myaccount/my-downloads.php porto/woocommerce/myaccount/my-orders.php porto/woocommerce/myaccount/navigation.php porto/woocommerce/myaccount/orders.php porto/woocommerce/myaccount/payment-methods.php porto/woocommerce/myaccount/view-order.php porto/woocommerce/order/form-tracking.php porto/woocommerce/order/order-details-customer.php porto/woocommerce/order/order-details.php porto/woocommerce/order/order-downloads.php porto/woocommerce/order/tracking.php porto/woocommerce/single-product/add-to-cart/simple.php porto/woocommerce/single-product/add-to-cart/variable.php porto/woocommerce/single-product/meta.php porto/woocommerce/single-product/product-attributes.php porto/woocommerce/single-product/product-image.php porto/woocommerce/single-product/product-thumbnails.php porto/woocommerce/single-product/rating.php porto/woocommerce/single-product/related.php porto/woocommerce/single-product/review-meta.php porto/woocommerce/single-product/review-rating.php porto/woocommerce/single-product/review.php porto/woocommerce/single-product/sale-flash.php porto/woocommerce/single-product/short-description.php porto/woocommerce/single-product/tabs/tabs.php porto/woocommerce/single-product/title.php porto/woocommerce/single-product/up-sells.php porto/woocommerce/single-product-reviews.php ### Action Scheduler ### Complete: 3,675 Oldest: 2021-05-17 10:23:11 +0000 Newest: 2021-06-02 15:00:37 +0000 Pending: 3 Oldest: 2021-06-02 15:15:37 +0000 Newest: 2021-06-04 08:06:07 +0000 ### Status report information ### Generated at: 2021-06-02 16:12:30 +01:00
wbshaw commented 3 years ago

Also having the same issue, when making any updates to the product sets to try and correct the sync log shows a 500 error (all other sync requests work fine, this is the only one that returns an error):

Example:

Request uri: https://graph.facebook.com/v9.0/163504019169758 body: Array ( [name] => All Items [filter] => {"or":[{"retailer_id":{"eq":"WM-DB-SCL-XXS-1-1_1153"}},{"retailer_id":{"eq":"WM-DB-SCL-XS-1-1_1154"}},{"retailer_id":{"eq":"WM-DB-SCL-S-1-1_1155"}},{"retailer_id":{"eq":"WM-DB-SCL-M-1-1_1156"}},{"retailer_id":{"eq":"WM-DB-SCL-L-1-1_1157"}},{"retailer_id":{"eq":"WM-DB-SCL-XL-1-1_1158"}},{"retailer_id":{"eq":"wc_post_id_1152"}},{"retailer_id":{"eq":"wc_post_id_1143"}},{"retailer_id":{"eq":"wc_post_id_1122"}},{"retailer_id":{"eq":"ladies-socks_1227"}},{"retailer_id":{"eq":"wc_post_id_1213"}},{"retailer_id":{"eq":"wc_post_id_1206"}},{"retailer_id":{"eq":"wc_post_id_1196"}},{"retailer_id":{"eq":"wc_post_id_1189"}},{"retailer_id":{"eq":"wc_post_id_1170"}},{"retailer_id":{"eq":"wc_post_id_1161"}},{"retailer_id":{"eq":"wc_post_id_486"}},{"retailer_id":{"eq":"wc_post_id_483"}},{"retailer_id":{"eq":"wc_post_id_469"}},{"retailer_id":{"eq":"wc_post_id_467"}},{"retailer_id":{"eq":"wc_post_id_440"}},{"retailer_id":{"eq":"wc_post_id_432"}},{"retailer_id":{"eq":"wc_post_id_424"}},{"retailer_id":{"eq":"wc_post_id_415"}}]} [metadata] => {"description":""} ) headers: Array ( [Authorization] => **** ) timeout: 500 method: POST

For all new product sets created, set is created on Facebook but only one product ever appears in the set.

jaredcat commented 3 years ago

This actually seems to work now with the latest 2.6.4 release.
I had to delete all my Product Sets in Facebook for Woocommerce. After creating them i see the plugin call product_sets endpoint and the sets appear in my shop with (i think) all the correct products in them!

arunsathiya commented 3 years ago

We received a comment on the forums, which seems to suggest that an incorrect endpoint may be called when "Product sets" are updated:

09-01-2021 @ 00:15:15 - Request
Request
method: POST
uri: https://graph.facebook.com/v11.0/179312622691973/items_batch
user-agent: Facebook-for-WooCommerce/2.6.4 (WooCommerce/5.6.0; WordPress/5.8)
headers: Array
(
    [Authorization] => ************************************************************************************************************************************************************************************************
    [content-type] => application/json
    [accept] => application/json
)
body: {"allow_upsert":true,"requests":[...],"item_type":"PRODUCT_ITEM"}
arunsathiya commented 3 years ago

@jaredkotoff From this comment, it looks like you created that forum thread! Thanks for sharing your findings.

budzanowski commented 3 years ago

I have tested with the latest version and my sets synchronize correctly. I am closing for now. please reopen if any other failing example is found.

ajitsingh6892 commented 3 years ago

I am having the same issue. My categories are set correctly, I have tried the solution mentioned but no luck. `timeout: 500 method: POST

10-30-2021 @ 15:32:04 - Response Response code: 400 message: Bad Request headers: Array ( [content-encoding] => gzip [vary] => Array ( [0] => Origin [1] => Accept-Encoding )

[x-business-use-case-usage] => {"284675096863693":[{"type":"catalog_management","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}
[x-fb-rlafr] => 0
[content-type] => application/json; charset=UTF-8
[www-authenticate] => OAuth "Facebook Platform" "invalid_request" "Product set with the same filters already exists"
[access-control-allow-origin] => *
[facebook-api-version] => v11.0
[strict-transport-security] => max-age=15552000; preload
[pragma] => no-cache
[cache-control] => no-store
[expires] => Sat, 01 Jan 2000 00:00:00 GMT
[x-fb-request-id] => Amov-3PcVSe1LtK9jpLiYbC
[x-fb-trace-id] => AQigyhNRfug
[x-fb-rev] => 1004649410
[x-fb-debug] => cS9gRt3NAtTQVtAOSth8zti7shUJbxML8/JqGkZCVcHbqbe5sx5fdlC9PSOP4tfO+5KZQb4qjIPbN2K6Yx4wKA==
[date] => Sat, 30 Oct 2021 10:02:04 GMT
[priority] => u=3,i
[alt-svc] => h3=":443"; ma=3600, h3-29=":443"; ma=3600,h3-27=":443"; ma=3600
[content-length] => 272

) body: {"error":{"message":"Product set with the same filters already exists","type":"OAuthException","code":10803,"error_data":{"product_set_id":"939644479980778"},"error_subcode":1798073,"is_transient":false,"error_user_title":"Duplicate product set already exists","error_user_msg":"Error when you try to create a product set when a product set with a duplicate filter already exists","fbtrace_id":"Amov-3PcVSe1LtK9jpLiYbC"}}`

dagurdagsson commented 2 years ago

Hi. I am the owner of the original site that reported the issue. I can confirm that the issue still persists. Today I went back to it to see if anything had changed with newer versions of the plugin coming out. The behavior is the same. Sets are not synced.

I deleted a set that I had in WooCommerce and recreated it. The response in the log was this.

11-07-2021 @ 10:48:29 - Request uri: https://graph.facebook.com/v11.0/?allow_live_product_set_deletion=true timeout: 500 method: DELETE

11-07-2021 @ 10:48:29 - Response code: 400 message: Bad Request body: {"error":{"message":"Unsupported delete request. Please read the Graph API documentation at https:\/\/developers.facebook.com\/docs\/graph-api","type":"GraphMethodException","code":100,"error_subcode":33,"fbtrace_id":"AsquabkrTSBv5IbcqqUIcoq"}}

11-07-2021 @ 10:48:29 - 11-07-2021 @ 10:48:29 - {"headers":{},"body":"{\"error\":{\"message\":\"Unsupported delete request. Please read the Graph API documentation at https:\\/\\/developers.facebook.com\\/docs\\/graph-api\",\"type\":\"GraphMethodException\",\"code\":100,\"error_subcode\":33,\"fbtrace_id\":\"AsquabkrTSBv5IbcqqUIcoq\"}}","response":{"code":400,"message":"Bad Request"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}}

jaredcat commented 2 years ago

@dagurdagsson did you delete it also on FB side? Start with no category on either and then let WooCommerce create the category on FB for you. That was the missing piece for me.

dagurdagsson commented 2 years ago

@jaredkotoff I just tried that now. DidnΒ΄t work.

The response when creating a new FB set in Woocommerce is this: 11-08-2021 @ 12:11:55 - Request uri: https://graph.facebook.com/v11.0/?allow_live_product_set_deletion=true timeout: 500 method: DELETE

11-08-2021 @ 12:11:55 - Response code: 400 message: Bad Request body: {"error":{"message":"Unsupported delete request. Please read the Graph API documentation at https:\/\/developers.facebook.com\/docs\/graph-api","type":"GraphMethodException","code":100,"error_subcode":33,"fbtrace_id":"AxHRV99phloFOIz0pUXpVe3"}}

11-08-2021 @ 12:11:55 - 11-08-2021 @ 12:11:55 - {"headers":{},"body":"{\"error\":{\"message\":\"Unsupported delete request. Please read the Graph API documentation at https:\\/\\/developers.facebook.com\\/docs\\/graph-api\",\"type\":\"GraphMethodException\",\"code\":100,\"error_subcode\":33,\"fbtrace_id\":\"AxHRV99phloFOIz0pUXpVe3\"}}","response":{"code":400,"message":"Bad Request"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}}

I also wanΒ΄t to point out one thing that there was some confusion. Talking with plugin support they insisted that WooCommerce categories were not transferred to FB-Commerce. Well. If I go into FB Business to create a set manually my WooCommerce categories are present as filter values.

Well, Off to creating the sets manually again :)

budzanowski commented 2 years ago

@dagurdagsson Hi!

I have a question. In the example request: have you edited ( deleted ) the set id manually before pasting it to the GH? The request https://graph.facebook.com/v11.0/?allow_live_product_set_deletion=true is not a valid request because it does not have set id. This would indicate a logic problem inside the plugin. I was not able to find a way that this type of request could happen so please confirm if this is what you see or it was edited to omit the id. If it was not edited then I need to look further.

dagurdagsson commented 2 years ago

@budzanowski No. It was pasted directly from the Woo FB log without any interference from me.

budzanowski commented 2 years ago

@dagurdagsson,

That is very strange. Could you please delete the log file ( to start afresh log ) and then first create and then delete a category. Make sure that the categories that are used for creating the product sets have valid and published products ( are those products simple or variation ? ). And then copy and paste the whole content of the log file.

Your case is very strange. I really want to debug and help but so far I don't see what is causing the error that you are experiencing.

One thing to mention is that if you have a set created already in FB and now you are trying to create exactly the same set using the plugin the procedure will fail. This is what @jaredkotoff has observed.

Best Regards

dagurdagsson commented 2 years ago

@budzanowski as it stands now there are no sets on the FB side. The creation of a FB set in Woo returns the error below. Deleting it in doesnΒ΄t return anything in the log.

11-09-2021 @ 12:14:06 - Request uri: https://graph.facebook.com/v11.0/?allow_live_product_set_deletion=true timeout: 500 method: DELETE

11-09-2021 @ 12:14:06 - Response code: 400 message: Bad Request body: {"error":{"message":"Unsupported delete request. Please read the Graph API documentation at https:\/\/developers.facebook.com\/docs\/graph-api","type":"GraphMethodException","code":100,"error_subcode":33,"fbtrace_id":"APuNG56Vg7uiifbM0RyliCu"}}

11-09-2021 @ 12:14:06 - 11-09-2021 @ 12:14:06 - {"headers":{},"body":"{\"error\":{\"message\":\"Unsupported delete request. Please read the Graph API documentation at https:\\/\\/developers.facebook.com\\/docs\\/graph-api\",\"type\":\"GraphMethodException\",\"code\":100,\"error_subcode\":33,\"fbtrace_id\":\"APuNG56Vg7uiifbM0RyliCu\"}}","response":{"code":400,"message":"Bad Request"},"cookies":[],"filename":null,"http_response":{"data":null,"headers":null,"status":null}}

budzanowski commented 2 years ago

@dagurdagsson,

The only way for the code to trigger API call with an empty set id is when one tries to create a FB Product set that has no products. I am putting in place a check that will detec this situation: https://github.com/woocommerce/facebook-for-woocommerce/pull/2119

This does not answer the question why in your case the new FB product set is empty. The exact question is why for the categories you are using to define the set there are no products? To reproduce the scenario I have created a new category that is not used by any product and I was using it to define the FB set.