You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've upgraded VichUploaderBundle from 2.0.1 to 2.1.1. After this upgrade, when I try to show an image with vich_uploader_asset I got this error: "Attempted to call an undefined method named "asset" of class "Vich\UploaderBundle\Twig\Extension\UploaderExtension"."
Previous behavior
Using vich_uploader_asset the url of an image is written in a Twig template
Current behavior
It crashes with an error: "Attempted to call an undefined method named "asset" of class "Vich\UploaderBundle\Twig\Extension\UploaderExtension"."
The asset method is not in that class anymore, so I guess you messed up something.
Feel free to re-open if you can provide a project in which it's possible to reproduce the exception.
BC Break Report
Summary
I've upgraded VichUploaderBundle from 2.0.1 to 2.1.1. After this upgrade, when I try to show an image with
vich_uploader_asset
I got this error: "Attempted to call an undefined method named "asset" of class "Vich\UploaderBundle\Twig\Extension\UploaderExtension"."Previous behavior
Using
vich_uploader_asset
the url of an image is written in a Twig templateCurrent behavior
It crashes with an error: "Attempted to call an undefined method named "asset" of class "Vich\UploaderBundle\Twig\Extension\UploaderExtension"."
How to reproduce
My configuration is really simple:
vich_uploader.yaml
base/index.html:
All is working correctly with VichUploaderBundle 2.0.1. If I upgrade to 2.1.1, reloading the index page I got this error:
Attempted to call an undefined method named "asset" of class "Vich\UploaderBundle\Twig\Extension\UploaderExtension".
Offending code:
The text was updated successfully, but these errors were encountered: