Closed AmrAlfoly closed 8 years ago
What is this `"folder_path": "files/images/" about in your config file ?
use fileRoot and serverRoot :
i have removed the "folder_path" form the configuration file and used the instructions in your link to specify a user folder but i got this error
The directory /files/images/ does not exist.
the folder i am trying to point to is not at the same level as filemanager folder in my public directory so files/images is besides filemanager folder how can i point to the filemanager script to it then ?
and if i tried to point to the files folder it doesn't work as mentioned in the wiki page i had to set serverRoot to false and filesRoot to files and i get this error
filemtime(): stat failed for /var/www/alamya/public/filesalbums the script is trying to list the folder in it (albums) is one of them but it fails what is the problem?
filemtime(): stat failed for /var/www/alamya/public/filesalbums the script is trying to list the folder in it (albums) is one of them but it fails what is the problem?
What is your OS? I faced similar problem on Windows. As I remebmer the issue was occured due to filenames in cp1251 encoding which is utilized in Windows OS. Anyway try to remove gaps in your filenames and any special chars.
i am using Ubuntu which is a Linux distro and there is no gaps in the folder names even i tried to point the script to an empty folder the script loads without errors but when i try to create sub folder or upload an image it creates/upload outside the folder for example : my folder name was test and the scripts loaded very good without errors and i created a folder named mine inside it using the script i found that the folder created outside the test folder and it's name is testmine please help
/var/www/alamya/public/filesalbums
it seems at least, on '/' is missging, no ?
Try to enable log and see what's happening related to paths : https://github.com/simogeo/Filemanager/wiki/Enable-log-debug-in-PHP-connector
here is the output of the log file
[24/03/2016 04:54:57]#127.0.0.1#Filemanager::enableLog - Log enabled (in filemanager_log.txt file) [24/03/2016 04:54:57]#127.0.0.1#Filemanager::construct $this->root value /var/www/alamya/public/filemanager/ [24/03/2016 04:54:57]#127.0.0.1#Filemanager::construct $this->path_to_files /var/www/alamya/public/files/images/ [24/03/2016 04:54:57]#127.0.0.1#Filemanager::construct $this->doc_root value /var/www/alamya/public [24/03/2016 04:54:57]#127.0.0.1#Filemanager::__construct $this->separator value images [24/03/2016 04:54:57]#127.0.0.1#Filemanager::setFileRoot $this->doc_root value overwritten : /var/www/alamya/public//var/www/alamya/public/files/images/ [24/03/2016 04:54:57]#127.0.0.1#Filemanager::setFileRoot $this->dynamic_fileroot value /files/images/ [24/03/2016 04:54:57]#127.0.0.1#Filemanager::setFileRoot $this->path_to_files /var/www/alamya/public//var/www/alamya/public/files/images/ [24/03/2016 04:54:57]#127.0.0.1#Filemanager::setFileRoot $this->separator value images [24/03/2016 04:54:57]#127.0.0.1#substr path : / [24/03/2016 04:54:57]#127.0.0.1#real path : / [24/03/2016 04:54:57]#127.0.0.1#Filemanager::error - error message : The directory /files/images/ does not exist. [24/03/2016 04:54:57]#127.0.0.1#Filemanager::enableLog - Log enabled (in filemanager_log.txt file) [24/03/2016 04:54:57]#127.0.0.1#Filemanager::construct $this->root value /var/www/alamya/public/filemanager/ [24/03/2016 04:54:57]#127.0.0.1#Filemanager::construct $this->path_to_files /var/www/alamya/public/files/images/ [24/03/2016 04:54:57]#127.0.0.1#Filemanager::construct $this->doc_root value /var/www/alamya/public [24/03/2016 04:54:57]#127.0.0.1#Filemanager::__construct $this->separator value images [24/03/2016 04:54:57]#127.0.0.1#Filemanager::setFileRoot $this->doc_root value overwritten : /var/www/alamya/public//var/www/alamya/public/files/images/ [24/03/2016 04:54:57]#127.0.0.1#Filemanager::setFileRoot $this->dynamic_fileroot value /files/images/ [24/03/2016 04:54:57]#127.0.0.1#Filemanager::setFileRoot $this->path_to_files /var/www/alamya/public//var/www/alamya/public/files/images/ [24/03/2016 04:54:57]#127.0.0.1#Filemanager::setFileRoot $this->separator value images [24/03/2016 04:54:57]#127.0.0.1#substr path : / [24/03/2016 04:54:57]#127.0.0.1#real path : / [24/03/2016 04:54:57]#127.0.0.1#Filemanager::error - error message : The directory /files/images/ does not exist.
$this->path_to_files /var/www/alamya/public//var/www/alamya/public/files/images/
sould be :
$this->path_to_files /var/www/alamya/public/files/images/
what do you pass as parameter to setFileRoot() ?
i don't my config file is up you can check it i am using your repo through this laravel repo https://github.com/bestmomo/filemanager and i maid all the configurations your wiki pages says
I don't technically know that connector but see here : https://github.com/bestmomo/filemanager/blob/master/public/filemanager/connectors/php/default.config.php#L87
You may ask support for bestmomo ?
once i have removed this line the script worked good i am a week after my delivery date because of this mistake i guess in this week i have met with all the errors that might happen with your script and it turns out that it was someone else's mistake thank you for your response you really saved my day how can i pay back ?
i am using filemanager with Laravel and it works very well on my local machine but when i pushed the site to production the problems started and i managed to make the filemanager load correctly and to point to my files in public_html folder but when it loads all i can do is to upload one file correct and then it doesn't show it's thumbnail and when i try to enter any sub folders i got the No Way error what will kill me is when i point the filemanager to my public directory outside the public_html it woks great but i can't use this folder , i have changed permissions to 0777 for both folders and i have read all the issues in your repo and followed a lot of the fixes they talk about but still nothing for me hers is the code from my config file : `