Skip to content
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

Error in Ivory\\CKEditorBundle\\Composer\\CKEditorScriptHandler::install #347

Closed
ghettovoice opened this issue Apr 10, 2018 · 5 comments
Closed

Comments

@ghettovoice
Copy link

Hello!
I'm having an issue with composer script handler

> Ivory\CKEditorBundle\Composer\CKEditorScriptHandler::install


 [RuntimeException]                                                                                                                                                                                                                                         
  An error occurred when executing the "'ckeditor:install'" command:                                                                                                                                                                                         
                                                                                                                                                                                                                                                             
  ----------------------                                                                                                                                                                                                                                     
  | CKEditor Installer |                                                                                                                                                                                                                                     
  ----------------------                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                             
  In QuestionHelper.php line 53:                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                             
    Notice: Undefined index: Drop the directory & reinstall CKEditor                                                                                                                                                                                         
                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                             
  ckeditor:install [--release [RELEASE]] [--tag [TAG]] [--clear [CLEAR]] [--exclude [EXCLUDE]] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<path>]  
                                                                                                                                                                                                                                                             

And seems like the bug is here https://github.com/egeloen/IvoryCKEditorBundle/blob/master/Command/CKEditorInstallerCommand.php#L323. As I understand the constructor of ChoiceQuestion accepts key of default choice, not the value. Or I misunderstood something?

I' using

  • symfony 3.4.5
  • egeloen/ckeditor-bundle 6.0.1

Thanks

@rampmaster
Copy link

drop vendor folder and reinstall

@ghettovoice
Copy link
Author

I added "ckeditor-clear": "drop" to composer "extra" section to avoid look up for default choice option.

@COil
Copy link

COil commented Apr 12, 2018

@ghettovoice how did you found this setting?

@ghettovoice
Copy link
Author

@COil
Copy link

COil commented Apr 27, 2018

Thank you, close the ticket please. 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants