|
|
|
|
Re:DocMan Repair Module (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: Re:DocMan Repair Module
|
meisner (User)
Fresh Boarder
Posts: 4
|
|
Re:DocMan Repair Module 1 Year, 2 Months ago
|
Karma: 0
|
eric777 wrote:
QUOTE:
Also, what is the name of the file for backup? I understand the fault is default.docman_config.php.
Eric
As I understand how it works the crucial backup file is /administrator/components/com_docman/docman.config.bak .
If you take a look into source code of mod_docman_repair.php you can see that it uses three files $original, $backup and $default.
But why your installation do not use $docman.config.bak and instead uses docman.default_config.php I don't know.
I hope that the vujsa will explain it to you as he helped me
I have another question, is there any possibility to check if this repair module is working correctly and is somewhere stored or displayed an information how many times Repair Docman module was used?
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
vujsa (Admin)
Admin
Posts: 139
|
|
Re:DocMan Repair Module 1 Year, 2 Months ago
|
Karma: 4
|
|
First, eric777; You should be getting some error messages if your backup file isn't being saved correctly. Be sure that your backup is from the live configuration file and not the default. Remember, the script has to be able to write to the backup file (/administrator/components/com_docman/docman.config.bak). This means the script also needs be able to write the that directory. You may need to set your permissions for those to either 666 or 777. This isn't a problem if the directory and files are owned by the server "nobody". If you haven't had any problems with your DocMan installation, your original and backup should be identical (docman.config.bak and docman.config.php). In fact, they should be identical nearly 100% of the time. The only time they are not is right after updating the original and when both the origianl and backup are lost.
meisner, I'll do my best to answer everything for you...
The error you had was caused exactly as I explained it! The installation file does not contain a backup file! The backup file is not created until the very first time that module is actually loaded but since the script could write to that directory, it couldn't copy the original file to the "NEW" backup file. The default file is a copy of the file that comes with the DocMan installation file. Think of it as Plan "B"! If your system is broken before you install the Repair Module, the script uses the default configuration just to get DocMan working at minimal functionality so that you can reconfigure the settings.
If you enter your username in the Repair Module setting screen in your Joomla Admin Control Panel, you will be sent an email each time that the repair module fixes the configuration file for you.
The entire system should work without any need for you to get involved unless there is a major problem in your file system.
I hope this answers everyone's questions. If not, please feel free to ask again or additional questions.
vujsa
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
eric777 (User)
Fresh Boarder
Posts: 2
|
|
Re:DocMan Repair Module 1 Year, 2 Months ago
|
Karma: 0
|
|
vujsa,
I usually do everything via FTP, however, I installed docman & repair docman via Joomla built in installer. The directory administrator/components/com_docman is owned by '103' (server I assume) as well as the repair module files. I took a look into the com_docman folder and I saw a docman.config.bak file which is identical to my current docman.config.php. At first, the module was loading the default file, after an hour or so I stopped having problems, however, I also didnt recieve any emails informing me that the file had an error, so I'm not sure if the module is working or docman is just running fine currently.
Regardless, the current setup is how it is supposed to be (script should have perfect permissions to run) as well, the .bak file exists and is the same as my current config file. I guess I'll have to wait and see if docman fails on me again.
If I run into any more problems I'll let you know. Thanks so much for your help, I really appreciate it.
Have a good afternoon,
Eric
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
meisner (User)
Fresh Boarder
Posts: 4
|
|
Re:DocMan Repair Module 1 Year, 2 Months ago
|
Karma: 0
|
vujsa wrote:
QUOTE:
meisner, I'll do my best to answer everything for you...
Yes I know, you have helped me a lot. Thanks again.
QUOTE:
The error you had was caused exactly as I explained it! The installation file does not contain a backup file! The backup file is not created until the very first time that module is actually loaded but since the script could write to that directory, it couldn't copy the original file to the "NEW" backup file. The default file is a copy of the file that comes with the DocMan installation file. Think of it as Plan "B"! If your system is broken before you install the Repair Module, the script uses the default configuration just to get DocMan working at minimal functionality so that you can reconfigure the settings.
Yes I know, I've read the source code of your module and I know how it works. You did not understand me. In previous post you wrote "could not copy backup file" and I reply that it was not true, because the reason was "could not copy original file as a backup file". That's all.
QUOTE:
If you enter your username in the Repair Module setting screen in your Joomla Admin Control Panel, you will be sent an email each time that the repair module fixes the configuration file for you.
I did that! Thanks again!
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:DocMan Repair Module 1 Year, 1 Month ago
|
Karma: 0
|
floatingworld wrote:
QUOTE: I'd really like to remove the "handyphp" link when the module is published (Clients don't want this...)
Is there an answer to this question?
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:DocMan Repair Module 1 Year, 1 Month ago
|
Karma: 0
|
|
Seems to be working fine.
As far as the link to Handy PHP. I guess I can live with it being on the site, I put it under the syndicate mod and it's ok, but it would be nice to at least have the link open in a new window!
If this is my only option to keep Docman stable (if you'd even call it that), I'd rather pay for a commercial download extension and keep visitors on my site, and I'm sure my clients feel the same way.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|
|
|
|
|