Question

I tried to install SonataMediaBundle as described here.
After installation I'm getting this error:

PHP Fatal error:  Interface 'Sonata\CoreBundle\Model\ManagerInterface' not found in /var/www/prj/vendor/sonata-project/media-bundle/Sonata/MediaBundle/Model/MediaManagerInterface.php on line 20

There is a Sonata\CoreBundle\Entity\ManagerInterface but no Sonata\CoreBundle\Model\ManagerInterface!
What is the problem?

Was it helpful?

Solution

Both CoreBundle and AdminBundle were updated recently and this namespace changed. Until it's solved you can ensure that you are using the most recent versions by including these lines in your composer.json:

"require": {
    ...
    "sonata-project/core-bundle": "dev-master",
    "sonata-project/media-bundle": "dev-master"
}

OTHER TIPS

Update your composer.json from Sonata's sandbox; https://github.com/sonata-project/sandbox/blob/2.3-develop/composer.json#L45-L63

    "sonata-project/easy-extends-bundle": "~2.1@dev",
    "sonata-project/seo-bundle": "~1@dev",
    "sonata-project/admin-bundle": "~2.2@dev",
    "sonata-project/doctrine-orm-admin-bundle": "~2.2@dev",
    "sonata-project/block-bundle": "~2.2@dev",
    "sonata-project/media-bundle": "~2.2@dev",
    "sonata-project/user-bundle": "~2.2@dev",
    "sonata-project/cache-bundle": "~2.1@dev",
    "sonata-project/page-bundle": "~2.3@dev",
    "sonata-project/core-bundle": "~2.2@dev",

Attention on core-bundle": "~2.2@dev",

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top