• Resolved Spartak

    (@spatium1490)


    The plugin gives a critical error when trying to edit any page. The admin part of the site breaks down, a critical notification arrives in the mail.
    When you turn off the Woocommerce, everything is restored.
    System WordPress 5.9.3
    Woocommerce 6.5.1
    php 8.0 changed to 7.4 (did not help)

    Debug.log
    PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/../…/…/public_html/wp-content/plugins/woocommerce/includes/wc-cart-functions.php on line 427

    PHP Warning: array_keys() expects parameter 1 to be array, null given in /home/../…/…/public_html/wp-content/plugins/woocommerce/includes/wc-cart-functions.php on line 447

    [18-May-2022 06:05:48 UTC] PHP Warning: current() expects parameter 1 to be array, null given in /home/…/…/…/public_html/wp-content/plugins/woocommerce/includes/wc-cart-functions.php on line 448

    PHP Warning: array_keys() expects parameter 1 to be array, null given in /home/../…/…/public_html/wp-content/plugins/woocommerce/includes/wc-cart-functions.php on line 476

Viewing 2 replies - 1 through 2 (of 2 total)
  • Roxy

    (@roxannestoltz)

    Hi @spatium1490 ,

    Thanks for reaching out!

    I’d suggest running a conflict test to rule out any theme/plugin conflicts with the latest version of WooCommerce.

    The best way to determine this is to:

    – Temporarily switch your theme to Storefront
    – Disable all plugins except for WooCommerce
    – Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict.

    Please see the below documentation for a more detailed explanation of how to do a conflict test here:

    https://docs.woocommerce.com/document/how-to-test-for-conflicts

    Additionally, kindly provide us with a copy of your?System Status, which you can find via?WooCommerce > Status. Select ‘Get system report’ and then ‘Copy for support’.

    Once you do this, you can paste your response here.

    Thanks!

    • This reply was modified 2 years, 6 months ago by Roxy.

    Hi @spatium1490

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Critical error’ is closed to new replies.