3

I am using Roxy Fileman in ckeditor to add and manage images. This was working perfectly in my local Xampp server. When i use it in live server, after click on browse, E_LoadingAjax php/dirtree.php error alert is shown.

enter image description here

can anyone know how to solve this?.

Kavin Smk
  • 808
  • 11
  • 37

3 Answers3

2

Please do check that php-mbstring module is installed on your php. For me i just installed this module and now everything is working perfect. For Ubuntu 16.4

Please type in terminal:

sudo apt-get install php-mbstring php7.0-mbstring php-gettext libapache2-mod-php7.0

Then, restart apache2:

sudo systemctl restart apache2

Ali
  • 21
  • 2
  • navigate to tiny\fileman\ and then open file system.inc.php and replace define('BASE_PATH', dirname (_FILE__)); with define('BASE_PATH', _DIR__); – Ali May 17 '18 at 07:56
0

For me, the problem was that the .htaccess file had a RewriteRule that was blocking http access to required files.

The Roxy FAQ says that you should be able to load dirtree.php in a browser window. In my case, that file was throwing a 403 until I removed/updated the htaccess RewriteRule.

eh1160
  • 674
  • 1
  • 6
  • 14
0

for me this is useful. in the php / functions.inc.php folder there is a function

function listDirectory ($ path) {
   $ ret = @scandir ($ path);
   if ($ ret === false) {
     $ ret = array ();
     $ d = opendir ($ path);
     if ($ d) {
       while (($ f = readdir ($ d))! == false) {
         $ ret [] = $ f;
       }
       closedir ($ d);
     }
   }

change @scandir to scandir