-
Notifications
You must be signed in to change notification settings - Fork 130
Unrecognized options "instances" under "fm_elfinder" #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @nielvrom, what version of bundle have you installed? "Instances" option only available under 2.x version/branch (and master branch). |
I was using an older version. But when I try version 2.x I get the following errors trying composer update: [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException] Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception [RuntimeException] |
Well, you need to define at least one instance (under instances node) to use bundle. Check your intendation, i.e. fm_elfinder:
instances:
default:
locale: .... |
In my config.yml I now have :
In my ArticleType (Form Type) I have:
But I get the following error:
What am I doing wrong? |
Have you installed ivoryckeditorbundle and registered in AppKernel.php? |
Yes, I'm sorry but the error was: |
In your form type, just add ->add('content', 'ckeditor') It would be enough |
Thanks, now I can see the button "browse on server" when I try to upload an image. But when I click on it I get the error: |
Oh, i see ivory_ck_editor:
default_config: default
configs:
default:
filebrowserBrowseRoute: elfinder
filebrowserBrowseRouteParameters:
instance: ckeditor <<--- your instance called default, change this |
Thanks! Works perfect now! |
Issue is resolved, closing. |
When I'm trying "Basic configuration" step and add the following to my config.yml:
fm_elfinder:
instances:
default:
locale: %locale% # defaults to current request locale
editor: ckeditor # other choices are tinymce or simple
showhidden: false # defaults to false
fullscreen: true # defaults true, applies to simple and ckeditor editors
include_assets: true # disable if you want to handle loading of the javascript and css assets yourself
compression: false # enable if you configured the uglifycss and uglifyjs2 assetic filters and want compression
connector:
debug: false # defaults to false
roots: # at least one root must be defined
uploads:
driver: LocalFileSystem
path: uploads
upload_allow: ['image/png', 'image/jpg', 'image/jpeg']
upload_deny: ['all']
upload_max_size: 2M
then I get the following error: Unrecognized options "instances" under "fm_elfinder".
What am I doing wrong?
The text was updated successfully, but these errors were encountered: