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

There is an error! The root folder not exist. #52

Open
rajasajidmanzoor opened this issue May 21, 2015 · 7 comments
Open

There is an error! The root folder not exist. #52

rajasajidmanzoor opened this issue May 21, 2015 · 7 comments

Comments

@rajasajidmanzoor
Copy link

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

@umefarooq
Copy link

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

@rajasajidmanzoor
Copy link
Author

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.

@umefarooq
Copy link

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.

@ivanchenkoandriy
Copy link

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

@trippo
Copy link
Collaborator

trippo commented Dec 30, 2015

Please use responsive filemanager at responsivefilemanager.com

@JD719
Copy link

JD719 commented Nov 22, 2016

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
Copy link

JD719 commented Nov 22, 2016

BTW thanks for your work

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

5 participants