Topic on Project:Support desk

Image click returns "invalid source image"

5
Akairondragon (talkcontribs)

MediaWiki ver 1.40.0

PHP ver 7.4.33 (litespeed)

Database 10.5.19-MariaDB-cll-lve


Today it came to my attention that clicking on images on my wiki no longer takes the user to the image's attachment page. Instead, a white screen displays that says "invalid source image" in the top left corner (Firefox, Edge). In Safari, I get a small square icon with a question mark inside it.

Example page where this happens: https://akairondragon.ca/books/aoswiki/index.php/Ardrakin_Social_Classes

"Invalid source image" also displays after using the "Upload file" page to upload an allowed file type (eg, JPG or PNG).

I'm not sure what has changed on my wiki to create this behavior. A few weeks ago I was able to click the image on the example page, go to its attachment page, and successfully replace the image with a newer version.

What did I break?

Malyacko (talkcontribs)

See your web browser's console: The URL of the image file shows a HTTP 422 error.

TheDJ (talkcontribs)
Bawolff (talkcontribs)
Akairondragon (talkcontribs)

You have saved the day! I tried $wgUsePathInfo = false; and now everything appears to work! Thank you very much.

Reply to "Image click returns "invalid source image""