SonataMediaBundle: images dont render

Today i make composer upgrade and after that images disappeared. When i dump media object i get

Proxies\__CG__\App\Entity\Media\SonataMediaMedia {#19025 ▼
  +__isInitialized__: false
  #id: 8
  #name: null
  #description: null
  #enabled: false
  #providerName: null
  #providerStatus: null
  #providerReference: null
  #providerMetadata: []
  #width: null
  #height: null
  #length: null
  #copyright: null
  #authorName: null
  #context: null
  #cdnStatus: null
  #cdnIsFlushable: false
  #cdnFlushIdentifier: null
  #cdnFlushAt: null
  #updatedAt: null
  #createdAt: null
  #binaryContent: null
  #previousProviderReference: null
  #contentType: null
  #size: null
  #category: null
   …2
}

And if i tried to upload image i get ‘error.image_too_small’ media-bundle version - 4.0.0-RC2

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19 (13 by maintainers)

Most upvoted comments

I guess it should be:

"sonata-project/media-bundle": "dev-improvement/remove-final-modifier",

https://getcomposer.org/doc/05-repositories.md#vcs

You can configure my fork of SonataMediaBundle and use this branch in order to test the PR.