genemu / GenemuFormBundle

Extra Form : Captcha GD, Tinymce, Recaptcha, JQueryDate, JQueryAutocomplete, JQuerySlider, JQueryFile, JQueryImage
587 stars 263 forks source link

jQuery image field #212

Open benoitboucart opened 11 years ago

benoitboucart commented 11 years ago

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

mkurzeja commented 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.

sglessard commented 11 years ago

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

sealse commented 11 years ago

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.

succinct commented 11 years ago

I am having the same issue. Would love to use this feature!

Francescu commented 11 years ago

Same issue here.

meynety commented 11 years ago

I'm having the same issue in Symfony 2.2, Would love to use this feature too !

florentcm commented 11 years ago

Same issue ! Does anyone have a workaround yet ?

brunocascio commented 11 years ago

+1

jlemale commented 11 years ago

Any news on that ? Symfony 2.3 same issue.

abocquet commented 10 years ago

Hi, I've the same problem with symfony2.3 too.

fabienlege commented 10 years ago

Same problem for me, Any solution ?

beldougie commented 10 years ago

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.

ghost commented 10 years ago

I have same issue...kindly guide me how to resolve this.

NaxYo commented 10 years ago

+1

azianfr commented 10 years ago

Same issue here. :+1:

KunwarSiddharthSingh commented 10 years ago

same issue here in Symfony2.3 :+1:

cesarve77 commented 10 years ago

same issue here in Symfony2.4

cubotar commented 10 years ago

Any solution for this ? :/

wanaoishi commented 10 years ago

Still have the same problem.

ruscon commented 10 years ago

same issue here in Symfony2.5 :+1:

kmehmety commented 9 years ago

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'