Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-10-22 05:24:36

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,273
Website

adi_detritus - Sweep up the rubbish

Summary

Building sites are great places to play, but who likes to tidy up?

This is where adi_detritus comes in. It’ll scour your website’s filesystem and plugins for items that are redundant, superfluous or even absent.

It’s a bit like Stef’s smd_where_used plugin’s lint functionality but instead for the website filesystem. Perhaps “what is that?” or “where is it?” are better indications of its function.

No changes are made. It’s up to the website administrator to decide what to do with the information presented.

See the help supplied with the plugin, or have a look online. You can download the latest version from here.

Requirements

Textpattern v4.7+.

Version history

  • 0.2
    • anti-caching measure
    • fix for unescaped quotes in db queries (thanks peterj)
  • 0.1
    • initial release

Feedback

Comments are most welcome.

Developer beer vouchers

If you find this plugin useful, please consider donating to the Textpattern development team.

Last edited by gomedia (2020-11-25 00:55:58)

Offline

#2 2020-10-22 07:16:45

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 2,168
Website

Re: adi_detritus - Sweep up the rubbish

ohh … this is naughty. running it on my old-old-old local TXP playground site result is soo many warnings :-(

Great help file !

Thank you for this; I am sure I and others will find this useful to keep the file-servers a little cleaner.


Where is that emoji for a solar powered submarine when you need it ?

Offline

#3 2020-10-22 08:40:46

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,391
Website

Re: adi_detritus - Sweep up the rubbish

Nice one! Thank you.


Wondrous Healing Wondrous ways to a healthy old age
Safe Reiki Harmless natural healing.
Gud One Blog

Offline

#4 2020-11-24 05:30:05

peterj
Member
From: Melbourne, Australia
Registered: 2005-06-02
Posts: 58

Re: adi_detritus - Sweep up the rubbish

This is a beauty. Turing up all sorts of tumbleweeds on an 8 year old site I’m redoing. I am getting repeated errors at the top of the admin page of this nature – apostrophes in messy file names seem to be tripping something up?

User_Error "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'm a Dirty Dinosaur Review.pdf'' at line 1"
in /home/abcde/2020dev/textpattern/lib/txplib_db.php at line 448.

Offline

#5 2020-11-24 05:51:38

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,273
Website

Re: adi_detritus - Sweep up the rubbish

peterj wrote #326998:

… apostrophes in messy file names seem to be tripping something up?

Yep, tripping up my crappy coding. Leave it with me.

Offline

#6 2020-11-24 06:59:08

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,273
Website

Re: adi_detritus - Sweep up the rubbish

Try this one … it’s also got an anti-page-caching measure.

Offline

#7 2020-11-24 07:21:21

peterj
Member
From: Melbourne, Australia
Registered: 2005-06-02
Posts: 58

Re: adi_detritus - Sweep up the rubbish

Thanks, working nicely now.

Offline

Board footer

Powered by FluxBB