• Resolved GeoffreyCRM

    (@geoffreycrm)


    I have just updated my website to WooCommerce Version 4.9.1. Since this update I have had an issue with updating products and plugins. When I change the text or variations of a product and click update the little wheel spins round until the connection times out and I get the message: There has been a critical error on this website. Please check your site admin email inbox for instructions.

    The same happens when I try to deactivate or delete a plugin – nothing happens and then the connection times out. I have changed from the Storefront theme to others and the same thing happens when I am using these themes.

    The WordPress log says that the issue is with the WooCommerce plugin itself. I have no idea what to do to resolve things other than trying to roll back to an earlier version of WooCommerce which didn’t have this issue.

Viewing 15 replies - 16 through 30 (of 42 total)
  • @geoffreycrm

    Did the filter solve the plugin updating for you, too? I had to address that issue separately (with a hack pending action on this bug from WooCommerce).

    see https://www.ads-software.com/support/topic/product-save-times-out-to-502-error/#post-13947711

    Thread Starter GeoffreyCRM

    (@geoffreycrm)

    @ck-macleod Hello, yes I just used the filter code and nothing else and that sorted out the issue for me. I can now update products and activate/delete plugins as normal.

    Thanks @geoffreycrm It could be that my hack was necessary only due to peculiarities of the installations I was working on, possibly including previous attempts to solve by direct db editing (somewhat as was suggested earlier on this thread).

    I’m not sure I’ll ever learn the answer, as frankly I can’t spend much more time on this crisis right now. Either way, one might hope that action soon by Automattic devs will obviate the necessity of adding anything to the site, and let us remove emergency additions of all types. Maybe things’ll be clear when they solve it.

    Hello
    I have the same problem, I can’t edit or add a product under wp 5.6 – php 7.3 – woocommerce 4.9.1 but I am with frontstore theme
    Could you tell me precisely (because I an novice with editing php code) what to do in wich file please, thanks a lot

    Thread Starter GeoffreyCRM

    (@geoffreycrm)

    @cavedebacchus I don’t know very much about editing php code. I used to Code Snippets plugin (which makes this kind of thing much easier for people who don’t know loads about it like me) and pasted the code into this plugin and that worked for me.

    Same here. PLEASE FIX THIS FAST!!! I am losing $$$. I already opened a ticket on this Friday and still no decent reply for a fix. I see the hack fix in the tread above (thank you), but I am not a programmer and would never touch any files – I just role with plugins as I don’t know how to do any of that stuff. I do have the Woo app on my iPhone, but I also receive the 524 error when I try to edit products on my phone.

    I will restate my Friday ticket here:

    I have deactivate EVERY SINGLE PLUGIN on my website, except 4.9.1. I have the Storefront theme. And yet, I still can not edit product – I get a 524 error. I have gone rounds and rounds today with SiteGroud and Cloudfare and they both are saying it is WooCommerece. And yes, I’ve purged my CDN. Can someone please help me? Here is current system report. Thank you so very much for your help.

    ### WordPress Environment ###

    WordPress address (URL): https://www.sportswreathshop.com
    Site address (URL): https://www.sportswreathshop.com
    WC Version: 4.9.1
    REST API Version: ? 4.9.1
    WC Blocks Version: ? 4.0.0
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 1.8.3
    Log Directory Writable: ?
    WP Version: 5.6
    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.26
    PHP Post Max Size: 256 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 3000
    cURL Version: 7.66.0
    OpenSSL/1.1.1g-fips

    SUHOSIN Installed: –
    MySQL Version: 5.7.26-29-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: 4.9.1
    WC Database Prefix: mej_
    Total Database Size: 153.16MB
    Database Data Size: 80.61MB
    Database Index Size: 72.55MB
    mej_woocommerce_sessions: Data: 1.52MB + Index: 0.02MB + Engine InnoDB
    mej_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    mej_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    mej_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    mej_woocommerce_order_items: Data: 0.33MB + Index: 0.11MB + Engine InnoDB
    mej_woocommerce_order_itemmeta: Data: 2.52MB + Index: 3.03MB + Engine InnoDB
    mej_woocommerce_tax_rates: Data: 0.09MB + Index: 0.09MB + Engine InnoDB
    mej_woocommerce_tax_rate_locations: Data: 0.13MB + Index: 0.16MB + Engine InnoDB
    mej_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    mej_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    mej_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    mej_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    mej_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    mej_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    mej_actionscheduler_actions: Data: 2.52MB + Index: 1.33MB + Engine InnoDB
    mej_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    mej_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    mej_actionscheduler_logs: Data: 1.52MB + Index: 1.80MB + Engine InnoDB
    mej_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    mej_comments: Data: 1.52MB + Index: 0.89MB + Engine InnoDB
    mej_failed_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    mej_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    mej_mailchimp_carts: Data: 0.48MB + Index: 0.00MB + Engine InnoDB
    mej_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    mej_options: Data: 5.52MB + Index: 0.30MB + Engine InnoDB
    mej_postmeta: Data: 45.58MB + Index: 55.23MB + Engine InnoDB
    mej_posts: Data: 7.52MB + Index: 1.00MB + Engine InnoDB
    mej_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    mej_redirection_404: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    mej_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    mej_redirection_items: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
    mej_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    mej_revslider_css: Data: 0.13MB + Index: 0.00MB + Engine InnoDB
    mej_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    mej_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    mej_revslider_sliders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    mej_revslider_slides: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    mej_revslider_static_slides: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    mej_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    mej_termmeta: Data: 0.30MB + Index: 0.28MB + Engine InnoDB
    mej_terms: Data: 0.16MB + Index: 0.22MB + Engine InnoDB
    mej_term_relationships: Data: 0.50MB + Index: 0.39MB + Engine InnoDB
    mej_term_taxonomy: Data: 0.19MB + Index: 0.17MB + Engine InnoDB
    mej_usermeta: Data: 1.52MB + Index: 3.03MB + Engine InnoDB
    mej_users: Data: 0.09MB + Index: 0.08MB + Engine InnoDB
    mej_wc_admin_notes: Data: 0.11MB + Index: 0.00MB + Engine InnoDB
    mej_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    mej_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    mej_wc_customer_lookup: Data: 0.13MB + Index: 0.08MB + Engine InnoDB
    mej_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    mej_wc_gpf_render_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    mej_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    mej_wc_order_product_lookup: Data: 0.33MB + Index: 0.36MB + Engine InnoDB
    mej_wc_order_stats: Data: 0.14MB + Index: 0.16MB + Engine InnoDB
    mej_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    mej_wc_product_meta_lookup: Data: 0.16MB + Index: 0.34MB + Engine InnoDB
    mej_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    mej_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    mej_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    mej_wfConfig: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    mej_wfCrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    mej_wfIssues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    mej_wfLocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    mej_wfLogins: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    mej_wfNotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    mej_wfStatus: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    mej_woocommerce_gpf_google_taxonomy: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    mej_woocommerce_pinterest: Data: 0.30MB + Index: 0.28MB + Engine InnoDB
    mej_woocommerce_pinterest_boards_mapping: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
    mej_woocommerce_pinterest_google_categories_mapping: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    mej_woocommerce_pinterest_google_product_categories: Data: 0.28MB + Index: 0.00MB + Engine InnoDB
    mej_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    mej_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    mej_yoast_indexable: Data: 3.52MB + Index: 1.70MB + Engine InnoDB
    mej_yoast_indexable_hierarchy: Data: 0.25MB + Index: 0.41MB + Engine InnoDB
    mej_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    mej_yoast_primary_term: Data: 0.09MB + Index: 0.11MB + Engine InnoDB
    mej_yoast_seo_links: Data: 0.09MB + Index: 0.03MB + Engine InnoDB
    mej_yoast_seo_meta: Data: 0.44MB + Index: 0.00MB + Engine InnoDB

    ### Post Type Counts ###

    acf-field: 1
    acf-field-group: 1
    amn_wpforms-lite: 1
    attachment: 1005
    atum_purchase_order: 2
    atum_supplier: 2
    customize_changeset: 716
    custom_css: 3
    elementor_library: 1
    jetpack-testimonial: 1
    jetpack_migration: 2
    jp_img_sitemap: 1
    jp_sitemap: 1
    jp_sitemap_master: 1
    mailpoet_page: 1
    mc4wp-form: 1
    nav_menu_item: 99
    oembed_cache: 254
    page: 19
    post: 10
    product: 685
    revision: 9
    schema: 2
    shop_coupon: 7
    shop_order: 987
    shop_order_refund: 23
    stocktend_object: 552
    stocktend_tryst: 6
    wafs: 1
    woo_discount: 2
    woo_discount_cart: 1
    wpautoterms_page: 2
    wpb-rs-global: 2
    wphb_minify_group: 58
    wpsm_accordion_pro: 4
    wp_block: 2
    wysijap: 1
    xlwcty_thankyou: 1

    ### Security ###

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

    ### Active Plugins (1) ###

    WooCommerce: by Automattic – 4.9.1

    ### Inactive Plugins (27) ###

    Advanced Database Cleaner PRO: by Younes JFR. – 3.1.6
    Advanced Order Export For WooCommerce: by AlgolPlus – 3.1.7
    Akismet Anti-Spam: by Automattic – 4.1.8
    Amount Left for Free Shipping for WooCommerce: by WPFactory – 1.9.6
    Cloudflare: by Cloudflare
    Inc. – 3.8.9

    CommerceGurus Commercekit: by CommerceGurus – 1.0.3
    Easy Theme and Plugin Upgrades: by Chris Jean – 2.0.1
    Estimated Delivery Date Plugin For WooCommerce: by PluginHive – 1.8.3
    Flexible Shipping UPS: by WP Desk – 1.11.0
    Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 7.14.0
    Gratisfaction- Loyalty Rewards Referral Birthday and Giveaway Program: by Appsmav – 3.9.6
    Jetpack by WordPress.com: by Automattic – 9.3.1
    Judge.me Product Reviews for WooCommerce: by Judge.me – 1.3.8
    Kirki Customizer Framework: by David Vongries – 3.1.6
    Mailchimp for WooCommerce: by Mailchimp – 2.5.0
    NextMove Lite – Thank You Page for WooCommerce: by XLPlugins – 2.13.0
    One Click Demo Import: by ProteusThemes – 2.6.1
    Page Optimize: by Automattic – 0.5.1
    Pinterest for WooCommerce: by premmerce – 2.3.1
    Redirection: by John Godley – 5.0
    SG Optimizer: by SiteGround – 5.7.12
    WooCommerce Google Product Feed: by Ademti Software Ltd. – 9.4.1
    WooCommerce USPS Shipping: by WooCommerce – 4.4.49
    WP AutoTerms: by WP AutoTerms – 2.4.4
    YITH WooCommerce Waiting List Premium: by YITH – 1.9.3
    Yoast SEO: by Team Yoast – 15.6.2
    Yoast SEO: WooCommerce: by Team Yoast – 13.8

    ### Must Use Plugins (1) ###

    WP.com Site Helper: by –

    ### Settings ###

    API Enabled: ?
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    pw gift card (pw-gift-card)
    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: #42 – /shop/
    Cart: #540 – /shop/cart/
    Checkout: #542 – /shop/check-out/
    My account: #555 – /resources/my-account/
    Terms and conditions: ? Page not set

    ### Theme ###

    Name: Storefront
    Version: 3.3.0
    Author URL: https://woocommerce.com/
    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: –

    ### Action Scheduler ###

    Canceled: 1
    Oldest: 2021-01-04 13:50:00 -0500
    Newest: 2021-01-04 13:50:00 -0500

    Complete: 4,934
    Oldest: 2020-12-22 16:06:51 -0500
    Newest: 2021-01-22 15:51:36 -0500

    Failed: 1
    Oldest: –
    Newest: –

    Pending: 2
    Oldest: 2021-01-22 16:06:36 -0500
    Newest: 2021-01-23 11:42:04 -0500

    @ck-macleod
    I have the same problem, I can’t edit or add a product under wp 5.6 – php 7.3 – woocommerce 4.9.1 but I am with frontstore theme
    Could you tell me precisely (because I am novice with editing php code) what to do in wich file please (and where), thanks a lot

    @geoffreycrm
    I have installed Code Snippets (french version=Extraits), could you tell me how you made to copy paste and where ? Thank you

    • This reply was modified 3 years, 10 months ago by cavedebacchus.
    • This reply was modified 3 years, 10 months ago by cavedebacchus.
    • This reply was modified 3 years, 10 months ago by cavedebacchus.
    Thread Starter GeoffreyCRM

    (@geoffreycrm)

    @cavedebacchus @sportswreathshop I downloaded the Code Snippets plugin and went on WordPress dashboard and then went to the Code Snippets plugin down the left hand side. Click on add new and then paste this code in:

    add_filter('woocommerce_admin_features', 'pk_woocommerce_admin_features');
    function pk_woocommerce_admin_features($features) {
    	if(($key = array_search('remote-inbox-notifications', $features)) !== false) {
    		unset($features[$key]);
    	}
    }

    Then save it and make sure it is activated and you are done. There might be people who are much more knowledgable than me who know better ways of doing this but I am not confident editing php files and this worked for me. I understand some people have needed to do more and add extra code but I guess it just depends on the exact setup of the WordPress site. This worked for me and I can now update products and activate/delete plugins as usual.

    • This reply was modified 3 years, 10 months ago by GeoffreyCRM.

    @geoffreycrm – I sooooo apprciate your help!!! Did not work for my set up, but hopefully will help @cavedebacchus . Still the same, a big thank you for trying. Still can’t edit and gave me this notice on home page:
    Warning: Invalid argument supplied for foreach() in /home/customer/www/sportswreathshop.com/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Loader.php on line 226

    But again, I so appreciate you!

    Thread Starter GeoffreyCRM

    (@geoffreycrm)

    @sportswreathshop I am sorry to hear that! Hopefully, someone will be along who knows more about it than me and can help you get it fixed, or WooCommerce will release an update because a lot of people seem to be having this problem.

    I’m having the exact same problem since January 22 (2021). Unfortunately I didn’t see this post yesterday and posted another one. I gave quite a detailed description of the problem and of what I tried to solve it (should someone be interested: “type E_ERROR Connection lost. Saving has been disabled… / Critical Error”).

    I haven’t tried Dasbuilder’s solution (I will try it now) but shouldn’t Woocommerce come up with an update to solve this?? Seems like a major bug.

    I found the same solution with a different way (seems easier to me) by Matt

    (@pkimatt) in this post:

    https://www.ads-software.com/support/topic/product-save-times-out-to-502-error/

    Adding the following code into your functions.php file:

    add_filter('woocommerce_admin_features', 'pk_woocommerce_admin_features');
    function pk_woocommerce_admin_features($features) {
    	if(($key = array_search('remote-inbox-notifications', $features)) !== false) {
    		unset($features[$key]);
    	}
    }

    So the code is the same, just put in somewhere else.

    This solved the problem for me.

    Thank you everyone. My problem is solved by the method of @geoffreycrm (Code Snippet).
    I guess woocommerce developpers, focus by this bug, will fix it quickly.

    @sportswreathshop
    My config: wp 5.6 – php 7.3 – wc 4.9.1
    I have frontstore theme too and it works
    what’s your php version ?

    Hi,
    A simple fix would can be implement by adding option to wp_options table
    if (!get_option(‘wc_remote_inbox_notifications_specs’)){
    add_option(‘wc_remote_inbox_notifications_specs’, ”);
    }

    proposed fix for next update:
    A conditions should be added to check if wc_remote_inbox_notifications_specs exists in run method

Viewing 15 replies - 16 through 30 (of 42 total)
  • The topic ‘Cannot update products since last update’ is closed to new replies.