FileManager4TinyMCE icon indicating copy to clipboard operation
FileManager4TinyMCE copied to clipboard

There is an error! The root folder not exist.

Open rajasajidmanzoor opened this issue 9 years ago • 7 comments

Hello I am trying to use this plugin and i have following error image

My Code is

<script type="text/javascript">
        tinymce.init({

            selector: "textarea",
            theme: "modern",
 skin: "lightgray",
subfolder:"uploads",
            plugins: [

                "paste advlist autolink lists link image charmap print preview hr anchor pagebreak searchreplace wordcount visualblocks visualchars code fullscreen media filemanager",

            ],

            toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
            toolbar2: "print preview media | forecolor backcolor emoticons | image media",
            image_advtab: true,
            templates: [
                {title: 'Test template 1', content: 'Test 1'},
                {title: 'Test template 2', content: 'Test 2'}
            ], 
paste_auto_cleanup_on_paste : true,
      paste_convert_middot_lists : false,
      paste_text_sticky : true,
      paste_strip_class_attributes : "all",
      paste_remove_styles : true,
      paste_remove_spans : true,
      paste_block_drop : true,
relative_urls: true,
document_base_url: '<?php echo base_url(); ?>',
open_manager_upload_path: 'uploads/'


        });
    </script>

Please tell me where i am doing wrong

rajasajidmanzoor avatar May 21 '15 16:05 rajasajidmanzoor

hi you can set root folder in config.php line 20 please check config.php file here

https://github.com/2b3ez/FileManager4TinyMCE/blob/master/tinymce/plugins/filemanager/config.php

umefarooq avatar May 24 '15 05:05 umefarooq

Hello @umefarooq Brother root folder exists. I have added .htaccess file to disable direct access to filemanager folder so that no one can access it directly. However folder is accessible within code or any file. Secondly this error is displayed even i remove .htaccess file.

rajasajidmanzoor avatar May 24 '15 07:05 rajasajidmanzoor

for testing create a same name of root upload folder under filemanager plugin directory and see i also faced these problem, adjusting path of file manager is big problem.

umefarooq avatar May 25 '15 04:05 umefarooq

realpath('../../../../some/path/to/dir/'); can help

ivanchenkoandriy avatar Dec 29 '15 17:12 ivanchenkoandriy

Please use responsive filemanager at responsivefilemanager.com

trippo avatar Dec 30 '15 07:12 trippo

Please use descriptive error messages!

IE dialog.php line 209:

There is an error! The root folder not exist

should be

There is an error! The root folder <?php echo $root . $cur_dir; ?> not exist

This will save users a lot of debugging time.

JD719 avatar Nov 22 '16 01:11 JD719

BTW thanks for your work

JD719 avatar Nov 22 '16 01:11 JD719