On Tue, Feb 14, 2023 at 1:57 PM Bartosz Dziewoński <matma....@gmail.com> wrote: > > The "NS_IMAGE" constant, which you use in your LocalSettings.php, has > been replaced by "NS_FILE" and removed in MediaWiki 1.34 (a while ago). > It looks like PHP 7.4 was just ignoring it (and presumably some of the > configuration you intended for the Image/File namespace was not applying > correctly), but PHP 8 treats it as an error. > > The solution is to just replace all occurrences of NS_IMAGE with NS_FILE > (and NS_IMAGE_TALK with NS_FILE_TALK). > > (Congrats on running MediaWiki for long enough that your configuration > still used NS_IMAGE ;) )
This is a recurring problem with LocalSettings.php. The devs keep changing stuff and breaking things. I can't count how many times we've had to fix unexpected breaks. (Our wiki and LocalSettings.php dates back to 2005). Welcome to the world of software development by web developers. Things are only expected to last 6 months. It's worse than an automobile in the salt belt. Jeff _______________________________________________ MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org To unsubscribe send an email to mediawiki-l-le...@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/