Woocommerce Error

by 7 replies
7
Anyone understand how to fix this error I'm getting after I upgrade to latest version.

PHP Fatal error: Access level to WC_Product_Variable::check_stock_status() must be public (as in class WC_Product) in /home4/XXX/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-variable.php on line 655
#programming #error #woocommerce
  • The only way I have been able to fix that error for several sites/clients has been to download the latest version of the woocommerce WP plugin and then uploading the new files via FTP over the files on the website.

    After doing so the problem was solved every time. Not sure that this is what you need, but more than likely that will fix your problem too.

    Hope this helps.
    • [1] reply
    • Thanks for the reply. This is actually caused when I upgrade woocommerce to the latest version. So, that is the latest version
  • Oh ok then. Hmmmm. Past the general solution I gave above, then you'll (or a hired developer of your choice) will have to look through the code & apache logs to find out and fix the problem causing the error message.

    As based on your original description and your answer to my help I'm now aware that the problem is deeper than a generalized problem.

    If you want to PM me the access/login information I might be able to fix it for your but without access to the site and the problem not being a generalized problem it would involve a search & debug by an experienced coder (like myself) going thru the files and logs.
    • [1] reply
    • Good grief.

      The only problem is that the one-click update failed. It happens. Corrupt ZIP file, whatever. Delete the plugin files and upload new ones. Problem solved.

      Are you just trolling for work with all of these flaky answers?
      • [1] reply
  • I saw your first answer, you should have just stuck with it.

    Blatant self-promotion used to be frowned upon here, I guess it isn't any more.
  • Thanks for the advice, and have a great weekend.

Next Topics on Trending Feed

  • 7

    Anyone understand how to fix this error I'm getting after I upgrade to latest version. PHP Fatal error: Access level to WC_Product_Variable::check_stock_status() must be public (as in class WC_Product) in /home4/XXX/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-variable.php on line 655