You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Geeklog v2.2.1 websites that use IIS (tested on IIS7 and 8) will get the following error when they attempt to launch the RIch Filemanager
"CLDR files for "en" language do not exist!" in a red box. The loading icon is still being animated but the javascript execution has stopped with the following error:
Please note with line numbers: filemanager.min.js is actually switched with the non minimized 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
The file libs-main.js is minimized and very large. It is too difficult for me to debug to see what is going on.
.then(function() {
// trim language code to first 2 chars
var lang = langModel.getLang().substr(0, 2),
//baseUrl = fm.settings.baseUrl;
baseUrl = 'http://192.168.0.102/filemanager';
return $.when(
$.get(baseUrl + '/libs/cldrjs/cldr-dates/' + lang + '/ca-gregorian.json'),
$.get(baseUrl + '/libs/cldrjs/cldr-numbers/' + lang + '/numbers.json'),
$.get(baseUrl + '/libs/cldrjs/cldr-core/supplemental/likelySubtags.json'),
$.get(baseUrl + '/libs/cldrjs/cldr-core/supplemental/timeData.json'),
$.get(baseUrl + '/libs/cldrjs/cldr-core/supplemental/weekData.json')
).fail(function () {
fm.error('CLDR files for "' + lang + '" language do not exist!');
}).then(function () {
// Normalize $.get results, we only need the JSON, not the request statuses.
return [].slice.apply(arguments, [0]).map(function (result) {
return result[0];
});
}).then(Globalize.load).then(function () {
globalize = Globalize(lang);
});
});
I have tested the code and those files in the code exist and I can load them from my browser directly fine. For some reason the jquery when and get functions cannot load the files under IIS (with Apache it can).
Hopefully they will come up with a fix eventually. Anyways not many sites use IIS so we will ship Geeklog v2.2.1 with a note that unfortunately the Rich Filemanager currently doesn't work for IIS.
When the Rich FIlemanager gets updated we should review and test this issue again to see if support for IIS has been fixed.
The text was updated successfully, but these errors were encountered:
Related to #806
Geeklog v2.2.1 websites that use IIS (tested on IIS7 and 8) will get the following error when they attempt to launch the RIch Filemanager
"CLDR files for "en" language do not exist!" in a red box. The loading icon is still being animated but the javascript execution has stopped with the following error:
Please note with line numbers: filemanager.min.js is actually switched with the non minimized version:
The file libs-main.js is minimized and very large. It is too difficult for me to debug to see what is going on.
The code actually errors out here:
\public_html\filemanager\src\js\filemanager.min.js
on the line:
return [].slice.apply(arguments, [0]).map(function (result) {
Here is more of the code
I have tested the code and those files in the code exist and I can load them from my browser directly fine. For some reason the jquery when and get functions cannot load the files under IIS (with Apache it can).
./libs/cldrjs/cldr-dates/en/ca-gregorian.json
I also posted about this issue at the Rich Filemanager repository: psolom/RichFilemanager#397
Hopefully they will come up with a fix eventually. Anyways not many sites use IIS so we will ship Geeklog v2.2.1 with a note that unfortunately the Rich Filemanager currently doesn't work for IIS.
When the Rich FIlemanager gets updated we should review and test this issue again to see if support for IIS has been fixed.
The text was updated successfully, but these errors were encountered: