• Resolved sierfruit

    (@sierfruit)


    Hi!

    After updating woocommerce 4.9.0 to 5.2.2 via my composer.json file I receive the following error message when trying to acces my site (locally):

    `( ! ) Fatal error: Uncaught Error: Class ‘WooCommerce’ not found in /srv/www/…/current/web/app/plugins/woocommerce/woocommerce.php on line 47
    ( ! ) Error: Class ‘WooCommerce’ not found in /srv/www/…/current/web/app/plugins/woocommerce/woocommerce.php on line 47

    (The website is build in the roots.io stack (sage 9), working with wordpress version 5.7.1)

    I already tried deleting woocommerce and reinstalling it a couple of times.

    I also get a series of warnings like this one in my terminal after doing the composer update command:
    Class Automattic\WooCommerce\Admin\Notes\WC_Admin_Note located in ./web/app/plugins/woocommerce-admin/src/Notes/DeprecatedNotes.php does not comply with psr-4 autoloading standard. Skipping.

    For now I keep using the 4.9.0. version but I would like to keep it up to date ??

    Thanks for the help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @sierfruit,

    Is it possible on the site to update by downloading a fresh, complete copy here at www.remarpro.com and then installing the ZIP file at Plugins > Add New? That should let you update that way if the traditional Dashboard method isn’t an option.

    If that won’t work, I’d suggest asking about this in the WooCommerce Slack Community. It’s a good place to ask more development-focused questions like this.

    https://woocommerce.com/community-slack/

    I hope that gets you pointed in the right direction!

    Hi @sierfruit,

    Hopefully, you were able to clear up this issue. Since it’s been a while since we last heard from you, I’m going to mark this thread resolved.

    If you still have trouble, please feel free to open up a new topic. We’d be happy to jump back in and help you out.

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uncaught Error: Class ‘WooCommerce’ not found in ..woocommerce.php on line 47’ is closed to new replies.