• Resolved seres87

    (@seres87)


    Hello!

    I have the following problem.
    (I saw the same thread here 4 months ago, but it died and was not resolved)

    1. After updating PHP to 8.0 (now 8.1) only woocommerce (5.9.3, but also earlier versions) has thrown the following error when trying to access (https://smartlifesavers.com/wp-admin/update-core.php):
    Fatal error: Uncaught Error: Attempt to modify property “no_update” on null in … wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php on line 75

    ( Line in question is visible on this link: https://woocommerce.github.io/code-reference/files/woocommerce-includes-admin-helper-class-wc-helper-updater.html )
    ___________________________________________________________________________________
    I have passed this problem with earlier versions by reversing the php version back to 7.4 but this is not ideal. All other updates do not cause this error. Also I cannot access to plugins page: https://smartlifesavers.com/wp-admin/plugins.php , to disable woocommerce for a minute to update other plugins. Throws the same error as above.

    If you need woocommerce system report, then I would not prefer to share it publicly. If you want to know something specific, please let me know.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @seres87

    After updating PHP to 8.0 (now 8.1) only woocommerce (5.9.3, but also earlier versions) has thrown the following error

    v6.5.1 is the latest version of WooCommerce and it is running fine with PHP 8.1 on lots of sites. Can you please update WooCommerce to the latest version and see if the same problem persists?

    If so, then please be informed that it is most likely due to a conflict with one or more existing tools on the website, because other sites using WooCommerce are not facing this issue. So you’ll want to check if the same happens when you deactivate all other plugins (except WooCommerce) and change the theme to the default Storefront. That way you’ll be able to isolate the issue.

    Here’s the conflict test guide for reference: https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    You can test this out on a staging site using a plugin like WP Staging, without affecting the appearance of the front end.

    Do let us know what you find.

    You can share the system report after removing any identifiable information that you don’t want to be shared publicly.

    Thread Starter seres87

    (@seres87)

    Hi Margaret,

    Thank you for the fast reply!
    Currently I circumvented the problem by reverting back the PHP version to 7.4 and managed to update the plugins that needed it.

    It indeed seems that some of the plugins might be causing the issue, that are connected to the woocommerce (such as WooCommerce Availability Notifications ) which is not supported anymore by the creator.
    The problem only is evident (at least so it seems) when woocommerce needs to be updated. Otherwise problem is not detected.

    If the problem should reoccur I will try your solution, by narrowing down the conflicting plugin.

    Thank you for the reply!

    Plugin Support Sérgio L. a11n

    (@csnlima)

    Hi @seres87,

    Thanks for the detailed reply. I do hope it doesn’t happen again, but please, feel free to open a new topic if the problem reappears and the conflict test does not bring any result.

    I’ll mark this topic solved for now.

    Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce “no_update” on null and PHP 8.0’ is closed to new replies.