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 after update #86

Closed
TNAJanssen opened this issue Jan 31, 2014 · 7 comments · Fixed by #89
Closed

Error after update #86

TNAJanssen opened this issue Jan 31, 2014 · 7 comments · Fixed by #89

Comments

@TNAJanssen
Copy link
Contributor

Hi,

I just updated to 2.2.0 and i get the error:
You cannot create a service ("ivory_ck_editor.helper.templating") of an inactive scope ("request").

on cache:clear

@egeloen
Copy link
Owner

egeloen commented Jan 31, 2014

What is your Symfony version?

@TommyChris
Copy link

I have the same error. I'm using the latest 2.3.* version, now it is 2.3.9.

My config.yml:

ivory_ck_editor:
    default_config: full
    configs:
        full:
            toolbar: full
            allowedContent: true
            entities: false
            filebrowserBrowseRoute: elfinder
        standard:
            toolbar: standard
            allowedContent: true
            entities: false
            filebrowserBrowseRoute: elfinder
        basic:
            toolbar: basic
            allowedContent: true
            entities: false
            filebrowserBrowseRoute: elfinder

fm_elfinder:
    editor: ckeditor
    connector:
        roots:
            uploads:
                path: uploads/files
                upload_allow: ['all']
                upload_deny: ['none']
                upload_max_size: 50M

@egeloen
Copy link
Owner

egeloen commented Jan 31, 2014

After debugging it, it seems related to the new twig extension which is loaded in the CLI during a cache clear... The only solution I see is to inject the whole container in the CKEditor templating helper.

Does anyone else see an other way to fix it?

@eko
Copy link

eko commented Jan 31, 2014

@egeloen It seems that you haven't any other solution, this is what is already done actually in TwigBundle: https://github.com/symfony/symfony/blob/2.4/src/Symfony/Bundle/TwigBundle/Extension/AssetsExtension.php

@egeloen
Copy link
Owner

egeloen commented Jan 31, 2014

I just merged the fix and release the 2.2.1

@eko
Copy link

eko commented Jan 31, 2014

Thank you

@maguramarkian
Copy link

Thank you @egeloen

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