Hey Soda i just installed FDM and when i go to the manager page it gives me this error below but all the files were copied to the assets folder in the root of the site. Any ideas I am using modx-0.9.6.2
Warning: include_once(assets/snippets/FDM/includes/install.class.inc.php) [function.include-once]: failed to open stream: No such file or directory in /home/stargate/public_html/manager/processors/execute_module.processor.php(114) : eval()’d code on line 1
Warning: include_once() [function.include]: Failed opening ’assets/snippets/FDM/includes/install.class.inc.php’ for inclusion (include_path=’/home/stargate/public_html/manager/includes/’) in /home/stargate/public_html/manager/processors/execute_module.processor.php(114) : eval()’d code on line 1
Installation de FDM.
Fatal error: Class ’installation’ not found in /home/stargate/public_html/manager/processors/execute_module.processor.php(114) : eval()’d code on line 7
Did anyone use FDM to delete Documents permanently?
I saw a routine in the code, but it’s tagged as highliy experimental, so I’m a little worried about using it.
Why would you need to directly delete a document permanently ?
You can always empty the trashcan later... I am always wary of letting end users nuke a document, more often than not it’s better to keep it for a while before permanent deletion.
From what I remember, you can do a normal delete with FDM
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
You can do a normal delete, yes.
I also beleive, emptying the trashcan every once in a while is safer, than letting frontend users delete things without a recovery option.
There are however circumstances, where it would be helpful.
Another option would be a timed delete, like say every one or two months - just to clean things up.
Can that be done automatically? It can, I know, but what would be a clean way to do it?
Any ideas?
In my latest app, let users un-publish there documents. I didnt want them to delete them in case the admin emptied the trash can.
If I wanted to allow users to really delete docs, I would:
- let users unpublish
- show all unpublished in a ’trash can’ with a button to really delete.
- then delete them.
Is there a way to delete the trashcan from the front-end, via snippet?
If you had a site with simple dates and events, which are stored as documents. Lets say 1500 entries a year with about 300 of them marked as deleted.
The machine runs for 2 or 3 years without emptying the trashcan. Would you just leave the 300 to 900 deleted docs in the db?
Would that slow things down?
Im sure you could find the API function and generate a cron job for it.
Might be nice to have a modx cron module handy to tidy up things like logs periodically... I know I have quite a bunch of modx sites and I don’t always remember to clean the logs which makes the DB dumps pretty big over time...
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
-
MODX Staff
- 2,502 Posts
Sounds like a feature request to me. A cleanup routine would be nice to add to the index request like the one that checks to see if documents should be published/unpublished for DB cleanups or deleted documents purging.
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
Actually that’s
already a feature request and apparently Revolution’s Message Registry will make this possible "easily" (check Jason’s answer to my request).
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id