-2

I have uploaded tinymce 4 at my domain successfully and tinymce editor is working properly but in filemanager it is giving a error:

There is an error! The root folder not exist.

I set up my file path in the config.php is like this:

$base_url="http://37.221.168.163/~host10ma"; //url base of site if you want only relative url leave empty
$upload_dir = '/tinymce/source/'; // path from base_url to upload base dir
$current_path = '../../source/'; // relative path from filemanager folder to upload files folder

But still i am getting this error, i have tried all possible solutions available on net please someone solve this.

Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055
lakki
  • 21
  • 1
  • 4

5 Answers5

0

I haven't used TinyMCE for a long time but looking at the documentation it looks like you are not using the right parameters in your config.php

http://www.tinymce.com/wiki.php/Configuration

Also check the installation process:

http://www.tinymce.com/wiki.php/mcimagemanager:installation

Artur Kedzior
  • 3,994
  • 1
  • 36
  • 58
0

I added the folder name of my app to the root like this : $root = $root . "/myapp/";

And then left the base url empty like this : $base_url = "";

0

This thread is a bit old but I just found the solution so maybe it could help the next person with the same problem.

The $base_url needs to be a root URL, not a path to a specific folder. Instead of what you did, change it like this:

$base_url = 'http://37.221.168.163'; //url base of site if you want only relative url leave empty
$upload_dir = '/~host10ma/tinymce/source/'; // path from base_url to upload base dir
$current_path = '../../source/'; // relative path from filemanager folder to upload files folder

I don't know what you folder tree looks like but make sure $current_path is properly set. If not, nothing will happen when you try to upload a file (only preview, no actual upload). Don't forget the script is called from within the filemanager folder, so mind the actual number of levels you need to go back from.

Sarah Dayan
  • 448
  • 3
  • 9
0

1.Assume your tinymce folder located in http://localhost/projectname/tinymce/

2.Create folder images under tinymce eg: tinymce/images

3.Go to the folder location tinymce/plugins/filemanager/config.php

4.Go to the line near 15 to 20

base_url="http://localhost/projectname/";

$upload_dir = 'tinymce/images/';

$current_path = '../../images/';

5.Add this line

$root='/tinymce/';

Save and Run the project.

Prabhagaran
  • 3,620
  • 1
  • 19
  • 19
0
  1. Assume your tinymce folder located in http://localhost/projectname/tinymce/

  2. Create folder images under tinymce eg: tinymce/images

  3. Go to the folder location tinymce/plugins/filemanager/config.php

  4. Go to the line near 15 to 20-- it will be look like this

 

base_url="http://localhost/projectname/";
$upload_dir = 'tinymce/images/';
$current_path = '../../images/';
  1. Add this line: $root='/tinymce/'; or $root='../tinymce/';

Save and Run the project.

Hope it works....

josliber
  • 43,891
  • 12
  • 98
  • 133
Prabhagaran
  • 3,620
  • 1
  • 19
  • 19