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 'Doctrine\DBAL\Migrations\Tools\Console\Command\DiffCommand' not found Contao 4.3.10 #860

Closed
Ainschy opened this issue Jun 1, 2017 · 1 comment

Comments

@Ainschy
Copy link

Ainschy commented Jun 1, 2017

nach dem Composer Update wurde die oben genannte Klasse nicht mehr gefunden.

Hier die komplette Consolen Ausgabe:

Loading composer repositories with package information
Updating dependencies (including require-dev)             
Dependency resolution completed in 4.646 seconds
Analyzed 11587 packages to resolve dependencies
Analyzed 559522 rules to resolve dependencies
Package operations: 3 installs, 9 updates, 0 removals
Installs: psr/simple-cache:1.0.0, psr/link:1.0.0, fig/link-util:1.0.0
Updates: symfony/symfony:v3.3.0, contao/manager-plugin:2.1.0, doctrine/doctrine-bundle:1.6.8, symfony/swiftmailer-bundle:v2.6.2, contao-components/chosen:1.1.5, contao-components/tinymce4:4.5.2.2, contao/imagine-svg:0.1.4, contao/image:0.3.4, hofff/contao-shariff:dev-cto4 782b919
  - Updating symfony/symfony (v3.2.8 => v3.3.0): Downloading (100%) Extracting archive
  - Installing psr/simple-cache (1.0.0): Downloading (100%) Extracting archive
  - Installing psr/link (1.0.0): Downloading (100%) Extracting archive
  - Installing fig/link-util (1.0.0): Downloading (100%) Extracting archive
  - Updating contao/manager-plugin (2.0.2 => 2.1.0): Downloading (100%) Extracting archive
  - Updating doctrine/doctrine-bundle (1.6.7 => 1.6.8): Downloading (100%) Extracting archive
  - Updating symfony/swiftmailer-bundle (v2.5.4 => v2.6.2): Downloading (100%) Extracting archive
  - Updating contao-components/chosen (1.1.4 => 1.1.5): Downloading (100%) Extracting archive
  - Updating contao-components/tinymce4 (4.5.2.1 => 4.5.2.2): Downloading (100%) Extracting archive
  - Updating contao/imagine-svg (0.1.3 => 0.1.4): Downloading (100%) Extracting archive
  - Updating contao/image (0.3.3 => 0.3.4): Downloading (100%) Extracting archive
Updating Contao sources for hofff/contao-shariff
  - Updating hofff/contao-shariff dev-cto4 (375e02d => 782b919):  Checking out 782b91961d09538312ff6195505c51cc60731604
    Pulling in changes:
      782b919 - Oliver Willmes: Update composer.json
      4a9a160 - Oliver Willmes: add require composer-plugin

Writing lock file
Generating autoload files
> post-update-cmd: Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication

Fatal error: Class 'Doctrine\DBAL\Migrations\Tools\Console\Command\DiffCommand' not found in /www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/vendor/contao/core-bundle/src/Command/DoctrineMigrationsDiffCommand.php on line 27
PHP Fatal error:  Class 'Doctrine\DBAL\Migrations\Tools\Console\Command\DiffCommand' not found in /www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/vendor/contao/core-bundle/src/Command/DoctrineMigrationsDiffCommand.php on line 27
Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-update-cmd event terminated with an exception

                                                                                                                                                                                  
  [RuntimeException]                                                                                                                                                              
  An error occurred while executing the "contao:install-web-dir" command: PHP Fatal error:  Class 'Doctrine\DBAL\Migrations\Tools\Console\Command\DiffCommand' not found in /www  
  /htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/vendor/contao/core-bundle/src/Command/DoctrineMigrationsDiffCommand.php on line 27                                                
                                                                                                                                                                                  

Exception trace:
 () at /www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/vendor/contao/manager-bundle/src/Composer/ScriptHandler.php:107
 Contao\ManagerBundle\Composer\ScriptHandler::executeCommand() at /www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/vendor/contao/manager-bundle/src/Composer/ScriptHandler.php:71
 Contao\ManagerBundle\Composer\ScriptHandler::addWebEntryPoints() at /www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/vendor/contao/manager-bundle/src/Composer/ScriptHandler.php:35
 Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication() at phar:///www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:280
 Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar:///www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:205
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:96
 Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/composer.phar/src/Composer/Installer.php:307
 Composer\Installer->run() at phar:///www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/composer.phar/src/Composer/Command/UpdateCommand.php:158
 Composer\Command\UpdateCommand->execute() at phar:///www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/composer.phar/vendor/symfony/console/Command/Command.php:267
 Symfony\Component\Console\Command\Command->run() at phar:///www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/composer.phar/vendor/symfony/console/Application.php:846
 Symfony\Component\Console\Application->doRunCommand() at phar:///www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/composer.phar/vendor/symfony/console/Application.php:191
 Symfony\Component\Console\Application->doRun() at phar:///www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/composer.phar/src/Composer/Console/Application.php:227
 Composer\Console\Application->doRun() at phar:///www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/composer.phar/vendor/symfony/console/Application.php:122
 Symfony\Component\Console\Application->run() at phar:///www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/composer.phar/src/Composer/Console/Application.php:100
 Composer\Console\Application->run() at phar:///www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/composer.phar/bin/composer:54
 require() at /www/htdocs/xxxxxxxx/webseiten/yyyyyyyyyyyyyyyyyy/composer.phar:24
@fenepedia
Copy link

Müsste das gleiche sein wie hier: #760

@leofeyer leofeyer closed this as completed Jun 1, 2017
leofeyer added a commit that referenced this issue Dec 18, 2019
…1101)

Description
-----------

This PR refactors the back end main menu so it becomes a regular Knp menu and we can render it via `{{ knp_menu_render('be_menu') }}`. I have extracted these changes from #860, so the other PR becomes smaller and easier to review.

Commits
-------

42a08b35 Refactor the back end main menu so it is a regular Knp menu
7d1fee0f Merge branch 'master' into feature/knp-header-menu-1
leofeyer added a commit that referenced this issue Jan 3, 2020
Description
-----------

This PR makes the necessary changes so the back end header menu is built via Knp menu and the debug button can be added in the manager bundle (this was an open TODO).

The PR also "fixes" the back end main menu, which does not adhere to the Knp menu standards and thus is only partially extendable.

### TODOs

- [x] Rework the main menu
- [x] Fix the existing unit tests
- [x] Add unit tests for the new classes

Commits
-------

fe435815 Make the back end header menu a Knp menu
f4dff999 Use separate listeners for the preview URL and logout URL
cde9bb12 Do not use the CURRENT_ID constant
17493b94 Fix the listener priorities
33c8a074 Merge branch 'master' into feature/knp-header-menu
8cc2107d Adjust to the new event registration
1bf08f8f Fix a few minor issues
2e361418 Check for the user role instead of the class
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

3 participants