Support » Plugin: WooCommerce » Uncaught (in promise) Error on PHP 8.0.20

  • Resolved Michael Ott

    (@mikeyott)


    While trying to dismiss the dialogue that reads:

    Security auto-update of WooCommerce
    Your store has been updated to the latest secure version of WooCommerce. We worked with WordPress to deploy security updates related to PayPal Standard payment gateway for stores running WooCommerce (version 3.5 to 6.3).
    [Learn more] [Dismiss]

    …the console throws an error and the dialogue will not go away:

    POST https://ourdomain.com.au/wp-json/wc-analytics/admin/notes/65/action/undefined?_locale=user 404
    
    Uncaught (in promise) Error
        at Do (index.js?ver=6.9.2:2:97306)
        at Do.next (<anonymous>)
        at redux-routine.min.js?ver=5156478c032ea85a2bbdceeb7a43b0c1:2:3686
        at t.any (redux-routine.min.js?ver=5156478c032ea85a2bbdceeb7a43b0c1:2:1732)
        at redux-routine.min.js?ver=5156478c032ea85a2bbdceeb7a43b0c1:2:3798
        at Array.some (<anonymous>)
        at n (redux-routine.min.js?ver=5156478c032ea85a2bbdceeb7a43b0c1:2:3773)
        at a (redux-routine.min.js?ver=5156478c032ea85a2bbdceeb7a43b0c1:2:8572)
        at redux-routine.min.js?ver=5156478c032ea85a2bbdceeb7a43b0c1:2:3798
        at Array.some (<anonymous>)

    The site otherwise appears to work fine.

    FYI this happens even when I switch to a vanilla 2021 theme and disable all other plugins (Woo is only plugin activated.

    If it helps to know, hosted on WP Engine running PHP 8.0.20.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support xue28 (woo-hc)

    (@xue28)

    Hi @mikeyott

    Thanks for reaching out!

    I’d like to understand your site properly, can you please share your System Status Report, that will help us further troubleshoot.

    You can find it via WooCommerce > Status. Select Get system report and then Copy 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.

    Thread Starter Michael Ott

    (@mikeyott)

    No worries. I’ve redacted some information for privacy reasons, but otherwise everything you need is below:

    SYSTEM STATUS
    ———————————————————————-

    
    ### WordPress Environment ###
    
    WordPress address (URL): REDACTED
    Site address (URL): REDACTED
    WC Version: 6.9.2
    REST API Version: ✔ 6.9.2
    WC Blocks Version: ✔ 8.3.2
    Action Scheduler Version: ✔ 3.4.0
    Log Directory Writable: ✔
    WP Version: 6.0.2
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_AU
    External object cache: ✔
    
    ### Server Environment ###
    
    Server Info: nginx
    PHP Version: 8.0.20
    PHP Post Max Size: 100 MB
    PHP Time Limit: 43300
    PHP Max Input Vars: 10000
    cURL Version: 7.58.0
    OpenSSL/1.1.1
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.39-42-log
    Max Upload Size: 50 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 6.9.2
    WC Database Prefix: gar_
    Total Database Size: 5.97MB
    Database Data Size: 3.60MB
    Database Index Size: 2.37MB
    gar_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gar_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gar_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    gar_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gar_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    gar_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gar_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gar_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gar_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gar_actionscheduler_actions: Data: 0.22MB + Index: 0.23MB + Engine InnoDB
    gar_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gar_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gar_actionscheduler_logs: Data: 0.17MB + Index: 0.14MB + Engine InnoDB
    gar_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    gar_gf_addon_feed: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gar_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gar_gf_entry: Data: 0.09MB + Index: 0.03MB + Engine InnoDB
    gar_gf_entry_meta: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
    gar_gf_entry_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gar_gf_form_meta: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    gar_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_gf_form_view: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    gar_gf_rest_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gar_options: Data: 0.16MB + Index: 0.03MB + Engine InnoDB
    gar_postmeta: Data: 1.45MB + Index: 0.27MB + Engine InnoDB
    gar_posts: Data: 0.22MB + Index: 0.06MB + Engine InnoDB
    gar_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gar_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    gar_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    gar_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    gar_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gar_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    gar_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    gar_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gar_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gar_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    gar_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gar_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    gar_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gar_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gar_yoast_indexable: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    gar_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    gar_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    gar_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    gar_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    acf-field: 24
    acf-field-group: 4
    attachment: 254
    nav_menu_item: 6
    page: 20
    product: 33
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (15) ###
    
    Advanced Custom Fields PRO: by Delicious Brains – 5.12.3
    Akismet Anti-Spam: by Automattic – 5.0
    Better Search Replace: by Delicious Brains – 1.4.1
    Custom Post Type UI: by WebDevStudios – 1.13.1
    Gravity Forms: by Gravity Forms – 2.6.6
    Gravity Forms Campaign Monitor Add-On: by Gravity Forms – 3.9
    Intuitive Custom Post Order: by hijiri – 3.1.3
    Open Graphite Pro: by Rocket Apps – 2.0.1
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.5
    Responsive Lightbox & Gallery Modified: by  – 100
    WooCommerce: by Automattic – 6.9.2 (update to version 6.9.3 is available)
    Yoast SEO: by Team Yoast – 19.6.1
    WP Sync DB: by Sean Lang – 1.5
    WP Sync DB Media Files: by Sean Lang – 1.1.4b1
    
    ### Inactive Plugins (2) ###
    
    Query Monitor: by John Blackbourn – 3.10.1
    WP Exit Popups Pro: by Rocket Apps – 1.5.0
    
    ### Dropin Plugins (3) ###
    
    advanced-cache.php: advanced-cache.php
    maintenance.php: maintenance.php
    object-cache.php: Memcached Redux
    
    ### Must Use Plugins (5) ###
    
    Force Strong Passwords - WPE Edition: by Jason Cosper – 1.8.0
    WP Engine Cache Plugin: by WP Engine – 1.0.10
    WP Engine Seamless Login Plugin: by WP Engine – 1.6.0
    WP Engine Security Auditor: by wpengine – 1.0.10
    WP Engine System: by WP Engine – 5.0.1
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: AUD ($)
    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: –
    Enforce Approved Product Download Directories: –
    
    ### WC Pages ###
    
    Shop base: ❌ Page not set
    Cart: #41 - /cart/
    Checkout: #42 - /checkout/
    My account: #43 - /my-account/
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: REDACTED
    Version: 4.0.1
    Author URL: REDACTED
    Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build
    personally we recommend using a child theme. See: How to create a child theme
    
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: REDACTED/woocommerce/archive-product.php
    REDACTED/woocommerce/single-product.php
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    experimental-product-tour
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    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
    wc-pay-promotion
    wc-pay-welcome-page
    
    Disabled Features: minified-js
    new-product-management-experience
    settings
    
    Daily Cron: ✔ Next scheduled: 2022-09-21 06:31:38 +08:00
    Options: ✔
    Notes: 54
    Onboarding: skipped
    
    ### Action Scheduler ###
    
    Complete: 665
    Oldest: 2022-09-20 08:36:34 +0800
    Newest: 2022-09-21 08:38:39 +0800
    
    Pending: 1
    Oldest: 2022-09-22 08:38:39 +0800
    Newest: 2022-09-22 08:38:39 +0800
    
    ### Status report information ###
    
    Generated at: 2022-09-21 13:40:23 +08:00
    

    LOGS
    ———————————————————————-

    2022-09-17T06:43:31+00:00 ERROR Spec is invalid because a rule is invalid in feed
    2022-09-17T06:43:31+00:00 ERROR stdClass Object
    (
        [type] => wcadmin_active_for
        [operation] => >
        [months] => 11
    )
    
    2022-09-17T06:43:31+00:00 ERROR stdClass Object
    (
        [slug] => googlelistings_signals2022_hasGLA
        [type] => marketing
        [status] => unactioned
        [is_snoozable] => 0
        [source] => woocommerce.com
        [locales] => Array
            (
                [0] => stdClass Object
                    (
                        [locale] => en_US
                        [title] => Show off your products with Ads on Google
                        [content] => You’re ready to grow with ads. Google optimizes for performance across your products; you only pay for results. If you’re new to Google, you can earn up to $500 in ad credits (T&Cs apply). <a href="https://woocommerce.com/my-account/create-a-ticket/">Contact support</a> if you need guidance with Google Listings & Ads.
                    )
    
            )
    
        [actions] => Array
            (
                [0] => stdClass Object
                    (
                        [name] => googlelistings_signals2022_hasGLA_click
                        [locales] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [locale] => en_US
                                        [label] => Connect Google Listings & Ads
                                    )
    
                            )
    
                        [url] => admin.php?page=wc-admin&path=marketing
                        [url_is_admin_query] => 1
                        [is_primary] => 1
                        [status] => unactioned
                    )
    
            )
    
        [rules] => Array
            (
                [0] => stdClass Object
                    (
                        [type] => publish_after_time
                        [publish_after] => 2022-09-12 07:23:39
                    )
    
                [1] => stdClass Object
                    (
                        [type] => publish_before_time
                        [publish_before] => 2022-10-12 23:59:00
                    )
    
                [2] => stdClass Object
                    (
                        [type] => plugins_activated
                        [plugins] => Array
                            (
                                [0] => google-listings-and-ads
                            )
    
                    )
    
                [3] => stdClass Object
                    (
                        [type] => wcadmin_active_for
                        [operation] => >
                        [months] => 11
                    )
    
                [4] => stdClass Object
                    (
                        [type] => product_count
                        [operation] => >
                        [value] => 76
                    )
    
                [5] => stdClass Object
                    (
                        [type] => order_count
                        [operation] => >
                        [value] => 38
                    )
    
                [6] => stdClass Object
                    (
                        [type] => total_payments_value
                        [days] => last_year
                        [value] => 3700
                        [operation] => >
                    )
    
            )
    
    )
    
    2022-09-17T06:43:31+00:00 ERROR Spec is invalid because a rule is invalid in feed
    2022-09-17T06:43:31+00:00 ERROR stdClass Object
    (
        [type] => wcadmin_active_for
        [operation] => >
        [months] => 11
    )
    
    2022-09-17T06:43:31+00:00 ERROR stdClass Object
    (
        [slug] => googlelistings_signals2022_noGLA
        [type] => marketing
        [status] => unactioned
        [is_snoozable] => 0
        [source] => woocommerce.com
        [locales] => Array
            (
                [0] => stdClass Object
                    (
                        [locale] => en_US
                        [title] => Show off your products with Ads on Google
                        [content] => You’re ready to grow with ads. Google optimizes for performance across your products; you only pay for results. If you’re new to Google, you can earn up to $500 in ad credits (T&Cs apply). <a href="https://woocommerce.com/my-account/create-a-ticket/">Contact support</a> if you need guidance with Google Listings & Ads.
                    )
    
            )
    
        [actions] => Array
            (
                [0] => stdClass Object
                    (
                        [name] => googlelistings_signals2022_noGLA
                        [locales] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [locale] => en_US
                                        [label] => Connect Google Listings & Ads
                                    )
    
                            )
    
                        [url] => https://woocommerce.com/products/google-listings-and-ads/?utm_medium=product&utm_source=inbox_note&utm_campaign=googlelistings_signals2022_noGLA
                        [url_is_admin_query] => 
                        [is_primary] => 1
                        [status] => unactioned
                    )
    
            )
    
        [rules] => Array
            (
                [0] => stdClass Object
                    (
                        [type] => publish_after_time
                        [publish_after] => 2022-09-12 07:27:46
                    )
    
                [1] => stdClass Object
                    (
                        [type] => publish_before_time
                        [publish_before] => 2022-10-12 23:59:00
                    )
    
                [2] => stdClass Object
                    (
                        [type] => not
                        [operand] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [type] => plugins_activated
                                        [plugins] => Array
                                            (
                                                [0] => google-listings-and-ads
                                            )
    
                                    )
    
                            )
    
                    )
    
                [3] => stdClass Object
                    (
                        [type] => wcadmin_active_for
                        [operation] => >
                        [months] => 11
                    )
    
                [4] => stdClass Object
                    (
                        [type] => product_count
                        [operation] => >
                        [value] => 76
                    )
    
                [5] => stdClass Object
                    (
                        [type] => order_count
                        [operation] => >
                        [value] => 38
                    )
    
                [6] => stdClass Object
                    (
                        [type] => total_payments_value
                        [days] => last_year
                        [value] => 3700
                        [operation] => >
                    )
    
            )
    
    )
    • This reply was modified 8 months, 2 weeks ago by Michael Ott.
    Plugin Support Kaushik S. a11n

    (@kaushiksomaiya)

    Hi there @mikeyott

    From the error logs, it appears that this was an issue recently reported here: https://github.com/woocommerce/woocommerce/issues/34777

    It seems to be due to a misconfiguration of the remote inbox notifications feed that is sent to WooCommerce installations.

    From the last comment:

    Existing stores will receive the updated feed within a day or so (a store checks every 24 hours for an updated feed).

    I’d suggest waiting for a day or two and seeing if the error resolves.

    If it doesn’t, please reply back to us on this thread. We’ll be happy to help you further.

    Alternatively, you can check the database table _wc_admin_notes -> browse the notification in question, and change the column status to actioned.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Uncaught (in promise) Error on PHP 8.0.20’ is closed to new replies.