Open benoitboucart opened 11 years ago
I have the same issue.
There are some problems: the folder array index is in $options and not in $options['configs'].
It is easy to fix, but then I receive a lot of errors (undefined indexes: swf, script, cancelImg). Unfortunatelly I don't know what the values should be and i can't provide a working fix.
I've quickly tried "genemu_jqueryimage" field type and gotten the same error in FileType.php. I'm wondering why ~/vendor/genemu/form-bundle/Genemu/Bundle/FormBundle/Form/JQuery/Type/FileType.php is called while it should be ~/vendor/genemu/form-bundle/Genemu/Bundle/FormBundle/Form/JQuery/Type/ImageType.php
I have a same problem - Notice: Undefined index: folder in ~/vendor/genemu/form-bundle/Genemu/Bundle/FormBundle/Form/JQuery/Type/FileType.php line 57, Project by sonata sandbox, Symfony 2.2, php 5.4.
I am having the same issue. Would love to use this feature!
Same issue here.
I'm having the same issue in Symfony 2.2, Would love to use this feature too !
Same issue ! Does anyone have a workaround yet ?
+1
Any news on that ? Symfony 2.3 same issue.
Hi, I've the same problem with symfony2.3 too.
Same problem for me, Any solution ?
The problem seems to be that FileType has setDefaultOptions implemented, but ImageType only has the deprecated getDefaultOptions implemented and so it doesn't actually get called and the default configs option doesn't get called.
It's fixed in the master branch (and presumably the 2.2.* tags) but hasn't been fixed in this branch. I'm adding a PR to this branch with a fix which hopefully will get picked up.
I have same issue...kindly guide me how to resolve this.
+1
Same issue here. :+1:
same issue here in Symfony2.3 :+1:
same issue here in Symfony2.4
Any solution for this ? :/
Still have the same problem.
same issue here in Symfony2.5 :+1:
You have to define field types in config.yml. Make sure you want to use fileds are defined...
Like;
genemu_form:
tinymce:
enabled: true
theme: modern
file:
enabled: true
folder: 'uploads'
Hi
I was trying the "image field type" but I get this error:
Notice: Undefined index: folder in //vendor/genemu/form-bundle/Genemu/Bundle/FormBundle/Form/JQuery/Type/FileType.php line 57
Form type: ->add('file', 'genemu_jqueryimage')
Version 2.1
Thanks