psolom / RichFilemanager

An open-source file manager. Up-to-date for PHP, Java, ASHX, ASP, NodeJs & Python 3 Flask. Contributions are welcome!
http://fm.devale.pro
903 stars 248 forks source link

RichFilemanger Fails to run under IIS #397

Open eSilverStrike opened 4 years ago

eSilverStrike commented 4 years ago

In raising this issue, I confirm the following (please check boxes):

I use the following server-side connector (check one):

My familiarity with the project is as follows (check one):


We have moved from using FileManager to Rich Filemanager as the file manager which ships with Geeklog v2.2.1 (an upcoming release). Everything works as expected under Apache. We get the following error when we use it under IIS (tested with 7 and 8)

"CLDR files for "en" language do not exist!"

This error appears in a red box when the Rich Filemanger attempts to load.

I have spent a few hours on this issue and have yet to figure it out. I hope someone here can point me in the right direction to get this fixed. Here is our issue on Github:

https://github.com/Geeklog-Core/geeklog/issues/806

I tried different browsers and different computers when attempting to access the file manager. This is happening on my IIS7 development web server which I access through an IP instead of a domain name. For some reason in the \public_html\filemanager\src\js\filemanager.min.js it fails when it trys to load the CLDR files using the jquery $.get method. I added some custom code after the fail:

$( document ).ajaxError(function( event, request, settings ) {
  alert( "Error requesting page " + request.status + " " + settings.url + " "  + settings.success + "" );
}); 

and the status of the request returned is 200 and the URL is correct but the success returned is undefined.. In my browser I can load directly all 5 of the json files without problems. I have no idea why this is happening and searching online for an answer leads no where. \public_html\filemanager\connectors\php\filemanager.php appears not to even run. I assume it must load after the filemanager.min.js but doesn't happen because it fails loading the CLDR files.

Maybe it is something with IIS? Is it jquery? I don't know...

eSilverStrike commented 4 years ago

To give a bit more information. On either of my IIS servers this is the javascript error I get (note: filemanager.min.js is actually switched with the non minmized version):

ReferenceError: request is not defined filemanager.min.js:369:6
    localize http://192.168.0.102/filemanager/src/js/filemanager.min.js:369
    k http://192.168.0.102/filemanager/src/js/libs-main.js:2
    fireWith http://192.168.0.102/filemanager/src/js/libs-main.js:2
    f[0] http://192.168.0.102/filemanager/src/js/libs-main.js:2
    k http://192.168.0.102/filemanager/src/js/libs-main.js:2
    fireWith http://192.168.0.102/filemanager/src/js/libs-main.js:2
    c http://192.168.0.102/filemanager/src/js/libs-main.js:3
    b http://192.168.0.102/filemanager/src/js/libs-main.js:3