simogeo / Filemanager

An open-source file manager released under MIT license. Up-to-date for PHP connector. This package is DEPRECATED. Now, please use RichFileManager available at : https://github.com/servocoder/RichFilemanager.
938 stars 351 forks source link

Error: "No Way." Files wont show. #385

Closed mattlr20 closed 9 years ago

mattlr20 commented 9 years ago

I believe this particular "No Way" error is from line 230 in the php connector. Any ideas?

Here is the log. [08/09/2015 02:43:49]#1.0.0.1#Filemanager::enableLog - Log enabled (in Z:/filemanager_log.txt file) [08/09/2015 02:43:49]#1.0.0.1#Filemanager::construct $this->root value Z:\path\Filemanager-master\ [08/09/2015 02:43:49]#1.0.0.1#Filemanager::construct $this->path_to_files Z:\path\Filemanager-master\userfiles/ [08/09/2015 02:43:49]#1.0.0.1#Filemanager::construct $this->doc_root value Z:\www [08/09/2015 02:43:49]#1.0.0.1#Filemanager::__construct $this->separator value userfiles [08/09/2015 02:43:49]#1.0.0.1#substr path_to_files : \ [08/09/2015 02:43:49]#1.0.0.1#path_to_files : Z:\path\Filemanager-master\userfiles\ [08/09/2015 02:43:49]#1.0.0.1#Filemanager::error - error message : No way. [08/09/2015 02:43:49]#1.0.0.1#Filemanager::enableLog - Log enabled (in Z:/filemanager_log.txt file) [08/09/2015 02:43:49]#1.0.0.1#Filemanager::construct $this->root value Z:\path\Filemanager-master\ [08/09/2015 02:43:49]#1.0.0.1#Filemanager::construct $this->path_to_files Z:\path\Filemanager-master\userfiles/ [08/09/2015 02:43:49]#1.0.0.1#Filemanager::construct $this->doc_root value Z:\www [08/09/2015 02:43:49]#1.0.0.1#Filemanager::__construct $this->separator value userfiles [08/09/2015 02:43:49]#1.0.0.1#substr path_to_files : \ [08/09/2015 02:43:49]#1.0.0.1#path_to_files : Z:\path\Filemanager-master\userfiles\ [08/09/2015 02:43:49]#1.0.0.1#Filemanager::error - error message : No way.

simogeo commented 9 years ago

FM is suspecting an attack .... could you post your config file ?

simogeo commented 9 years ago

I'm talking about filemanager.config.js file : https://github.com/simogeo/Filemanager/blob/master/scripts/filemanager.config.js.default

mattlr20 commented 9 years ago

{ "_comment": "IMPORTANT : go to the wiki page to know about options configuration https://github.com/simogeo/Filemanager/wiki/Filemanager-configuration-file", "options": { "culture": "en", "lang": "php", "theme": "flat-dark", "defaultViewMode": "grid", "autoload": true, "showFullPath": false, "showTitleAttr": false, "browseOnly": false, "showConfirmation": true, "showThumbs": true, "generateThumbnails": true, "searchBox": true, "listFiles": true, "fileSorting": "default", "chars_only_latin": true, "dateFormat": "d M Y H:i", "serverRoot": true, "fileRoot": false, "baseUrl": false, "logger": true, "logfile": "C:/filemanager_log.txt", "capabilities": ["select", "download", "rename", "delete", "replace"], "plugins": [] }, "security": { "allowFolderDownload": false, "allowChangeExtensions": false, "allowNoExtension": false, "uploadPolicy": "DISALLOW_ALL", "uploadRestrictions": [ "jpg", "jpe", "jpeg", "gif", "png", "svg", "txt", "pdf", "odp", "ods", "odt", "rtf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "csv", "ogv", "mp4", "webm", "m4v", "ogg", "mp3", "wav", "zip", "rar" ] }, "upload": { "multiple": true, "number": 5, "overwrite": false, "imagesOnly": false, "fileSizeLimit": 16 }, "exclude": { "unallowed_files": [ ".htaccess", "web.config" ], "unallowed_dirs": [ "_thumbs", ".CDN_ACCESS_LOGS", "cloudservers" ], "unallowed_files_REGEXP": "/^./", "unallowed_dirs_REGEXP": "/^./" }, "images": { "imagesExt": [ "jpg", "jpe", "jpeg", "gif", "png", "svg" ], "resize": { "enabled":true, "maxWidth": 1280, "maxHeight": 1024 } }, "videos": { "showVideoPlayer": true, "videosExt": [ "ogv", "mp4", "webm", "m4v" ], "videosPlayerWidth": 400, "videosPlayerHeight": 222 }, "audios": { "showAudioPlayer": true, "audiosExt": [ "ogg", "mp3", "wav" ] }, "pdfs": { "showPdfReader": true, "pdfsExt": [ "pdf", "odp" ], "pdfsReaderWidth": "640", "pdfsReaderHeight": "480"
}, "edit": { "enabled": true, "lineNumbers": true, "lineWrapping": true, "codeHighlight": false, "theme": "elegant", "editExt": [ "txt", "csv" ] }, "customScrollbar": { "enabled": true, "theme": "inset-2-dark", "button": true }, "extras": { "extra_js": [], "extra_js_async": true }, "icons": { "path": "images/fileicons/", "directory": "_Open.png", "default": "default.png" }, "url": "https://github.com/simogeo/Filemanager", "version": "2.0.0-dev" }

simogeo commented 9 years ago

OS version ? are you using a AMP package ?

mattlr20 commented 9 years ago

I am using Windows OS. I am not using a AMP package.

simogeo commented 9 years ago

what is the path to your web server ? what is the path to your Filemanger folder ?

mattlr20 commented 9 years ago

The path to the filemanager folder is C:/dev/webprojects/Intranet/wwwroot/filemanager

Sorry, I'm having trouble finding out the path to the web server.

simogeo commented 9 years ago
echo $_SERVER['DOCUMENT_ROOT']
mattlr20 commented 9 years ago

Thanks, its: C:\dev\www

simogeo commented 9 years ago
  1. So, put FM folder into C:\dev\www
  2. Be sure to copy/paste /scripts/filemanager.config.js.default and rename it to /scripts/filemanager.config.js
  3. open your browser to http://localhost/filemanager/
  4. it will works
mattlr20 commented 9 years ago

It works! Thanks for helping so quickly!