RichFilemanager icon indicating copy to clipboard operation
RichFilemanager copied to clipboard

RichFilemanger Fails to run under IIS

Open eSilverStrike opened this issue 4 years ago • 1 comments

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

  • [1 ] I have read and understood the Wiki. Especially deploy and configuration articles.
  • [ 1] I have checked that the bug I am reporting can be replicated, or that the feature I am suggesting isn't already present.
  • [1 ] I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.
  • [1 ] I realise that server-side connectors are provided by various contributors. The implementations are vary due to programming language features/limitations or other factors. Thus a particular connector may not implement, or partially implement, the API features.
  • [1 ] I realise that any changes in configuration options and/or plugin parameters affect the plugin behavior. I specified all the differences from defaults in details.

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

  • [ 1] PHP connector by servocoder
  • [ ] Java connector by fabriceci
  • [ ] Python3 Flask connector by jsooter
  • [ ] Python3 Flask connector by stevelittlefish
  • [ ] NodeJs connector by jlaustill and forestlake
  • [ ] ASP.NET Core connector by sinanbozkus
  • [ ] ASHX connector by richeflits
  • [ ] Other (specified below)

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

  • [ ] I have never used the project.
  • [ 1] I have used the project briefly.
  • [ ] I have used the project extensively, but have not contributed previously.
  • [ ] I am an active contributor to the project.

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 avatar Nov 05 '19 17:11 eSilverStrike

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

eSilverStrike avatar Nov 06 '19 13:11 eSilverStrike