xoops forums

sailjapan

Moderator
Posted on: 2009/3/11 14:17
sailjapan
sailjapan (Show more)
Moderator
Posts: 1672
Since: 2005/11/16
#31

Re: DMS - Document Management System

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.

Catzwolf

Home away from home
Posted on: 2009/3/11 14:31
Catzwolf
Catzwolf (Show more)
Home away from home
Posts: 1392
Since: 2007/9/30
#32

Re: DMS - Document Management System

Possible reason could be safe mode restrictions are at play here. Sometimes we can create a dir, but changing the permissions on the dir from the same script are disallowed.

But from what I am reading there, this could be a issue an incorrect path or a write permission somewhere from the start of the path up the dir structure.

I normally test scripts on my test server before trying them out, if they work on that correctly and not on a unix system, then it is normally a permission or a file naming (case) issue.

Have a look to see if these dir's actually exist (repository/1/1/1/) and that each one is chmoded to 777.

If it is a safe mode issue, email your providers and tell them to remove it. In all honesty, it causes more issues than it really solves and I can't wait for php6 when that s**t is obsolete :)

Catz

sailjapan

Moderator
Posted on: 2009/3/13 12:33
sailjapan
sailjapan (Show more)
Moderator
Posts: 1672
Since: 2005/11/16
#33

Re: DMS - Document Management System

Okay, I'm up and running. Thanks to Tasman_al over on this thread.
Cheers to Catz et-al for all your efforts!
Never let a man who does not believe something can be done, talk to a man that is doing it.

btesec

Friend of XOOPS
Posted on: 2009/4/21 15:54
btesec
btesec (Show more)
Friend of XOOPS
Posts: 623
Since: 2007/2/20
#34

Re: DMS - Document Management System

Yes its working Great. Thanks.

Cuidiu

Quite a regular
Posted on: 2009/6/10 15:03
Cuidiu
Cuidiu (Show more)
Quite a regular
Posts: 358
Since: 2006/4/23
#35

Re: DMS - Document Management System

I am unable to import Word docs with images. A plain text Word doc is fine but anything with a graphic will give a blank screen on import. I turned on PHP debug and no errors listed - just a blank screen. I am wondering if safe mode could be the issue.

I am using DMS 1.4 on XOOPS 2.2.4. It works fine otherwise. I have tried to find an updated DMS download but the dev.xoops.org site is closed. Can anyone help?
Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)

btesec

Friend of XOOPS
Posted on: 2009/6/10 15:34
btesec
btesec (Show more)
Friend of XOOPS
Posts: 623
Since: 2007/2/20
#36

Re: DMS - Document Management System

PM me with your email address and I'll send it to you.

Cuidiu

Quite a regular
Posted on: 2009/6/10 19:13
Cuidiu
Cuidiu (Show more)
Quite a regular
Posts: 358
Since: 2006/4/23
#37

Re: DMS - Document Management System

PM sent and thanks!
Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)

btesec

Friend of XOOPS
Posted on: 2009/6/10 19:26
btesec
btesec (Show more)
Friend of XOOPS
Posts: 623
Since: 2007/2/20
#38

Re: DMS - Document Management System

check you mailbox, Maybe you can post it somewhere for the community.

Cuidiu

Quite a regular
Posted on: 2009/6/10 20:54
Cuidiu
Cuidiu (Show more)
Quite a regular
Posts: 358
Since: 2006/4/23
#39

Re: DMS - Document Management System

Quote:
btesec wrote:
check you mailbox, Maybe you can post it somewhere for the community.

Thanks very much! I wish I could. Perhaps someone here at XOOPS can do this?
Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)

ghia

Community Support Member
Posted on: 2009/6/10 21:34
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#40

Re: DMS - Document Management System

The project is at XoopsForge but that site is currently in the rework and it takes longer than foreseen to reopen.
In the mean time I can add it to the module repository (Sent you a PM).