Closed KunwarSiddharthSingh closed 7 years ago
To be closed (@greg0ire) cf. https://github.com/sonata-project/SonataMediaBundle/issues/970#issuecomment-327184487
Actually this but is still open, the InlineValidator of the CoreBundle is used in the validations.xml file of the media bundle. The InlineValidator uses the CoreBundle\Validator\ErrorElement but the Pool class in the MediaBundle wants a AdminBundle\Validator\ErrorElement.
THIS IS NOT A COMPOSER ERROR This is an error in the MediaBundle which is not there in version 2.3.3 and was introduced in version 2.3.4.
Here you can see the Pool class needs the AdminBundle\Validator\Element
Here you can see that the MediaBundle is using the CoreBundle\Validator\InlineValidator
And here you can see that the CoreBundle\Validator\InlineValidator creates a new instance of ErrorElement, but it is a CoreBundle\Validator\InlineValidator
@ychadwick please open a new issue, reference this one and fill in the issue template, which version are you using of sonata, symfony and php, thank you!
This is my
composer.json
I am not using any custom class. Just Use default Sonata Media Bundle with Sonata Admin Bundle. When I am uploading image then I got error :- 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