31
grrrr
Next problem...
When I try and upload a small text file into the DMS, I get the following errors:
Quote:
Error: Unable to move document. Ensure that the repository is available and that the web server is able to access the repository.
SP:/tmp/phpNRuERf
DP:public_html/modules/dms/repository/1/1/1/400001.dat
All errors (8) queries (9) blocks (0) extra (0) timers (3) Errors
Warning: mkdir() [function.mkdir]: No such file or directory in file /modules/dms/inc_dest_path_and_file.php line 115
Warning: chmod() [function.chmod]: No such file or directory in file /modules/dms/inc_dest_path_and_file.php line 116
Warning: mkdir() [function.mkdir]: No such file or directory in file /modules/dms/inc_dest_path_and_file.php line 121
Warning: chmod() [function.chmod]: No such file or directory in file /modules/dms/inc_dest_path_and_file.php line 122
Warning: mkdir() [function.mkdir]: No such file or directory in file /modules/dms/inc_dest_path_and_file.php line 127
Warning: chmod() [function.chmod]: No such file or directory in file /modules/dms/inc_dest_path_and_file.php line 128
Warning: move_uploaded_file(public_html/modules/dms/repository/1/1/1/400001.dat) [function.move-uploaded-file]: failed to open stream: No such file or directory in file /modules/dms/file_import.php line 78
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpNRuERf' to 'public_html/modules/dms/repository/1/1/1/400001.dat' in file /modules/dms/file_import.php line 78
So, I go to the file quoted (inc_dest_path_and_file.php)
where I find the following code
112 // Ensure that the final destination directories exist...if not, then create the directory or directories.
113 if (!is_dir($dir_path_1))
114 {
115 mkdir($dir_path_1,0775);
116 chmod($dir_path_1,0777);
117 }
118
119 if (!is_dir($dir_path_2))
120 {
121 mkdir($dir_path_2,0775);
122 chmod($dir_path_2,0777);
123 }
124
125 if (!is_dir($dir_path_3))
126 {
127 mkdir($dir_path_3,0775);
128 chmod($dir_path_3,0777);
129 }
The files in modules/dms/repository (Perms are 777) do not exist. I get the feeling that inc_dest_path_and_file.php should be making them.
Why can't I mkdir?
Never let a man who does not believe something can be done, talk to a man that is doing it.