FileManager4TinyMCE
FileManager4TinyMCE copied to clipboard
There is an error! The root folder not exist.
Hello
I am trying to use this plugin and i have following error
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
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
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.
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.
realpath('../../../../some/path/to/dir/'); can help
Please use responsive filemanager at responsivefilemanager.com
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.
BTW thanks for your work