Fatal error: Class 'dmConfig' not found in
administrator/components/com_docman/classes/DOCMAN_config.class.php on line 88
If you have seen that error message before, then this is the module for you.
On two (2) seperate occasions, I have had my DocMan installation corrupted! The first wasn't that big of a deal and I found it before too many downloaders were affected. I only had one file for download then so I didn't give it much though. I did look into the problem fearing that I had been hacked but I found a post that explained what was happening:
For what ever reason, the developer of DocMan requires the configuration file to be updated every time someone downloads a file. If a user's download is interrupted for any reason, the file is left blank and the DocMan installation is left broken!
The second time this problem happened, it was a real problem! It was just a few weeks ago and I have several popular files being downloaded now. I immediately began to think of some sytem to backup the configuration file and restore automatically using a cron job. Then I gat thought to a mambot to do it but the easiest way is to use a module.
Every time this module is loaded, it checks the integrety of the DocMan configuration file. If it is good, and has been a while since a backup has been made, then a new backup is saved! If the file is corrupt, the backup is used to restore the file. If no backup exists and the original file is corrupt, the default installation file is used until the website owner can change the settings.
This will quickly get your DocMan component back in operation if it is currently broken. If your DocMan installation is working properly, this will ensure that it continues to do so.
If you make this module public and place it on ALL of your Joomla pages, then it will be most effective but may slow your page loads down. If you only place it in your DocMan pages, then it will more than likely protect your installation from down time 99% of the time. The rest of the time, the module will simply repair the file when the page is reloaded.
Feel free to request additional features by replying to this topic.
The module may be found here:
http://www.handyphp.com/component/option,com_docman/task,cat_view/gid,17/Itemid,25/
Enjoy,
vujsa<br><br>Post edited by: vujsa, at: 2007/03/04 17:12