dulldusk / phpfm

phpFileManager is a complete filesystem management tool on a single file. This is a tool meant for rapid file access, and also to verify the server php configuration and security. The script can be renamed and deployed on an unique known url, and offers password protection.
https://sourceforge.net/projects/phpfm/
Other
216 stars 98 forks source link

Upload not working / Windows 10 - solution provided #62

Open jf16 opened 2 years ago

jf16 commented 2 years ago

The file upload ends in a fatal error: Fatal error: Uncaught ArgumentCountError: Too few arguments to function system_exec_cmd(), 1 passed in C:\xampp\htdocs\Filemanager\Jobs.php on line 990 and exactly 2 expected in C:\xampp\htdocs\Filemanager\Jobs.php:4780...

Solution: Add 2nd parameter $output in line 990 and line 983: if ($is_windows) system_exec_cmd('icacls "'.$file.'" /q /c /reset', $output);