This release contains further security hardening from another round of review using Claude Fable 5.2 and a CodeRabbit deep scan. It also has a new file uploader using native browser functionality, functional bug fixes and library upgrades. Given the extent of changes, it is probably best to do a clean install and copy your database, config, themes and uploads directory into the updated file structure.

I appreciate the temporary access to Fable 5.2 and the free deep scan offered by CodeRabbit. Both are worthy tools for cleaning up and ironing out your code base. This version is fully compatible with PHP 8.5.

To do:

  • There are a couple of very small changes needed to make it compatible with 8.6 and those will follow very soon.
  • Google Maps functionality is currently broken, as Google has remove support for KmlLayer and did not provide a replacement (thanks Google!). Building a work around looks like not too much work, so I will try and get this done shortly.

I recently ran Tuskfish through a couple more sweeps after being offered free deep scan by CodeRabbit and temporary access to Anthropic's frontier model Fable 5.2. Both found a number of minor issues and bugs, which I am in process of tidying up, and I will probably put out a new release (2.3.6) on the weekend.

The good news is that nothing major was found. But each time the models advance they find new issues, although the bugs are becoming progressively more fringe and edge case. The most recent findings are borderline forensic, I doubt that I would ever have found them myself.

One wonders, where does it stop? Are we doomed to be patching our software every six weeks, forever? Can we ever get to a state where even mildly complex software is truly bug-free?

TLDR: I messed up my lower back and could hardly move. Getting in or out of bed or a chair was excruciatingly painful and difficult. But with some experimentation I have found ways to work around the injury with minimal pain.

If you have a lower back issue I hope this will help you get into and out of chairs, and into and out of bed without yowling like an alley cat. You can't appreciate how debilitating a back injury is until you've had one.

A small feature release: 

  • Collections now have access to a 'Gallery' template option, which displays child objects as a thumbnail grid below the description. This allows you to use collections to generate an 'article + gallery' pattern for (say) events or travel articles, or can be used as an alternative display format for publications catalogues etc.

A small feature release and polish. The shiny new things are:

  • CSS grid themes: Several new themes are available based on native CSS grid, which removes Bootstrap as a dependency. This makes them both simpler and more lightweight. They are also more refined and precise in terms of spacing and layout. The new themes are Tide (teal), Sand and Sea (blue), Kelp (olive-amber), Canyon (rust stained) and Pond (green). The themes feature a 'night mode' toggle and use image source sets to ensure that thumbnails are crisp when displayed at different resolutions or on high resolution screens.
  • Block template overrides: Copy the internal block templates from modules into the relevant theme/blocks directory and customise them however you like, (eg. copy yourmodule/Block/some-template.html to themes/yourtheme/blocks/some-template.html). The versions internal to the modules provide safe defaults if theme-specific versions are not available.
  • Pagination control has been extracted from the PHP code and placed in a html template.

I've added libvips as a third option for thumbnail generation. It's better than ImageMagick in that it is around 4x faster, and uses 1/10th the memory. It is particularly good if your webserver has more than one core available as it will split the work across multiple threads, whereas ImageMagick won't. Like ImageMagick, it is colour space aware (GD isn't).

In terms of speed and quality, the options are now (best to worst):

  • libvips
  • ImageMagick
  • GD (default)

GD is best avoided (worst quality, and the lack of colour space awareness can make images drab and lifeless) but is set as default because it is widely available on most web hosts, whereas ImageMagick is sometimes available, usually with some configuration, and libvips usually isn't a PHP thing. You'll probably need your own VPS or webserver, or be running Tuskfish on a Docker stack.

To enable it, install libvips-tools on your system and rename ResizeImage-Vips.php to ResizeImage.php (and backup or remove the existing one). Refer to the files's docblock for instructions, and to configure compression and sharpening.

Sharpening is off by default, but I have found a value of 0.5 (light sharpening) works pretty well. It comes at a cost though, forcing a second pass over the image so it noticeably slows thumbnail generation down on pages with a lot of images. However, this is only an issue on first load, as after that you're pulling the thumbnails from the cache.

A SCP story. High quality production. Well worth 15 minutes of your time. Published on DUST | A Rose on Thorne Street.

This is part 3 of the series "Strange anomaly in the deep woods". Story by Dougie Corrado.

A small update to simplify / reduce friction during installation:

  • Change index.php to route from request path only, independent of scheme and host. This avoids the need to manually configure when deploying behind reverse proxy that handles TLS termination.

A minor update that provides a performance boost, file structure reorganisation and security hardening:

  • Optimise database performance: Indexes have been added, which accelerate queries, improve resilience under load, and further reduce the already small hardware requirements of Tuskfish. The indexes are primarily of benefit to sites with large content loads.
  • Modularity has been improved so that new modules can be dropped in or ripped out without modifying other code, which will simplify future development.
  • The SMTP password is now encrypted at rest.