Dépôt des plugins › Détails d'un plugin

Dead links and unused media 0.1.1

Find dead links, missing files and unused media of the blog

Documentation

Release Date Dotclear License

ABOUT

Orphelins is a plugin for the open-source web publishing software called Dotclear.

Find dead links, missing files and unused media of the blog

It adds a report to the blog administration, made by a check of all the entries of the blog:

  • links which do not answer anymore (the page is gone, the site does not exist…),
  • files used by an entry (images, attachments…) which are not in the media library anymore,
  • media of the media library no entry uses.

Nothing is fixed nor deleted automatically, and nothing is shown on the public side of the blog.

With the plugin ClaudetteMcp, an AI assistant connected to the blog can read the report.

This is an early version. See CONCEPTION.md (in French) for the design.

A user guide with screenshots is available in French: guide d'utilisation.

REQUIREMENTS
  • Dotclear 2.40
  • PHP 8.3+
  • The permission to manage all the entries of the blog ("manage all entries and comments")
  • A server allowed to open connections to other web sites, to check links
USAGE
  1. Install and enable the plugin.
  2. In the blog menu, open Dead links and unused media.
  3. Start a check with the button New check and keep the page open until the end.

A check reads the entries of the blog (all of them, or the ones published since a date) whatever their type (posts, pages…) and their status. It goes on by steps of a few seconds, so it does not depend on the time limit of the server. It can be stopped: what was checked so far is kept.

The result is in two lists, on two pages: Links and files, with a link to the entry to edit, and Unused media. Each list shows what is to fix. Each line has a status:

Status Meaning
Problem Dead link, missing file or unused media
To verify The site gave no clear answer: it refuses robots, asks to log in, is too slow or in error
Without problem The link answers, the file exists
Not checked Link to a domain not to check or to a local address, or line waiting for the next check
Ignored You asked not to hear about this line anymore

Selected lines can be checked again (their entries are read again, so a fixed entry loses its problems), ignored for good, or forgotten: a forgotten line leaves the lists until a next check finds it again. Selected unused media can also be deleted from the media library, after a confirmation.

Options of the check:

  • a date, to only check the entries published since that date (all the entries by default),
  • domains not to check (sites which always refuse robots),
  • number of days a link without problem is kept before being asked again to its site (7 by default).

The check is also a task of the plugin Maintenance (tab Servicing), which can remind you to do it again from time to time.

On the dashboard, the favorite Dead links and unused media is an icon giving the number of problems to fix.

Limits
  • An unused media is a media no entry uses. It is also looked for in the descriptions of the categories and of the blogs and in the settings (themes, widgets), but a theme file or another plugin may still use it: look at it before deleting it, and ignore the ones you keep.
  • Links are checked from the server of the blog: local and private addresses are never requested.
  • Only links and media of the entries are checked, not those of the comments.
AI ASSISTANT

If the plugin ClaudetteMcp is enabled on the blog, Orphelins adds this tool to its connector:

Tool Description
list_content_problems Read the result of the last check: summary and lines, by type, status or search

The assistant acts with the permissions of the user of the key: this user must manage all the entries of the blog. The tool only reads: the assistant does not start a check, ignores nothing and deletes no media.

ClaudetteMcp is not required. After installing Orphelins, reconnect the connector of the assistant to validate the new tool.

LINKS
CONTRIBUTORS
  • Jean-Christian Denis (author)
  • Claude (AI assistant by Anthropic)

You are welcome to contribute to this code.

Apporter des précisions

Si vous constatez des informations manquantes sur cette page comme :

  • Incompatibilité avec certaines versions de Dotclear (autres que celle indiquée)
  • Hébergement ou configuration incompatible
  • Service web inopérant

Votre message ne sera pas mis en ligne, mais sera revu par les administrateurs.

Attention, nous ne fournissons pas de support technique pour les modules. Pour cela, veuillez utiliser le lien de support ci-dessus.

Haut de page