Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class "Pimcore\Extension\Bundle\Installer\MigrationInstaller" not found while loading "WebHookBundle\Installer\WebHookBundleInstaller #8

Open
Hubbitus opened this issue Jun 9, 2021 · 5 comments

Comments

@Hubbitus
Copy link

Hubbitus commented Jun 9, 2021

Hello, I've tried to install your extension by documentation.

composer require sintra/pimcore-webhooks:dev-main

part was successful, but installation from the admin panel ("Bundles & Bricks") gives me an error:

Please don't forget to clear the cache and reload pimcore after your modifications!

4
BE RESPECTFUL AND HONOR OUR WORK FOR FREE & OPEN SOURCE SOFTWARE BY NOT REMOVING OUR LOGO. WE OFFER YOU THE POSSIBILITY TO ADDITIONALLY ADD YOUR OWN LOGO IN PIMCORE'S SYSTEM SETTINGS. THANK YOU!

Please don't forget to clear the cache and reload pimcore after your modifications!

Failed to run assets:install command. Please run command manually.

The command "'/usr/local/bin/php' '/var/www/html/bin/console' 'assets:install' '--symlink' '--relative' '/var/www/html/public'" failed.

Exit Code: 255(Unknown error)

Working directory: /var/www/html

Output:
================
ReflectionException {#7671
  #message: "Class "Pimcore\Extension\Bundle\Installer\MigrationInstaller" not found while loading "WebHookBundle\Installer\WebHookBundleInstaller"."
  #code: 0
  #file: "./vendor/symfony/symfony/src/Symfony/Component/Config/Resource/ClassExistenceResource.php"
  #line: 74
  trace: {
    ./vendor/symfony/symfony/src/Symfony/Component/Config/Resource/ClassExistenceResource.php:74 { ?}
    ./vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:348 { ?}
    ./vendor/pimcore/pimcore/bundles/CoreBundle/DependencyInjection/Compiler/ServiceControllersPass.php:60 { ?}
    ./vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php:91 { ?}
    ./vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:736 { ?}
    ./vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:541 { ?}
    ./vendor/pimcore/pimcore/lib/Kernel.php:223 { ?}
    ./vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:780 { ?}
    ./vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:121 { ?}
    ./vendor/pimcore/pimcore/lib/Kernel.php:202 { ?}
    ./vendor/pimcore/pimcore/lib/Bootstrap.php:256 { ?}
    ./vendor/pimcore/pimcore/lib/Bootstrap.php:60 { ?}
    ./bin/console:44 {
      ? /** @var \Pimcore\Kernel $kernel */
      ? $kernel = \Pimcore\Bootstrap::startupCli();
      ? $application = new \Pimcore\Console\Application($kernel);
    }
  }
}

Error Output:
================

pimcore/demo:10.0.6

@HeHof
Copy link

HeHof commented Aug 4, 2021

Hey! I experience the same Problem since you're extending a MigrationInstaller class in WebHookBundleInstaller.php.
I couldn't find any MigrationInstaller class so far.
How to provide this behaviour?
I have exactly the same output as @Hubbitus

@zeppaman
Copy link
Member

zeppaman commented Aug 4, 2021

the main branch is for PimcoreX, the Pimcore-6 is the one for Pimcore 6. Are you sure to be using the right one for your project?

@Hubbitus
Copy link
Author

@zeppaman, please look, required sintra/pimcore-webhooks:dev-main and used pimcore pimcore/demo:10.0.6. Are that incorrect set of versions?

@MarcoMisiani
Copy link
Collaborator

Hi Hubbitus, that set of version is correct, try to disable the bundle and run: composer update "sintra/pimcore-webhooks" and then enable/install again

@Hubbitus
Copy link
Author

Maybe then it require provide some specific version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants