Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/symfony/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Symfony:FMElfinderBundle+;IvoryCKEditorBundle。空白页_Symfony_Ckeditor_Elfinder - Fatal编程技术网

Symfony:FMElfinderBundle+;IvoryCKEditorBundle。空白页

Symfony:FMElfinderBundle+;IvoryCKEditorBundle。空白页,symfony,ckeditor,elfinder,Symfony,Ckeditor,Elfinder,我在symfony项目中使用IvoryCKEditorBundle没有任何问题 但当我尝试将FMElfinderBundle添加到IvoryCKEditorBundle时。我在控制台中看到一个有错误的空白页: 我的代码: #app/config/config.yml # FMElfinderBundle Configuration fm_elfinder: instances: ckeditor: locale: %locale% # defau

我在symfony项目中使用IvoryCKEditorBundle没有任何问题

但当我尝试将FMElfinderBundle添加到IvoryCKEditorBundle时。我在控制台中看到一个有错误的空白页:

我的代码:

#app/config/config.yml
# FMElfinderBundle Configuration
fm_elfinder:
    instances:
        ckeditor:
            locale: %locale% # defaults to current request locale
            editor: ckeditor # other options are tinymce, tinymce4, form, custom and simple
            fullscreen: true # defaults true, applies to simple and ckeditor editors
            theme: smoothness # jquery theme
            include_assets: true # disable if you want to handle loading of the javascript and css assets yourself
            connector:
                debug: false # defaults to false
                roots:       # at least one root must be defined
                    uploads:
                        show_hidden: false # defaults to false
                        driver: LocalFileSystem
                        path: uploads
                        upload_allow: ['image/png', 'image/jpg', 'image/jpeg']
                        upload_deny: ['all']
                        upload_max_size: 2M

# IvoryCKEditorBundle Configuration
ivory_ck_editor:
    default_config:    my_custom_config
    configs:
        my_custom_config:
            toolbar:                    full
            filebrowserBrowseRoute:     elfinder
            filebrowserBrowseRouteParameters:
                instance: ckeditor

有什么帮助吗??谢谢这是我的配置。也许这有助于:

fm_elfinder:
    instances:
        default:
            locale: %default_locale% # defaults to current request locale
            editor: ckeditor # other options are tinymce, tinymce4, form, custom and simple
            fullscreen: true # defaults true, applies to simple and ckeditor editors
            theme: smoothness # jquery theme
            include_assets: true # disable if you want to handle loading of the javascript and css assets yourself
            connector:
                debug: false # defaults to false
                roots:       # at least one root must be defined
                    uploads:
                        show_hidden: false # defaults to false
                        driver: LocalFileSystem
                        path: uploads/content
                        upload_allow: ['image/png', 'image/jpg', 'image/jpeg']
                        upload_deny: ['all']
                        upload_max_size: 20M

ivory_ck_editor:
    configs:
        my_config:
            removePlugins: 'flash,print,forms,div,newpage'
            allowedContent: true
            entities: false
            autoParagraph: false
            protectedSource: ['/<span[^>]*><\/span>/g', '/<i[^>]*><\/i>/g']
fm_elfinder:
实例:
违约:
区域设置:%default_locale%#默认为当前请求区域设置
编辑器:ckeditor#其他选项有tinymce、tinymce4、表单、自定义和简单
全屏:true#默认值true,适用于简单编辑器和编辑器编辑器
主题:平滑度#jquery主题
include_assets:true#如果您想自己处理javascript和css资产的加载,请禁用
连接器:
调试:false#默认为false
根:#必须至少定义一个根
上载:
show_hidden:false#默认为false
驱动程序:本地文件系统
路径:上载/内容
上传允许:['image/png','image/jpg','image/jpeg']
上传拒绝:[“全部”]
上传最大尺寸:20M
象牙色编辑:
配置:
我的配置:
移除插件:“flash、打印、表单、div、newpage”
允许内容:正确
实体:假
自动参数:错误
protectedSource:['/]*>/g','/]*>/g']

似乎elfinder资产没有正确转储,请检查web根目录下的资产文件夹。还要检查您的composer文件是否包含

{
    "config": {
        "component-dir": "web/assets"
    }
}

本部分告诉组件安装程序复制web/assets目录下的资产

嘿,这对我有用,但现在我不能从我的电脑上传文件,只有链接有效?