2014-04-20 43 views
0

将新图像添加到图库时发生此错误。奏鸣曲媒体包错误

过滤器 “number_format_decimal” 不 SonataMediaBundle存在:MediaAdmin:edit.html.twig在第54行

我的配置 //app/conf/config.yml

sonata_media: 
# if you don't use default namespace configuration 
#class: 
# media: MyVendor\MediaBundle\Entity\Media 
# gallery: MyVendor\MediaBundle\Entity\Gallery 
# gallery_has_media: MyVendor\MediaBundle\Entity\GalleryHasMedia 
default_context: default 
db_driver: doctrine_orm # or doctrine_mongodb, doctrine_phpcr 
contexts: 
    default: # the default context is mandatory 
     providers: 
      - sonata.media.provider.dailymotion 
      - sonata.media.provider.youtube 
      - sonata.media.provider.image 
      - sonata.media.provider.file 

     formats: 
      small: { width: 100 , quality: 70} 
      big: { width: 500 , quality: 70} 

cdn: 
    server: 
     path: /uploads/media # http://media.sonata-project.org/ 

filesystem: 
    local: 
     directory: %kernel.root_dir%/../web/uploads/media 
     create:  false 

回答

0

问题是你的composer.json上的奏鸣曲媒体包使用“2.2.8”而不是“dev-master”并运行php composer.phar更新

0

composer.json

“奏鸣曲项目/媒体包” 工作得好: “2.2.*@dev”