woocommerce / woocommerce-admin

(Deprecated) This plugin has been merged to woocommerce/woocommerce
https://woocommerce.github.io/woocommerce-admin/#/
Other
361 stars 145 forks source link

WC_Data_Exception: The admin note content_data prop must be an instance of stdClass. #7484

Closed bome closed 3 years ago

bome commented 3 years ago

Describe the bug

On my staging server, visiting Woocommerce admin pages will cause multiple exceptions of this type:

PHP WC_Data_Exception:  The admin note content_data prop must be an instance of stdClass. in /srv/example.com/htdocs/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php on line 856
PHP Stack trace:
PHP   1. {main}() /srv/example.com/htdocs/index.php:0
PHP   2. require() /srv/example.com/htdocs/index.php:17
PHP   3. wp($query_vars = *uninitialized*) /srv/example.com/htdocs/wp-blog-header.php:16
PHP   4. WP->main($query_args = '') /srv/example.com/htdocs/wp-includes/functions.php:1291
PHP   5. WP->parse_request($extra_query_vars = '') /srv/example.com/htdocs/wp-includes/class-wp.php:750
PHP   6. do_action_ref_array($hook_name = 'parse_request', $args = [0 => class WP { public $public_query_vars = [...]; public $private_query_vars = [...]; public $extra_query_vars = [...]; public $query_vars = [...]; public $query_string = NULL; public $request = 'wp-json/wc-analytics/admin/notes'; public $matched_rule = '^wp-json/(.*)?'; public $matched_query = 'rest_route=/wc-analytics%2Fadmin%2Fnotes'; public $did_permalink = TRUE }]) /srv/example.com/htdocs/wp-includes/class-wp.php:388
PHP   7. WP_Hook->do_action($args = [0 => class WP { public $public_query_vars = [...]; public $private_query_vars = [...]; public $extra_query_vars = [...]; public $query_vars = [...]; public $query_string = NULL; public $request = 'wp-json/wc-analytics/admin/notes'; public $matched_rule = '^wp-json/(.*)?'; public $matched_query = 'rest_route=/wc-analytics%2Fadmin%2Fnotes'; public $did_permalink = TRUE }]) /srv/example.com/htdocs/wp-includes/plugin.php:518
PHP   8. WP_Hook->apply_filters($value = '', $args = [0 => class WP { public $public_query_vars = [...]; public $private_query_vars = [...]; public $extra_query_vars = [...]; public $query_vars = [...]; public $query_string = NULL; public $request = 'wp-json/wc-analytics/admin/notes'; public $matched_rule = '^wp-json/(.*)?'; public $matched_query = 'rest_route=/wc-analytics%2Fadmin%2Fnotes'; public $did_permalink = TRUE }]) /srv/example.com/htdocs/wp-includes/class-wp-hook.php:327
PHP   9. rest_api_loaded(class WP { public $public_query_vars = [0 => 'm', 1 => 'p', 2 => 'posts', 3 => 'w', 4 => 'cat', 5 => 'withcomments', 6 => 'withoutcomments', 7 => 's', 8 => 'search', 9 => 'exact', 10 => 'sentence', 11 => 'calendar', 12 => 'page', 13 => 'paged', 14 => 'more', 15 => 'tb', 16 => 'pb', 17 => 'author', 18 => 'order', 19 => 'orderby', 20 => 'year', 21 => 'monthnum', 22 => 'day', 23 => 'hour', 24 => 'minute', 25 => 'second', 26 => 'name', 27 => 'category_name', 28 => 'tag', 29 => 'feed', 30 => 'author_name', 31 => 'pagename', 32 => 'page_id', 33 => 'error', 34 => 'attachment', 35 => 'attachment_id', 36 => 'subpost', 37 => 'subpost_id', 38 => 'preview', 39 => 'robots', 40 => 'favicon', 41 => 'taxonomy', 42 => 'term', 43 => 'cpage', 44 => 'post_type', 45 => 'embed', 46 => 'post_format', 47 => 'wc-api', 48 => 'product_cat', 49 => 'product_tag', 50 => 'product', 51 => 'document_template', 52 => 'ngg_tag', 53 => 'rest_route', 54 => 'sitemap', 55 => 'sitemap-subtype', 56 =...
PHP  10. WP_REST_Server->serve_request($path = '/wc-analytics/admin/notes') /srv/example.com/htdocs/wp-includes/rest-api.php:370
PHP  11. WP_REST_Server->dispatch($request = class WP_REST_Request { protected $method = 'GET'; protected $params = ['URL' => [...], 'GET' => [...], 'POST' => [...], 'FILES' => [...], 'JSON' => NULL, 'defaults' => [...]]; protected $headers = ['sec_fetch_site' => [...], 'sec_fetch_mode' => [...], 'sec_fetch_dest' => [...], 'cookie' => [...], 'connection' => [...], 'x_wp_nonce' => [...], 'referer' => [...], 'accept_encoding' => [...], 'accept_language' => [...], 'accept' => [...], 'user_agent' => [...], 'host' => [...]]; protected $body = ''; protected $route = '/wc-analytics/admin/notes'; protected $attributes = ['methods' => [...], 'accept_json' => FALSE, 'accept_raw' => FALSE, 'show_in_index' => TRUE, 'args' => [...], 'callback' => [...], 'permission_callback' => [...]]; protected $parsed_json = TRUE; protected $parsed_body = FALSE }) /srv/example.com/htdocs/wp-includes/rest-api/class-wp-rest-server.php:414
PHP  12. WP_REST_Server->respond_to_request($request = class WP_REST_Request { protected $method = 'GET'; protected $params = ['URL' => [...], 'GET' => [...], 'POST' => [...], 'FILES' => [...], 'JSON' => NULL, 'defaults' => [...]]; protected $headers = ['sec_fetch_site' => [...], 'sec_fetch_mode' => [...], 'sec_fetch_dest' => [...], 'cookie' => [...], 'connection' => [...], 'x_wp_nonce' => [...], 'referer' => [...], 'accept_encoding' => [...], 'accept_language' => [...], 'accept' => [...], 'user_agent' => [...], 'host' => [...]]; protected $body = ''; protected $route = '/wc-analytics/admin/notes'; protected $attributes = ['methods' => [...], 'accept_json' => FALSE, 'accept_raw' => FALSE, 'show_in_index' => TRUE, 'args' => [...], 'callback' => [...], 'permission_callback' => [...]]; protected $parsed_json = TRUE; protected $parsed_body = FALSE }, $route = '/wc-analytics/admin/notes', $handler = ['methods' => ['GET' => TRUE], 'accept_json' => FALSE, 'accept_raw' => FALSE, 'show_in_inde...
PHP  13. Automattic\\WooCommerce\\Admin\\API\\Notes->get_items($request = class WP_REST_Request { protected $method = 'GET'; protected $params = ['URL' => [...], 'GET' => [...], 'POST' => [...], 'FILES' => [...], 'JSON' => NULL, 'defaults' => [...]]; protected $headers = ['sec_fetch_site' => [...], 'sec_fetch_mode' => [...], 'sec_fetch_dest' => [...], 'cookie' => [...], 'connection' => [...], 'x_wp_nonce' => [...], 'referer' => [...], 'accept_encoding' => [...], 'accept_language' => [...], 'accept' => [...], 'user_agent' => [...], 'host' => [...]]; protected $body = ''; protected $route = '/wc-analytics/admin/notes'; protected $attributes = ['methods' => [...], 'accept_json' => FALSE, 'accept_raw' => FALSE, 'show_in_index' => TRUE, 'args' => [...], 'callback' => [...], 'permission_callback' => [...]]; protected $parsed_json = TRUE; protected $parsed_body = FALSE }) /srv/example.com/htdocs/wp-includes/rest-api/class-wp-rest-server.php:1140
PHP  14. Automattic\\WooCommerce\\Admin\\Notes\\Notes::get_notes($context = 'edit', $args = ['order' => 'desc', 'orderby' => 'date_created', 'per_page' => 25, 'page' => 1, 'type' => [0 => 'info', 1 => 'marketing', 2 => 'survey', 3 => 'warning'], 'status' => [0 => 'unactioned'], 'source' => [], 'is_deleted' => 0]) /srv/example.com/htdocs/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/API/Notes.php:166
PHP  15. Automattic\\WooCommerce\\Admin\\Notes\\Note->__construct($data = class stdClass { public $note_id = '66'; public $name = 'wc-admin-navigation-nudge'; public $type = 'info'; public $locale = 'en_US'; public $title = 'You now have access to the WooCommerce navigation'; public $content = 'We\xe2\x80\x99re introducing a new navigation for a more intuitive and improved user experience. You can enable the beta version of the new experience in the Advanced Settings. Enable it now for your store.'; public $content_data = '{}'; public $status = 'unactioned'; public $source = 'woocommerce-admin'; public $date_created = '2021-07-06 07:33:17'; public $date_reminder = NULL; public $is_snoozable = '0'; public $layout = 'plain'; public $image = ''; public $is_deleted = '0' }) /srv/example.com/htdocs/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Notes.php:42
PHP  16. Automattic\\WooCommerce\\Admin\\Notes\\Note->set_props($props = ['note_id' => '66', 'name' => 'wc-admin-navigation-nudge', 'type' => 'info', 'locale' => 'en_US', 'title' => 'You now have access to the WooCommerce navigation'; public $content = 'We\xe2\x80\x99re introducing a new navigation for a more intuitive and improved user experience. You can enable the beta version of the new experience in the Advanced Settings. Enable it now for your store.', 'content_data' => '{}', 'status' => 'unactioned', 'source' => 'woocommerce-admin', 'date_created' => '2021-07-06 07:33:17', 'date_reminder' => NULL, 'is_snoozable' => '0', 'layout' => 'plain', 'image' => '', 'is_deleted' => '0'], $context = *uninitialized*) /srv/example.com/htdocs/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Note.php:81
PHP  17. Automattic\\WooCommerce\\Admin\\Notes\\Note->set_content_data($content_data = '{}') /srv/example.com/htdocs/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php:714
PHP  18. Automattic\\WooCommerce\\Admin\\Notes\\Note->error($code = 'admin_note_invalid_data', $message = 'The admin note content_data prop must be an instance of stdClass.', $http_status_code = *uninitialized*, $data = *uninitialized*) /srv/example.com/htdocs/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Note.php:453

To Reproduce

  1. Visit any WooCommerce admin page with XDebug on.
  2. Check the HTTP error log

Actual behavior:

  1. Exceptions occur
  2. Admin Notes are not displayed in admin backend

Expected behavior

  1. No exceptions are thrown
  2. Admin notes are displayed

Desktop (please complete the following information):

Additional context

See also: #3923

System Status:

### WordPress Environment ###

WordPress address (URL): https://www.example.com
Site address (URL): https://www.example.com
WC Version: 5.5.2
REST API Version: ✔ 5.5.2
WC Blocks Version: ✔ 5.6.0
Action Scheduler Version: ✔ 3.2.1
WC Admin Version: ✔ 2.4.4
Log Directory Writable: ✔
WP Version: 5.8
WP Multisite: –
WP Memory Limit: 256 MB
WP Debug Mode: –
WP Cron: ✔
Language: en_US
External object cache: –

### Server Environment ###

Server Info: Apache/2.4.38 (Debian)
PHP Version: 7.3.29-1+0~20210701.86+debian10~1.gbp7ad6eb
PHP Post Max Size: 1 GB
PHP Time Limit: 500
PHP Max Input Vars: 1000
cURL Version: 7.64.0
OpenSSL/1.1.1d

SUHOSIN Installed: –
MySQL Version: 5.5.5-10.3.29-MariaDB-0+deb10u1
Max Upload Size: 1 GB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔

### Database ###

WC Database Version: 5.5.2
WC Database Prefix: wp_
Total Database Size: 164.63MB
Database Data Size: 111.06MB
Database Index Size: 53.57MB
wp_woocommerce_sessions: Data: 0.02MB + 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: 1.52MB + Index: 0.22MB + Engine InnoDB
wp_woocommerce_order_itemmeta: Data: 6.52MB + Index: 6.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.05MB + Engine InnoDB
wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + 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.02MB + Index: 1.23MB + 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: 2.02MB + Index: 1.56MB + Engine InnoDB
wp_blkm: Data: 2.52MB + Index: 0.09MB + Engine InnoDB
wp_blkm_buco_coupons: Data: 0.05MB + 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_cma_logs: Data: 0.30MB + Index: 0.27MB + Engine InnoDB
wp_cma_logs_meta: Data: 1.52MB + Index: 0.50MB + Engine InnoDB
wp_commentmeta: Data: 0.26MB + Index: 0.20MB + Engine MyISAM
wp_comments: Data: 8.26MB + Index: 2.07MB + Engine MyISAM
wp_contact_form_7: Data: 0.02MB + Index: 0.00MB + Engine MyISAM
wp_golfresult: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_golftable: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_itsec_lockouts: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
wp_itsec_log: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
wp_itsec_temp: Data: 0.05MB + Index: 0.06MB + Engine InnoDB
wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_mollie_pending_payment: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_ngg_album: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_ngg_gallery: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
wp_ngg_pictures: Data: 0.46MB + Index: 0.11MB + Engine MyISAM
wp_nl_email: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_nl_liste: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_options: Data: 2.90MB + Index: 0.19MB + Engine MyISAM
wp_phppc_functions: Data: 0.11MB + Index: 0.02MB + Engine InnoDB
wp_postmeta: Data: 32.13MB + Index: 13.54MB + Engine MyISAM
wp_posts: Data: 14.17MB + Index: 1.76MB + Engine MyISAM
wp_post_notification_cats: Data: 0.16MB + Index: 0.30MB + Engine MyISAM
wp_post_notification_emails: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_post_notification_posts: Data: 0.07MB + Index: 0.11MB + Engine MyISAM
wp_seo_title_tag_category: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_seo_title_tag_tag: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_seo_title_tag_url: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_shipment_batch_process: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_storeabill_documentmeta: Data: 8.52MB + Index: 7.03MB + Engine InnoDB
wp_storeabill_documents: Data: 1.52MB + Index: 0.45MB + Engine InnoDB
wp_storeabill_document_itemmeta: Data: 5.52MB + Index: 6.03MB + Engine InnoDB
wp_storeabill_document_items: Data: 1.52MB + Index: 0.52MB + Engine InnoDB
wp_storeabill_document_noticemeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_storeabill_document_notices: Data: 1.52MB + Index: 0.16MB + Engine InnoDB
wp_storeabill_journals: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_terms: Data: 0.02MB + Index: 0.04MB + Engine MyISAM
wp_term_relationships: Data: 0.07MB + Index: 0.16MB + Engine MyISAM
wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine MyISAM
wp_usermeta: Data: 10.97MB + Index: 6.40MB + Engine MyISAM
wp_users: Data: 0.86MB + Index: 0.65MB + Engine MyISAM
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: 1.03MB + Index: 1.13MB + 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: 1.52MB + Index: 0.73MB + Engine InnoDB
wp_wc_order_stats: Data: 1.52MB + Index: 0.50MB + Engine InnoDB
wp_wc_order_tax_lookup: Data: 0.19MB + Index: 0.20MB + Engine InnoDB
wp_wc_product_meta_lookup: Data: 0.02MB + 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_woocommerce_gzd_dhl_im_products: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_gzd_dhl_im_product_services: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_gzd_dhl_labelmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_gzd_dhl_labels: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_gzd_packaging: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_gzd_packagingmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_gzd_shipmentmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_gzd_shipments: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_woocommerce_gzd_shipment_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_gzd_shipment_items: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_gzd_shipment_labelmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_gzd_shipment_labels: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_gzd_shipping_provider: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_gzd_shipping_providermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woo_shipment_status_email: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woo_shippment_provider: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
wp_wpmm_subscribers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB

### Post Type Counts ###

attachment: 5624
cma_thread: 9
display_type: 7
document_template: 8
gal_display_source: 5
invoice: 5466
lightbox_library: 7
mailpoet_page: 1
nav_menu_item: 107
ngg_gallery: 7
ngg_pictures: 210
oembed_cache: 1
page: 128
post: 73
product: 23
revision: 2388
shop_coupon: 79
shop_order: 5080
shop_order_refund: 59
was: 10
wpcf7_contact_form: 2
wpspaios_slider: 1

### Security ###

Secure connection (HTTPS): ✔
Hide errors from visitors: ✔

### Active Plugins (18) ###

T5 Embed Post Shortcode: by Thomas Scholz – 2012.08.17
BLKM: by Example.com Software GmbH & Co. KG – 0.4.0
example.com: by Example.com Software GmbH & Co. KG – 0.2.1
Contact Form 7: by Takayuki Miyoshi – 5.4.2
GDPR Cookie Consent: by WebToffee – 2.0.5
Mollie Payments for WooCommerce: by Mollie – 6.5.2
PHP Compatibility Checker: by WP Engine – 1.5.0
Post Notification: by example.com
(based on Moritz Strübe) – 1.2.50

Recent Posts Widget Extended: by Satrya – 1.0.0
Recently Registered: by Mika Epstein – 3.4.3
Table Sorter: by Farhan Noor – 2.2
WooCommerce Blocks: by Automattic – 5.6.0
PayPal PLUS for WooCommerce: by Inpsyde GmbH – 2.2.1
WooCommerce Admin: by WooCommerce – 2.4.4
Germanized for WooCommerce Pro: by vendidero – 3.2.6
Germanized for WooCommerce: by vendidero – 3.5.3
WooCommerce: by Automattic – 5.5.2
NextGEN Gallery: by Imagely – 3.13

### Inactive Plugins (14) ###

2J SlideShow: by 2J Slideshow Team – 1.3.54
Bootstrap Blocks: by Liip AG – 3.3.2
Bootstrap for Contact Form 7: by Felix Arntz – 1.4.8
Enable jQuery Migrate Helper: by The WordPress Team – 1.3.0
heidelpay WooCommerce: by heidelpay – 1.6.0
NextGEN Pro: by Imagely – 3.7.0
Query Monitor: by John Blackbourn – 3.7.1
SlidersPack - All In One Image/Post Slider: by WP OnlineSupport – 1.21
User Switching: by John Blackbourn & contributors – 1.5.7
Vendidero Helper: by Vendidero – 1.3.0
WooCommerce Heidelpay Gateway: by Hinnerk Altenburg – 1.2.0
WooCommerce Helper: by WooCommerce – 1.7.2 – Network enabled
WP Crontrol: by John Blackbourn & crontributors – 1.10.0
WP Maintenance Mode: by Designmodo – 2.4.1

### 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: –

### WC Pages ###

Shop base: #3730 - /shop
Cart: #3731 - /shop/cart
Checkout: #3732 - /shop/checkout
My account: #3733 - /account
Terms and conditions: #3736 - /shop/terms

### Theme ###

Name: Example.com 2016
Version: 1.2
Author URL: http://www.example.com
Child Theme: ✔
Parent Theme Name: Bootstrap Basic
Parent Theme Version: 1.1.3
Parent Theme Author URL: 
WooCommerce Support: ✔

### Templates ###

Archive Template: Your theme has a woocommerce.php file
you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.

Overrides: example.com_bootstrap_2016/woocommerce/myaccount/form-edit-account.php
example.com_bootstrap_2016/woocommerce/myaccount/my-account.php

### Action Scheduler ###

Complete: 4,346
Oldest: 2021-07-09 11:40:06 +0200
Newest: 2021-08-09 11:31:47 +0200

Failed: 2
Oldest: 2021-08-09 00:34:22 +0200
Newest: 2021-08-09 00:34:22 +0200

Pending: 3
Oldest: 2021-08-09 11:41:47 +0200
Newest: 2021-08-10 04:00:06 +0200

### Status report information ###

Generated at: 2021-08-09 11:40:07 +02:00
moon0326 commented 3 years ago

Hi @bome, thank you for taking the time to report this bug. We really appreciate it. Unfortunately, I wasn't able to reproduce it on my end. I've performed the following steps, but I did not see the mentioned exception.

  1. Fresh install an instance of WordPress and WooCommerce
  2. Enable WP_DEBUG
  3. Navigate to WooCommerce -> Home
  4. Check wp-content/debug.log and PHP-FPM log.

It looks like there might be an issue with notes data. Could you perform the following steps and see if you still have the issue?

  1. Install and activate WP Crontrol plugin.
  2. Once activated, navigate to Tools -> Cron Events
  3. Locate wc_admin_daily and click "Run now"

Your notes should be refreshed. Please let us know if the problem persists.

bome commented 3 years ago

Thanks a lot! I've run wc_admin_daily cron, but the exception still occurred. Since it seems that it was just some kind of stale data. I've cleared the wp_wc_admin_notes table and I don't see any exceptions now. If the exception comes back when there are new admin notes, I'll report here. Thanks again!

moon0326 commented 3 years ago

Thanks a lot! I've run wc_admin_daily cron, but the exception still occurred. Since it seems that it was just some kind of stale data. I've cleared the wp_wc_admin_notes table and I don't see any exceptions now. If the exception comes back when there are new admin notes, I'll report here. Thanks again!

Thank you for testing it. Yes, please report it back if you see it again.