Reputation: 800
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.
can anyone know how to solve this?.
Upvotes: 3
Views: 3298
Reputation: 9
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
Upvotes: 0
Reputation: 21
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
Upvotes: 2
Reputation: 694
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.
Upvotes: 0