Ошибка медиа-пакета Sonata при загрузке изображения
Я не использую какой-либо пользовательский класс. Просто используйте Sonata Media Bundle по умолчанию с Sonata Admin Bundle. Когда я загружаю изображение, то я получил ошибку:-
Catchable Fatal Error: Argument 1 passed to Sonata\MediaBundle\Provider\Pool::validate() must be an instance of Sonata\AdminBundle\Validator\ErrorElement, instance of Sonata\CoreBundle\Validator\ErrorElement given
Это мой композитор.json
"php": ">=5.3.3",
"symfony/symfony": "2.6.*",
"doctrine/orm": "~2.2,>=2.2.3,<2.5",
"doctrine/dbal": "<2.5",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~3.0,>=3.0.12",
"sensio/framework-extra-bundle": "~3.0,>=3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"sonata-project/admin-bundle": "3.x",
"sonata-project/doctrine-orm-admin-bundle": "^2.3",
"gedmo/doctrine-extensions": "^2.4",
"sonata-project/user-bundle": "^2.2",
"friendsofsymfony/user-bundle": "^1.3",
"sonata-project/easy-extends-bundle": "^2.1",
"knplabs/knp-menu": "~1.1",
"knplabs/knp-menu-bundle": "~1.1",
"sonata-project/media-bundle": "^3.6",
"sonata-project/intl-bundle": "^2.2",
"jms/serializer-bundle": "~0.13",
"stof/doctrine-extensions-bundle": "^1.2",
"ob/highcharts-bundle": "^1.2",
"egeloen/ckeditor-bundle": "^3.0",
"friendsofsymfony/rest-bundle": "^1.7",
"friendsofsymfony/elastica-bundle": "^3.1",
"knplabs/knp-paginator-bundle": "^2.5",
"aws/aws-sdk-php": "2.8.22",
"amazonwebservices/aws-sdk-for-php": "dev-master",
"KnpLabs/Gaufrette": "dev-master",
"knplabs/knp-gaufrette-bundle": "dev-master",
"vich/uploader-bundle": "0.14.*",
Как я могу это исправить???
Любая помощь будет высоко оценена.
Благодарю.