• Resolved giraffe75

    (@giraffe75)


    Since 2-3 days I’m having this “critical error” in my Woocommerce online shop.

    Every time I’m trying to save/update a product, after 35-45 seconds, it says (in the backend header):

    Connection lost. Saving has been disabled until you’re reconnected. We’re backing up this post in your browser, just in case.

    Then it takes about another 1,5 minutes (2:10 in total) when the following message appears:

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Since the error appeared, I received 3 emails:

    1.)

    In this case, WordPress caught an error with one of your plugins, WooCommerce.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.6
    Current theme: Sinatra (version 1.1.6)
    Current plugin: WooCommerce (version 4.9.1)
    PHP version 7.4.10

    Error Details
    =============
    An error of type E_ERROR was caused in line 85 of the file /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/RemoteInboxNotifications/DataSourcePoller.php. Error message: Maximum execution time of 30 seconds exceeded

    2.)

    In this case, WordPress caught an error with one of your plugins, Rank Math SEO.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.6
    Current theme: Sinatra (version 1.1.6)
    Current plugin: Rank Math SEO (version 1.0.56.1)
    PHP version 7.4.10

    Error Details
    =============
    An error of type E_ERROR was caused in line 75 of the file /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php. Error message: Uncaught RuntimeException: Error saving action: Database error. in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:75
    Stack trace:
    #0 /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_ActionFactory.php(177): ActionScheduler_DBStore->save_action(Object(ActionScheduler_Action))
    #1 /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/ActionScheduler_ActionFactory.php(84): ActionScheduler_ActionFactory->store(Object(ActionScheduler_Action))
    #2 /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/functions.php(36): ActionScheduler_ActionFactory->single(‘wc-admin_import…’, Array, 1611418408, ‘wc-admin-data’)
    #3 /www/htdo

    3.)

    In this case, WordPress caught an error with one of your plugins, Rank Math SEO.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.6
    Current theme: Sinatra (version 1.1.6)
    Current plugin: Rank Math SEO (version 1.0.56.1)
    PHP version 7.4.10

    Error Details
    =============
    An error of type E_ERROR was caused in line 176 of the file /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/seo-by-rank-math/includes/class-post.php. Error message: Uncaught Error: Call to undefined function is_cart() in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/seo-by-rank-math/includes/class-post.php:176
    Stack trace:
    #0 /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/seo-by-rank-math/includes/frontend/paper/class-paper.php(548): RankMath\Post::is_woocommerce_page()
    #1 /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php(478): RankMath\Paper\Paper::should_apply_shortcode()
    #2 /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php(343): RankMath\Replace_Variables\Post_Variables->get_post_content(Object(stdClass))
    #3 /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php(59): RankMath\Replace_Variables\Post_Variables->get_excerpt()
    #4

    I already have deactivated the Rank Math plugin, but that didn’t help at all.

    Also I can neither activate nor deactivate plugins in the backend. I need to use FTP, change the name, so it gets automatically deactivated, and then change the name back (the plugin then stays deactivated).

    When I try to deactivate plugins in the backend, it takes up to 4-5 minutes until time out. After going back, the plugin is still activated.

    When trying to activate an incative plugin, it also takes a long time until time out, but after going back or reloading the plugin page, that plugin is activated.

    Last, I tried to deactivate the PayPal plugin and after more than 4 minutes the following error came up:

    Plugin could not be activated because it triggered a fatal error.
    Fatal error: Cannot redeclare wc_gateway_ppec() (previously declared in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/woocommerce-gateway-paypal-express-checkout.php:38) in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/woocommerce-gateway-paypal-express-checkout.php on line 38

    BTW: Saving/updating pages works just fine.

    The last “new” entry in the error logfile was this:

    [24-Jan-2021 07:33:55 UTC] PHP Notice: Trying to access array offset on value of type int in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/side-cart-woocommerce/templates/global/footer/buttons.php on line 32
    [24-Jan-2021 07:33:55 UTC] PHP Notice: Trying to access array offset on value of type int in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/side-cart-woocommerce/templates/global/footer/buttons.php on line 32
    [24-Jan-2021 07:33:56 UTC] PHP Notice: Trying to access array offset on value of type int in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/side-cart-woocommerce/templates/global/footer/buttons.php on line 32
    [24-Jan-2021 07:33:56 UTC] PHP Notice: Trying to access array offset on value of type int in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/side-cart-woocommerce/templates/global/footer/buttons.php on line 32
    [24-Jan-2021 07:34:53 UTC] PHP Notice: Trying to access array offset on value of type bool in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 2562
    [24-Jan-2021 07:34:53 UTC] PHP Notice: Trying to access array offset on value of type bool in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 2562
    [24-Jan-2021 07:34:53 UTC] PHP Notice: Trying to access array offset on value of type bool in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 2562
    [24-Jan-2021 07:34:53 UTC] PHP Notice: Trying to access array offset on value of type bool in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 2562
    [24-Jan-2021 07:34:53 UTC] PHP Notice: Trying to access array offset on value of type bool in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 2562
    [24-Jan-2021 07:34:53 UTC] PHP Notice: Trying to access array offset on value of type int in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/side-cart-woocommerce/templates/global/footer/buttons.php on line 32
    [24-Jan-2021 07:34:53 UTC] PHP Notice: Trying to access array offset on value of type int in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/side-cart-woocommerce/templates/global/footer/buttons.php on line 32
    [24-Jan-2021 07:34:57 UTC] PHP Notice: Trying to access array offset on value of type int in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/side-cart-woocommerce/templates/global/footer/buttons.php on line 32
    [24-Jan-2021 07:34:57 UTC] PHP Notice: Trying to access array offset on value of type int in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-content/plugins/side-cart-woocommerce/templates/global/footer/buttons.php on line 32
    [24-Jan-2021 07:35:13 UTC] PHP Notice: add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.) in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-includes/functions.php on line 5311
    [24-Jan-2021 07:38:02 UTC] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-includes/Requests/Transport/cURL.php on line 441
    [24-Jan-2021 07:38:05 UTC] PHP Notice: add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.) in /www/htdocs/w00f568a/WEB_moleculecargopants_WP-Woo_2020-10/wp-includes/functions.php on line 5311

    – I already “rolled back” the Woocommerce plugin to a version, when everything still worked fine.

    – I have used a database backup from a couple of days before (when everything seemed to be all right).

    – I have tried another theme (Twenty Nineteen).

    – I have used the “Check Conflicts” plugin and deactivated all plugins except for Woocommerce.

    Nothing helped!

    – Another website on the same server (not wordpress / Woocommerce) works just fine.

    – Internet works just fine.

    I have read many posts on many different websites with a similar issue, but nothing lead me to any solution.

    Please can anyone help?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘type E_ERROR Connection lost. Saving has been disabled… / Critical Error’ is closed to new replies.