Can’t Update Products
-
Hi, Every time I press update product I get this error.
[01-Mar-2023 16:30:47 UTC] PHP Fatal error: Uncaught Error: Attempt to assign property “there_are_now_products” on array in /var/web/staging/public_html/wp-content/plugins/woocommerce/src/Admin/RemoteInboxNotifications/StoredStateSetupForProducts.php:125
I have tested with only the woocommerce plugin active and the basic Twenty Twenty-Three theme.
Please advise.
Thanks
-
Hi @fulcare,
Are you using the latest version of WooCommerce?
Please share the following information for further investigation:
- System Status: You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
- Fatal Error Log: A copy of any fatal error log found under WooCommerce > System Status > Logs (if available).
Hi @fulcare
Thanks for reaching out!
I understand that you are receiving the error message above when updating a product on your site.
Can you please try to switch to the default Storefront theme and only WooCommerce plugin is enabled and see if this works?
If so, then this kind of problem is usually caused by your theme or a third-party plugin present on your site. We can run a conflict test to verify this. I’d recommend cloning your site to a staging environment and performing the tests described on this guide without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.
If this was caused by a third-party plugin present on your site, it would be best to reach out to the developers for further assistance here.
If this did not resolve the issue, please share your System Status Report, that will help us further troubleshoot.
You can find it via
WooCommerce > Status
. SelectGet system report
and 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
.You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.
Let us know how it goes!
` ### WordPress Environment ### WordPress address (URL): https://www.fulcare.co.uk Site address (URL): https://www.fulcare.co.uk WC Version: 7.4.1 REST API Version: ?</img> 7.4.1 WC Blocks Version: ?</img> 9.4.4 Action Scheduler Version: ?</img> 3.5.4 Log Directory Writable: ?</img> WP Version: 6.1.1 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ?</img> Language: en_GB External object cache: ?</img> ### Server Environment ### Server Info: nginx/1.22.1 PHP Version: 8.0.28 PHP Post Max Size: 750 MB PHP Time Limit: 300 PHP Max Input Vars: 1000 cURL Version: 7.58.0 OpenSSL/1.1.1 SUHOSIN Installed: – MySQL Version: 10.3.38-MariaDB-1:10.3.38+maria~ubu1804 Max Upload Size: 750 MB Default Timezone is UTC: ?</img> Default timezone is Europe/London - it should be UTC fsockopen/cURL: ?</img> SoapClient: ?</img> DOMDocument: ?</img> GZip: ?</img> Multibyte String: ?</img> Remote Post: ?</img> Remote Get: ?</img> ### Database ### WC Database Version: 7.4.1 WC Database Prefix: mw_ Total Database Size: 1047.37MB Database Data Size: 545.21MB Database Index Size: 502.16MB mw_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB mw_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mw_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mw_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB mw_woocommerce_order_items: Data: 10.52MB + Index: 5.52MB + Engine InnoDB mw_woocommerce_order_itemmeta: Data: 52.59MB + Index: 59.17MB + Engine InnoDB mw_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB mw_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mw_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mw_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mw_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mw_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mw_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mw_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mw_actionscheduler_actions: Data: 17.09MB + Index: 8.45MB + Engine MyISAM mw_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM mw_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM mw_actionscheduler_logs: Data: 11.59MB + Index: 8.46MB + Engine MyISAM mw_adtribes_my_conversions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mw_aioseo_cache: Data: 0.39MB + Index: 0.03MB + Engine InnoDB mw_aioseo_notifications: Data: 0.02MB + Index: 0.06MB + Engine InnoDB mw_aioseo_posts: Data: 0.52MB + Index: 0.08MB + Engine InnoDB mw_b2bwoo_pricelists: Data: 0.00MB + Index: 0.00MB + Engine MyISAM mw_b2bwoo_pricelists_products: Data: 2.16MB + Index: 0.43MB + Engine MyISAM mw_berocket_termmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mw_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mw_comments: Data: 40.58MB + Index: 20.09MB + Engine InnoDB mw_cybersource: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mw_defender_audit_log: Data: 15.48MB + Index: 3.71MB + Engine MyISAM mw_defender_email_log: Data: 0.11MB + Index: 0.03MB + Engine MyISAM mw_defender_lockout: Data: 9.52MB + Index: 2.81MB + Engine InnoDB mw_defender_lockout_log: Data: 3.52MB + Index: 2.25MB + Engine InnoDB mw_defender_scan: Data: 0.00MB + Index: 0.00MB + Engine MyISAM mw_defender_scan_item: Data: 0.00MB + Index: 0.01MB + Engine MyISAM mw_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mw_gf_entry: Data: 1.52MB + Index: 0.27MB + Engine InnoDB mw_gf_entry_meta: Data: 2.52MB + Index: 3.19MB + Engine InnoDB mw_gf_entry_notes: Data: 1.52MB + Index: 0.22MB + Engine InnoDB mw_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mw_gf_form_meta: Data: 0.11MB + Index: 0.00MB + Engine InnoDB mw_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mw_gf_form_view: Data: 0.22MB + Index: 0.22MB + Engine InnoDB mw_gf_rest_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mw_incoming_payments: Data: 0.00MB + Index: 0.00MB + Engine MyISAM mw_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mw_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mw_options: Data: 5.36MB + Index: 0.14MB + Engine InnoDB mw_pmxe_exports: Data: 0.68MB + Index: 0.00MB + Engine MyISAM mw_pmxe_google_cats: Data: 0.26MB + Index: 0.05MB + Engine MyISAM mw_pmxe_posts: Data: 0.89MB + Index: 0.39MB + Engine MyISAM mw_pmxe_templates: Data: 0.03MB + Index: 0.00MB + Engine MyISAM mw_pmxi_files: Data: 0.00MB + Index: 0.00MB + Engine MyISAM mw_pmxi_hash: Data: 0.29MB + Index: 0.20MB + Engine MyISAM mw_pmxi_history: Data: 0.00MB + Index: 0.00MB + Engine MyISAM mw_pmxi_images: Data: 0.26MB + Index: 0.05MB + Engine MyISAM mw_pmxi_imports: Data: 0.66MB + Index: 0.00MB + Engine MyISAM mw_pmxi_posts: Data: 0.98MB + Index: 0.32MB + Engine MyISAM mw_pmxi_templates: Data: 0.02MB + Index: 0.00MB + Engine MyISAM mw_postmeta: Data: 218.78MB + Index: 220.58MB + Engine InnoDB mw_posts: Data: 16.55MB + Index: 12.06MB + Engine InnoDB mw_redirection_404: Data: 0.00MB + Index: 0.00MB + Engine MyISAM mw_redirection_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM mw_redirection_items: Data: 1.31MB + Index: 0.83MB + Engine MyISAM mw_redirection_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM mw_smush_dir_images: Data: 0.38MB + Index: 0.28MB + Engine InnoDB mw_snippets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mw_special_discounts_products: Data: 0.00MB + Index: 0.00MB + Engine MyISAM mw_termmeta: Data: 0.30MB + Index: 0.31MB + Engine InnoDB mw_terms: Data: 0.19MB + Index: 0.22MB + Engine InnoDB mw_term_relationships: Data: 1.33MB + Index: 0.20MB + Engine InnoDB mw_term_taxonomy: Data: 0.30MB + Index: 0.36MB + Engine InnoDB mw_usermeta: Data: 51.59MB + Index: 65.19MB + Engine InnoDB mw_users: Data: 5.52MB + Index: 7.55MB + Engine InnoDB mw_volume_discounts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM mw_volume_discounts_products: Data: 0.02MB + Index: 0.00MB + Engine MyISAM mw_wcpdf_invoice_number: Data: 0.23MB + Index: 0.13MB + Engine MyISAM mw_wc_admin_notes: Data: 0.08MB + Index: 0.00MB + Engine InnoDB mw_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB mw_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mw_wc_customer_lookup: Data: 5.52MB + Index: 5.03MB + Engine InnoDB mw_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mw_wc_order_coupon_lookup: Data: 0.06MB + Index: 0.03MB + Engine InnoDB mw_wc_order_product_lookup: Data: 5.52MB + Index: 8.06MB + Engine InnoDB mw_wc_order_stats: Data: 4.52MB + Index: 5.55MB + Engine InnoDB mw_wc_order_tax_lookup: Data: 3.52MB + Index: 4.03MB + Engine InnoDB mw_wc_product_attributes_lookup: Data: 0.17MB + Index: 0.14MB + Engine InnoDB mw_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mw_wc_product_meta_lookup: Data: 0.47MB + Index: 0.78MB + Engine InnoDB mw_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mw_wc_reserved_stock: Data: 0.05MB + Index: 0.01MB + Engine MyISAM mw_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mw_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mw_wml_entries: Data: 17.52MB + Index: 0.00MB + Engine InnoDB mw_woocommerce_blink_payment_wallets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mw_woocommerce_payment_network_wallets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mw_woocommerce_shipping_table_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM mw_wpfm_backup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM mw_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mw_wps_hit: Data: 9.52MB + Index: 32.64MB + Engine InnoDB mw_wps_index: Data: 6.73MB + Index: 10.60MB + Engine MyISAM mw_wps_key: Data: 0.52MB + Index: 0.75MB + Engine MyISAM mw_wps_object_term: Data: 1.28MB + Index: 2.41MB + Engine InnoDB mw_wps_object_type: Data: 0.00MB + Index: 0.01MB + Engine MyISAM mw_wps_query: Data: 1.52MB + Index: 1.52MB + Engine InnoDB mw_wps_uri: Data: 5.52MB + Index: 3.52MB + Engine InnoDB mw_wps_user_agent: Data: 0.23MB + Index: 0.11MB + Engine InnoDB mw_wp_phpmyadmin_extension__errors_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mw_wt_iew_action_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mw_wt_iew_cron: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mw_wt_iew_ftp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mw_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mw_xoo_wl_list: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mw_xoo_wl_list_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mw_yoast_indexable: Data: 3.75MB + Index: 1.20MB + Engine MyISAM mw_yoast_indexable_hierarchy: Data: 0.22MB + Index: 0.65MB + Engine MyISAM mw_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM mw_yoast_primary_term: Data: 0.01MB + Index: 0.02MB + Engine MyISAM mw_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mw_yoast_seo_meta: Data: 0.25MB + Index: 0.00MB + Engine InnoDB wp_f3_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_f3_comments: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_f3_defender_audit_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_f3_defender_email_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_f3_defender_lockout: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_f3_defender_lockout_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_f3_defender_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_f3_defender_scan_item: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_f3_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_f3_options: Data: 0.11MB + Index: 0.03MB + Engine InnoDB wp_f3_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_f3_posts: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_f3_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_f3_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_f3_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_f3_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_f3_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_f3_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_f3_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB ### Post Type Counts ### acf-field: 163 acf-field-group: 20 attachment: 3983 br_product_filter: 2 custom_css: 1 customize_changeset: 1 faq: 2 nav_menu_item: 75 oembed_cache: 23 page: 19 popup: 3 popup_theme: 8 post: 17 product: 1665 product_variation: 7 revision: 154 rlp_report: 83 shop_coupon: 3 shop_order: 44785 shop_order_refund: 407 wphb_minify_group: 49 ### Security ### Secure connection (HTTPS): ?</img> Hide errors from visitors: ?</img> ### Active Plugins (41) ### Gravity Forms: by Gravity Forms – 2.7.2 B2BeCONNECT: by InSync – 1.0.0 Blink-WooCommerce: by – Advanced Custom Fields PRO: by WP Engine – 6.0.7 All-in-One WP Migration: by ServMask – 7.71 Alternate Product Recommendations for WooCommerce: by FantasticPlugins – 1.4.1 Classic Editor: by WordPress Contributors – 1.6.2 Cloudflare: by Cloudflare Inc. – 4.11.0 Code Snippets: by Code Snippets Pro – 3.2.2 Doofinder for WooCommerce: by doofinder – 1.5.46 Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 8.12.1 Insync WP REST Filter: by Insync – 1.0.3 One Click Order Re-Order: by CedCommerce – 1.1.9 Product Visibility by User Role for WooCommerce: by WP Wham – 1.8.0 Redirection: by John Godley – 5.3.9 Simple Banner: by Ryan Petersen – 2.13.3 Timber: by Jared Novack + Upstatement – 1.22.1 WooCommerce Media API: by woopos – 2.8 Product Feed PRO for WooCommerce: by AdTribes.io – 12.3.5 Codisto Channel Cloud: by Codisto – 1.3.65 Checkout Field Editor for WooCommerce (Pro): by ThemeHigh – 3.4.0 WooCommerce Google Analytics Integration: by WooCommerce – 1.6.1 WooCommerce PayPal Payments: by WooCommerce – 2.0.2 PDF Invoices & Packing Slips for WooCommerce: by WP Overnight – 3.4.0 WooCommerce Product Search: by itthinx – 4.11.0 WooCommerce Quick View: by Themesquad – 1.7.0 WooCommerce Role Based Methods: by WPBackOffice – 2.4.3 WooCommerce Table Rate Shipping: by WooCommerce – 3.1.0 WooCommerce Twilio SMS Notifications: by SkyVerge – 1.17.0 WooCommerce Waitlist: by Neil Pie – 2.3.7 WooCommerce: by Automattic – 7.4.1 Yoast SEO: by Team Yoast – 20.2.1 WP All Export Pro: by Soflyy – 1.8.3 Defender Pro: by WPMU DEV – 3.9.0 Hummingbird Pro: by WPMU DEV – 3.4.3 WP Mail Log: by WPVibes – 1.0.2 WP-PageNavi: by Lester 'GaMerZ' Chan – 2.94.0 Smart Image Resize PRO: by Nabil Lemsieh – 1.7.8 Smush Pro: by WPMU DEV – 3.12.5 WP All Export - WooCommerce Export Add-On Pro: by Soflyy – 1.0.6 WPMU DEV Dashboard: by WPMU DEV – 4.11.18 ### Inactive Plugins (2) ### User Role Editor: by Vladimir Garagulya – 4.63.2 WooCommerce Shipment Tracking: by WooCommerce – 2.2.0 ### Dropin Plugins (1) ### object-cache.php: Hosting Object Cache ### Must Use Plugins (2) ### Hosting: by – 0.1 yith_debugger.php: by Armando Liccardo (YITH) – 1.0.0 ### Settings ### API Enabled: ?</img> Force SSL: – Currency: GBP (£) 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 base: #173 - /shop/ Basket: #174 - /basket/ Checkout: #175 - /checkout/ My account: #176 - /my-account/ Terms and conditions: #336 - /terms-conditions/ ### Theme ### Name: Mediaworks Version: 1.0 Author URL: https://www.mediaworks.co.uk/ Child Theme: ?</img> – 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: ?</img> ### 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: mw-fulcare/woocommerce/cart/cart-totals.php mw-fulcare/woocommerce/cart/cart.php version 3.8.0 is out of date. The core version is 7.4.0 mw-fulcare/woocommerce/cart/mini-cart.php version 3.5.0 is out of date. The core version is 5.2.0 mw-fulcare/woocommerce/checkout/form-checkout.php mw-fulcare/woocommerce/global/quantity-input.php version 3.6.0 is out of date. The core version is 7.4.0 mw-fulcare/woocommerce/myaccount/navigation.php mw-fulcare/woocommerce/single-product/product-image.php Outdated Templates: ?</img> Learn how to update ### Product Visibility by User Role Settings ### Product Visibility by User Role: yes Hide catalog visibility: yes Make non-purchasable: yes Modify query: yes Hide menu items: no Hide product categories/tags: no Redirect: Enable Redirect URLs per product: no Replace description: no Content to replace with, e.g.: Log in to see the product description.: Replace short description: no Content to replace with, e.g.: Log in to see the product description.: User roles to display in settings: Array ( ) Admin products list column: no Product quick edit: no Products bulk edit: no Bulk settings for role guest: not set Enable/Disable: Hide all: Products: Invisible: Product categories: Invisible: Product tags: Invisible: Bulk settings for role administrator: not set Enable/Disable: Hide all: Products: Invisible: Product categories: Invisible: Product tags: Invisible: Bulk settings for role editor: not set Enable/Disable: Hide all: Products: Invisible: Product categories: Invisible: Product tags: Invisible: Bulk settings for role author: not set Enable/Disable: Hide all: Products: Invisible: Product categories: Invisible: Product tags: Invisible: Bulk settings for role contributor: not set Enable/Disable: Hide all: Products: Invisible: Product categories: Invisible: Product tags: Invisible: Bulk settings for role subscriber: not set Enable/Disable: Hide all: Products: Invisible: Product categories: Invisible: Product tags: Invisible: Bulk settings for role customer: not set Enable/Disable: Hide all: Products: Invisible: Product categories: Invisible: Product tags: Invisible: Bulk settings for role shop_manager: not set Enable/Disable: Hide all: Products: Invisible: Product categories: Invisible: Product tags: Invisible: Bulk settings for role cc: not set Enable/Disable: Hide all: Products: Invisible: Product categories: Invisible: Product tags: Invisible: Bulk settings for role ch: not set Enable/Disable: Hide all: Products: Invisible: Product categories: Invisible: Product tags: Invisible: Bulk settings for role wpseo_manager: not set Enable/Disable: Hide all: Products: Invisible: Product categories: Invisible: Product tags: Invisible: Bulk settings for role wpseo_editor: not set Enable/Disable: Hide all: Products: Invisible: Product categories: Invisible: Product tags: Invisible: ### WooCommerce PayPal Payments ### Onboarded: ?</img> Shop country code: GB WooCommerce currency supported: ?</img> Advanced Card Processing available in country: ?</img> Pay Later messaging available in country: ?</img> Webhook status: – Vault enabled: ?</img> Logging enabled: – Reference Transactions: – Used PayPal Checkout plugin: ?</img> Tracking enabled: ?</img> ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-marketing mobile-app-banner navigation new-product-management-experience 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 product-variation-management settings Daily Cron: ?</img> Next scheduled: 2023-03-06 22:27:02 +00:00 Options: ?</img> Notes: 115 Onboarding: completed ### Action Scheduler ### Complete: 41,811 Oldest: 2023-02-07 15:29:29 +0000 Newest: 2023-03-06 12:10:07 +0000 Failed: 1,915 Oldest: 2023-02-13 15:43:30 +0000 Newest: 2023-03-06 12:06:05 +0000 Pending: 5 Oldest: 2023-03-06 12:21:05 +0000 Newest: 2023-03-07 03:11:26 +0000 ### Status report information ### Generated at: 2023-03-06 12:10:33 +00:00 `
2023-02-04T16:01:57+00:00 CRITICAL Allowed memory size of 536870912 bytes exhausted (tried to allocate 1482001496 bytes) in /var/web/site/public_html/wp-content/plugins/wp-hummingbird/core/class-logger.php on line 460 2023-02-04T23:08:45+00:00 CRITICAL Uncaught Error: Call to a member function is_on_sale() on bool in /var/web/site/public_html/wp-content/themes/mw-fulcare/temp-home.php:930 Stack trace: #0 /var/web/site/public_html/wp-includes/template-loader.php(106): include() #1 /var/web/site/public_html/wp-blog-header.php(19): require_once('/var/web/site/p...') #2 /var/web/site/public_html/index.php(18): require('/var/web/site/p...') #3 {main} thrown in /var/web/site/public_html/wp-content/themes/mw-fulcare/temp-home.php on line 930 2023-02-04T23:09:48+00:00 CRITICAL Uncaught Error: Call to a member function is_on_sale() on bool in /var/web/site/public_html/wp-content/themes/mw-fulcare/temp-home.php:930 Stack trace: #0 /var/web/site/public_html/wp-includes/template-loader.php(106): include() #1 /var/web/site/public_html/wp-blog-header.php(19): require_once('/var/web/site/p...') #2 /var/web/site/public_html/index.php(18): require('/var/web/site/p...') #3 {main} thrown in /var/web/site/public_html/wp-content/themes/mw-fulcare/temp-home.php on line 930 2023-02-04T23:10:51+00:00 CRITICAL Uncaught Error: Call to a member function is_on_sale() on bool in /var/web/site/public_html/wp-content/themes/mw-fulcare/temp-home.php:930 Stack trace: #0 /var/web/site/public_html/wp-includes/template-loader.php(106): include() #1 /var/web/site/public_html/wp-blog-header.php(19): require_once('/var/web/site/p...') #2 /var/web/site/public_html/index.php(18): require('/var/web/site/p...') #3 {main} thrown in /var/web/site/public_html/wp-content/themes/mw-fulcare/temp-home.php on line 930 2023-02-04T23:11:55+00:00 CRITICAL Uncaught Error: Call to a member function is_on_sale() on bool in /var/web/site/public_html/wp-content/themes/mw-fulcare/temp-home.php:930 Stack trace: #0 /var/web/site/public_html/wp-includes/template-loader.php(106): include() #1 /var/web/site/public_html/wp-blog-header.php(19): require_once('/var/web/site/p...') #2 /var/web/site/public_html/index.php(18): require('/var/web/site/p...') #3 {main} thrown in /var/web/site/public_html/wp-content/themes/mw-fulcare/temp-home.php on line 930
Hi @fulcare ,
Thanks for sharing the SSR and error logs.
I understand that you have tested with only WooCommerce active, and the Twenty Twenty-Three theme, and the issue was still present, correct?
Let’s have a look at the error logs you have provided:
2023-02-04T23:08:45+00:00 CRITICAL Uncaught Error: Call to a member function is_on_sale() on bool in /var/web/site/public_html/wp-content/themes/mw-fulcare/temp-home.php:930
The error message above suggests that the error is occurring in the “temp-home.php” file on line 930 of the “mw-fulcare” theme. You can try updating the theme to see if a newer version fixes the issue.
2023-02-04T16:01:57+00:00 CRITICAL Allowed memory size of 536870912 bytes exhausted (tried to allocate 1482001496 bytes) in /var/web/site/public_html/wp-content/plugins/wp-hummingbird/core/class-logger.php on line 460
This above error occurs when your website runs out of memory while trying to perform a task. This being said, can you see if increasing your WordPress memory limit resolves the issue?
Below are some methods to try if you would like to do this on your own, alternatively you could reach out to your host provider to do this for you:
Edit your wp-config.php file
Add this to the top, before the line that says, “Happy Blogging”:define(‘WP_MEMORY_LIMIT’, ‘1024M’);
Edit your PHP.ini file
If you have access to your PHP.ini file, change the line in PHP.ini
If your line shows 64M try 256M:memory_limit = 256M ;
?Maximum amount of memory a script may consume (64MB)Edit your .htaccess file
If you don’t have access to PHP.ini try adding this to an .htaccess file:php_value memory_limit 256M
Please see the this documentation for more information.
Should the issue still persist, please can you share a screenshot of the error message, exactly as, and where you see it.
Snipboard.io?can be used for easily sharing screenshots – please follow the instructions on that page, then paste the URL in this thread.
Cheers!
Ok Thank you
Hi @fulcare ,
You are very welcome!
Please let us know the outcome after doing the above suggestions ??
Cheers!
The error log is still coming with the below error and the issue hasn’t been fixed.
2023-03-10T10:41:47+00:00 CRITICAL Uncaught Error: Attempt to assign property "there_are_now_products" on array in /var/web/site/public_html/wp-content/plugins/woocommerce/src/Admin/RemoteInboxNotifications/StoredStateSetupForProducts.php:125 Stack trace: #0 /var/web/site/public_html/wp-content/plugins/woocommerce/src/Admin/RemoteInboxNotifications/StoredStateSetupForProducts.php(111): Automattic\WooCommerce\Admin\RemoteInboxNotifications\StoredStateSetupForProducts::update_stored_state_and_possibly_run_remote_notifications() #1 /var/web/site/public_html/wp-includes/class-wp-hook.php(308): Automattic\WooCommerce\Admin\RemoteInboxNotifications\StoredStateSetupForProducts::run_on_transition_post_status('publish', 'publish', Object(WP_Post)) #2 /var/web/site/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #3 /var/web/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /var/web/site/public_html/wp-includes/post.php(5347): do_action('transition_post...', 'publish', 'publish', Object(WP_Post)) #5 /var/web/site/public_html/wp-includes/post.php(4607): wp_transition_post_status('publish', 'publish', Object(WP_Post)) #6 /var/web/site/public_html/wp-includes/post.php(4819): wp_insert_post(Array, false, true) #7 /var/web/site/public_html/wp-admin/includes/post.php(426): wp_update_post(Array) #8 /var/web/site/public_html/wp-admin/post.php(227): edit_post() #9 {main} thrown in /var/web/site/public_html/wp-content/plugins/woocommerce/src/Admin/RemoteInboxNotifications/StoredStateSetupForProducts.php on line 125
Hello @fulcare,
I’m sorry to hear you still experiencing this.
Can you please try downgrading your server’s PHP to7.4
and switch your site’s timezone to UTC?
Let us know how it goes!Hi, We are no longer able to downgrade our site to PHP 7.4 as our hosting provider doesn’t allow.
Hi @fulcare
We totally understand this.
For us to check if this is being caused by the PHP version on your site, I’d recommend cloning your site to a staging environment without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.
Let us know how that goes!
Ok Thank you I will try
Hi, that didn’t worked but some suggested this that worked.
A workaround to prevent this is to replace the /woocommerce/src/Admin/RemoteInboxNotifications/StoredStateSetupForProducts.php line 119 from:
$stored_state = RemoteInboxNotificationsEngine::get_stored_state();
to
$stored_state = (object) RemoteInboxNotificationsEngine::get_stored_state();
Hi @fulcare
Sorry to hear that downgrading the PHP version of your site did not resolve the issue here but I am glad that you found a workaround that worked on your site. Thanks for sharing this with the community, this might help others having the same problem as well! ??
I will be marking this thread as resolved. Should you have further inquiries, kindly create a new topic here.
- The topic ‘Can’t Update Products’ is closed to new replies.