WooCommerceServiceProvider not found in Acorn

Hi all,
I just installed sage 10 and acorn local to the theme itself, but this error comes up.

Fatal error: Uncaught Error: Class "Genero\Sage\WooCommerce\WooCommerceServiceProvider" not found
in /shared/httpd/store/htdocs/wp-content/themes/els-store-v10/vendor/roots/acorn/src/Illuminate/Foundation/ProviderRepository.php on line 206

Call stack:

    Illuminate\Foundation\ProviderRepository::createProvider()
    wp-content/themes/els-store-v10/vendor/roots/acorn/src/Illuminate/Foundation/ProviderRepository.php:142
    Illuminate\Foundation\ProviderRepository::compileManifest()
    wp-content/themes/els-store-v10/vendor/roots/acorn/src/Illuminate/Foundation/ProviderRepository.php:61
    Illuminate\Foundation\ProviderRepository::load()
    wp-content/themes/els-store-v10/vendor/roots/acorn/src/Roots/Acorn/Application.php:262
    Roots\Acorn\Application::registerConfiguredProviders()
    wp-content/themes/els-store-v10/vendor/roots/acorn/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17
    Illuminate\F\B\RegisterProviders::bootstrap()
    wp-content/themes/els-store-v10/vendor/roots/acorn/src/Illuminate/Foundation/Application.php:263
    Illuminate\Foundation\Application::bootstrapWith()
    wp-content/themes/els-store-v10/vendor/roots/acorn/src/Illuminate/Foundation/Http/Kernel.php:186
    Illuminate\F\H\Kernel::bootstrap()
    wp-content/themes/els-store-v10/vendor/roots/acorn/src/Roots/Acorn/Bootloader.php:187
    Roots\Acorn\Bootloader::bootHttp()
    wp-content/themes/els-store-v10/vendor/roots/acorn/src/Roots/Acorn/Bootloader.php:103
    Roots\Acorn\Bootloader::boot()
    wp-content/themes/els-store-v10/functions.php:43
    include()
    wp-settings.php:668
    require_once()
    wp-config.php:104
    require_once()
    wp-load.php:50
    require_once()
    wp-blog-header.php:13
    require()
    index.php:17

I tried deleting and reinstalling all the dependencies from composer but it still happens.

Anyone have ideas?

1 Like

Same error
I also tried to downgrade to acors version 3, and I get the following error:
Fatal error: Uncaught Roots\Acorn\Exceptions\SkipProviderException: Skipping provider

I solved it by adding this :blush:
composer require generoi/sage-woocommerce