Fitz
Fresh Boarder
Posts: 1
|
|
Re:DocMan Repair Module 5 Years ago
|
Karma: 0
|
|
When I try to upload this module to Joomla - I get the following error:
Unrecoverable error "PCLZIP_ERR_BAD_FORMAT (-10)"
Fatal error: Class 'dmConfig' not found in --/gto/administrator/components/com_docman/classes/DOCMAN_config.class.php on line 88
For reference:
Database Version: 5.0.27
PHP Version: 5.2.0
Web Server: Apache/2.2.3 (Unix) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d PHP/5.2.0 mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.7
WebServer to PHP interface: apache2handler
Joomla! Version: Joomla! 1.0.11 Stable [ Sunbow ] 28 August 2006 20:00 UTC
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
Any thoughts or optional workarounds?
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
vujsa
Moderator
Posts: 143
|
|
Re:DocMan Repair Module 5 Years ago
|
Karma: 5
|
Well, I found this thread:
forum.mamboserver.com/showthread.php?t=30030
It looks like there may be something going on on your end. According to the thread, there may be an issue with your router corrupting the fille during upload. Please try to do as explained in this thread and get back to me is you have any more problems.
vujsa
|
|
|
|
Logged
|
|
|
Do not post small or one line posts.
Do not post unsolicited links or any referal links.
Do not post copied content.
Do not use foul language.
Always be respectful to the other posters.
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:DocMan Repair Module 4 Years, 11 Months ago
|
Karma: 0
|
|
Hey,
I must say this repair module is fantastic. I just used it on a corporate site that I developed. They have over 1000 files and cannot have docman failing on them.
I have a question however, my repair module is not making a backup copy, instead is using the default all the time. This is problematic as there are a few config settings crucial to having the docman system working as the company requires it to.
What actions must I take to ensure that a backup copy can be made and stored in the folder /modules/mod_repair_docman, and of course, used if the config file wipes itself out?
Also, what is the name of the file for backup? I understand the fault is default.docman_config.php.
Thanks so much, I really appreciated it.
Eric
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:DocMan Repair Module 4 Years, 11 Months ago
|
Karma: 0
|
|
Installation was OK (without zlib) but after publishing it i get a warning on the front page:
Warning: copy(/u/mtzurek/public_html/test/administrator/components/com_docman/docman.config.bak): failed to open stream: Permission denied in /u/mtzurek/public_html/test/modules/mod_docman_repair.php on line 92
after check I see that the module was installed by the user "nobody" ...
How can i fix this problem?
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
vujsa
Moderator
Posts: 143
|
|
Re:DocMan Repair Module 4 Years, 11 Months ago
|
Karma: 5
|
|
Yes, the module was installed by the server so the server is the owner which is how Joomla / Mambo works. When any bot, module, or component is installed using the built in installer, the server performs the actual file copying and therefore owns the files and directories created.
If you have changed the permissions of any of your DocMan files or directories, then the module will not work.
The error you receive is explained as follows:
The script named "mod_docman_repair.php" was not able to copy the file "docman.config.bak" because the file "docman.config.bak" or the directory it is in is not owned by the server (like it should be by default) and public write permission is not on.
My guess is that at some point in time you had the error that this module fixes and performed some type of manual file upload to the DocMan directory which changed the ownership of the directory to yourself instead of the server.
You have 2 options to get the module to function now:
1. You can uninstall the DocMan Repair Module and the DocMan component, reinstall so that the server owns the files as it should. Be sure to backup your database first and restore it after the reinstall.
2. Change the permissions of "com_docman/docman.config.bak" and "com_docman/" to 777 so that public write permissions are enabled so that the server can write to your file and directory.
The best and most secure method is to do the database backup, uninstall and reinstall but this could be difficult since it seems that some of your file permissions and ownerships are incorrectly set.
Remember, the "nobody" or user "99" file owner is the server. When a script performs a file system action, the server is the user performing that action. So if a script (server) creates a file, the script (server) owns that file!
As a result, on a properly running Joomla installation, all of files for the plugins, bot, modules, and components that are installed using the built in installer are owned by the server.
Hope this helps.
vujsa
|
|
|
|
Logged
|
|
|
Do not post small or one line posts.
Do not post unsolicited links or any referal links.
Do not post copied content.
Do not use foul language.
Always be respectful to the other posters.
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:DocMan Repair Module 4 Years, 11 Months ago
|
Karma: 0
|
|
First, thanks for help!! Now it works! (Or I think so because no warnigs are present and backup config files were created).
vujsa wrote:
2. Change the permissions of "com_docman/docman.config.bak" and "com_docman/" to 777 so that public write permissions are enabled so that the server can write to your file and directory.
Changing "com_docman/" to -R 777 helped!
The error you receive is explained as follows:
The script named "mod_docman_repair.php" was not able to copy the file "docman.config.bak" because the file "docman.config.bak" or the directory it is in is not owned by the server (like it should be by default) and public write permission is not on.
I think that here you were not right. There was simply no "docman.config.bak" file. The reason was that server could not copy the "docman.config.php" file as a "docman.config.bak" because in my installation (previous admin of my webpage did that) ALL files are owned by the user!!! Thats why I was so amused that there are some new "nobody" files.
As a result, on a properly running Joomla installation, all of files for the plugins, bot, modules, and components that are installed using the built in installer are owned by the server.
So as I've said in my installation ALL files (except few created by Docman Repair) are owned be me.<br><br>Post edited by: meisner, at: 2007/06/19 07:51
|
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
|