zerustech / install-ez-legacy

7 stars 0 forks source link

Doctrine error: Class 'Doctrine\ORM\Version' not found #1

Open tonyellow opened 8 years ago

tonyellow commented 8 years ago

I'm currently in the middle of an installation with 2015.11 and the installer results in the following error:

ezpublish@orange:~/eznew$ composer run-script post-install-cmd

Incenteev\ParameterHandler\ScriptHandler::buildParameters Updating the "ezpublish/config/parameters.yml" file Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache PHP Fatal error: Class 'Doctrine\ORM\Version' not found in /var/www/ezpublish/eznew/vendor/doctrine/doctrine-bundle/DependencyInjection/DoctrineExtension.php on line 432 Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception

[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command.

Do you have any clue what I should do? I followed all the steps in your guide.

Thanks in advance.

Anthony

zerustech commented 8 years ago

@tonyellow I guess you need manually install doctrine/orm:

$ cd <ez>
$ composer require doctrine/orm:~2.3 --no-update
$ composer update doctrine/orm --no-dev --no-scripts