> The solution is to just replace all occurrences of NS_IMAGE with NS_FILE
> (and NS_IMAGE_TALK with NS_FILE_TALK).

That fixed it! Thank you! /maintenance/update.php now runs in PHP 8.1
without error. Very glad to have this fixed. Thank you!

> (Congrats on running MediaWiki for long enough that your configuration
> still used NS_IMAGE ;) )

Very kind of you to say that. Thank you!

Roger
Teflpedia.com MW1.39.1

On Tue, Feb 14, 2023 at 2:36 PM Jeffrey Walton <[email protected]> wrote:

> On Tue, Feb 14, 2023 at 3:30 PM Bartosz Dziewoński <[email protected]>
> wrote:
> >
> > "NS_FILE" was introduced to replace "NS_IMAGE" in MediaWiki 1.14, which
> > was released in 2009, fourteen years ago.
>
> And in 14 years, Mediawiki has never warned users about it.
>
> The first time we learn about these things in practice is when
> something breaks. Usually after an upgrade.
>
> The devs really need to supply a linter that we can run on
> LocalSettings.php so we can discover the problems earlier than "it
> broke after an upgrade." And hopefully the linter will suggest the
> next step, like renaming NS_IMAGE to NS_FILE.
>
> Jeff
> _______________________________________________
> MediaWiki-l mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
>
> https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
_______________________________________________
MediaWiki-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/

Reply via email to