31
sailjapan
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.

32
Catzwolf
Re: DMS - Document Management System
  • 2009/3/11 14:31

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


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

33
sailjapan
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.

34
btesec
Re: DMS - Document Management System
  • 2009/4/21 15:54

  • btesec

  • Friend of XOOPS

  • Posts: 623

  • Since: 2007/2/20


Yes its working Great. Thanks.

35
Cuidiu
Re: DMS - Document Management System
  • 2009/6/10 15:03

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


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?
[size=x-small]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)[/size]

36
btesec
Re: DMS - Document Management System
  • 2009/6/10 15:34

  • btesec

  • Friend of XOOPS

  • Posts: 623

  • Since: 2007/2/20


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

37
Cuidiu
Re: DMS - Document Management System
  • 2009/6/10 19:13

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


PM sent and thanks!
[size=x-small]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)[/size]

38
btesec
Re: DMS - Document Management System
  • 2009/6/10 19:26

  • btesec

  • Friend of XOOPS

  • Posts: 623

  • Since: 2007/2/20


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

39
Cuidiu
Re: DMS - Document Management System
  • 2009/6/10 20:54

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


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?
[size=x-small]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)[/size]

40
ghia
Re: DMS - Document Management System
  • 2009/6/10 21:34

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


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).

Login

Who's Online

171 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 171


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits