Thread:Project:Support desk/Linker::makeImageLink2: File:blah.jpg does not allow inline display/reply (3)

This can be caused if MediaWiki had trouble determining the width and/or height of the image.

The width and height are generally discovered at upload time and stored in the db. A purge action causes this data to be re-fetched from the image.

So it sounds like your db somehow got bad data for some images.

Try running the maintenance script refreshImageMetadata.php with the -f option php refreshImageMetadata.php -f

(rebuildImages.php would probably also work. Both scripts do similar things).