SonataMediaBundle: 'callback constraint is not a valid callable ' in the upload

Environment

Sonata packages

$ composer show sonata-project/*
sonata-project/admin-bundle              3.4.0           The missing Symfony Admin Generator
sonata-project/block-bundle              3.1.1           Symfony SonataBlockBundle
sonata-project/cache                     1.0.7           Cache library
sonata-project/classification-bundle     3.x-dev ad97ae7 Symfony SonataClassificationBundle
sonata-project/core-bundle               3.0.3           Symfony SonataCoreBundle
sonata-project/datagrid-bundle           2.2             Symfony SonataDatagridBundle
sonata-project/doctrine-extensions       1.0.2           Doctrine2 behavioral extensions
sonata-project/doctrine-orm-admin-bundle 3.0.5           Symfony Sonata / Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/easy-extends-bundle       2.1.10          Symfony SonataEasyExtendsBundle
sonata-project/exporter                  1.6.0           Lightweight Exporter library
sonata-project/intl-bundle               2.2.4           Symfony SonataIntlBundle
sonata-project/media-bundle              3.1.0           Symfony SonataMediaBundle
sonata-project/notification-bundle       3.0.0           Symfony SonataNotificationBundle

Symfony packages

$ composer show symfony/*
symfony/monolog-bundle     2.11.1  Symfony MonologBundle
symfony/phpunit-bridge     v3.1.3  Symfony PHPUnit Bridge
symfony/polyfill-apcu      v1.2.0  Symfony polyfill backporting apcu_* functions to lower PHP versions
symfony/polyfill-intl-icu  v1.2.0  Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-mbstring  v1.2.0  Symfony polyfill for the Mbstring extension
symfony/polyfill-php56     v1.2.0  Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70     v1.2.0  Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-util      v1.2.0  Symfony utilities for portability of PHP codes
symfony/security-acl       v3.0.0  Symfony Security Component - ACL (Access Control List)
symfony/swiftmailer-bundle v2.3.11 Symfony SwiftmailerBundle
symfony/symfony            v3.1.3  The Symfony PHP framework

PHP version

$ php -v
PHP 5.6.15 (cli) (built: Oct 29 2015 12:40:36)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

Subject

Hello, i’m trying to install sonata media bundle (with classification) with symfony 3, i get the interface for uploading the pictures, but when i click in the save button i have this error :

CRITICAL - Uncaught PHP Exception Symfony\Component\Validator\Exception\ConstraintDefinitionException: "{"methods":["isStatusErroneous"]} targeted by Callback constraint is not a valid callable" at C:\wamp\www\monprojet\vendor\symfony\symfony\src\Symfony\Component\Validator\Constraints\CallbackValidator.php line 43 

any suggestion please

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 22 (12 by maintainers)

Most upvoted comments

Any info on resolving?

like this @greg0ire ?

There are several problems in this issues. Can anyone make PRs for the solutions that were found?