• Resolved markk26

    (@markk26)


    I updated WordPress and Woocommerce to the latest version, as well as all plugins and I am getting these error messages:
    PHP Warning: A non-numeric value encountered in /home/xxxxxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 229
    PHP Warning: A non-numeric value encountered in /home/xxxxxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-discounts.php on line 87
    PHP version: 7.3.6

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    Hi @markk26

    It sounds like another of your plugins or your theme may be conflicting with the latest version of WooCommerce or another plugin. You can read more about plugin and theme conflicts in our Self-Service Guide.

    Here’s how you can figure out which one may be causing the problem:

    Before you start

    • First, please make sure you have a good backup in place of your full site and database. Most hosting companies have this included in the subscription, but you could also consider using a service like Jetpack. If something goes wrong, it’s nice to know that you can restore your site.
    • Second, I would suggest to install a plugin called Health Check & Troubleshooting. This is a plugin developed by the WordPress community and it allows you to disable plugins without effecting your current site visitors.

    How to test for conflicts
    In order to test for conflicts using Health Check & Troubleshooting:

    1. Go to Tools > Site Health > Troubleshooting.
    2. Select Enable Troubleshooting Mode. This will disable all your plugins and set your theme to a default one.
    3. Go to Plugins. There you can enable WooCommerce by selecting Enable While Troubleshooting.
    4. Try to reproduce the problem. If the problem is resolved, it’s clearly a conflict. Now we need to figure out which plugin is causing this conflict.
    5. If you can’t reproduce the problem with only WooCommerce enabled, go ahead and re-enable the other plugins one by one. Test after each one until the problem occurs again – this will tell you which plugin is conflicting.
    6. If you are unable to reproduce the problem with the rest of your plugins enabled it could be your theme causing the conflict. To test for this, please enable your original theme at your WordPress Dashboard in the Troubleshooting Mode section at the top (it will look similar to this: https://d.pr/i/bbvkLY). In the Troubleshooting window, you’ll be able to see a dropdown with available themes. Choose the one you normally use. Try reproducing the problem you’re experiencing. If you can reproduce it, your theme is the source of the conflict.

    Once you’ve done that, please check out How to test for plugin and theme conflicts and follow the steps there. Please let us know how that goes.

    Thread Starter markk26

    (@markk26)

    Thanks for the answer!
    I will try to follow the step by step you provided me!

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    @markk26

    Excellent! Please let us know how it goes. 🙂

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please feel free to start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Warning’ is closed to new replies.