[MediaWiki-l] Re: array syntax

2023-02-14 Thread Brian Wolff
There actually sort of is work on that, however the current version wouldn't detect constants. -- Brian On Tuesday, February 14, 2023, Jeffrey Walton wrote: > On Tue, Feb 14, 2023 at 3:30 PM Bartosz Dziewoński > wrote: > > > > "NS_FILE" was introduced to replace "NS_IMAGE" in MediaWiki 1.14,

[MediaWiki-l] Re: array syntax

2023-02-14 Thread rogerchrisman
> 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

[MediaWiki-l] Re: array syntax

2023-02-14 Thread John
That actually wouldn’t be a bad idea to create some kind of app on the wmflabs that parses/updates LocalSettings.php configs and outputs the modern standards. On Tue, Feb 14, 2023 at 5:36 PM Jeffrey Walton wrote: > On Tue, Feb 14, 2023 at 3:30 PM Bartosz Dziewoński > wrote: > > > > "NS_FILE"

[MediaWiki-l] Re: array syntax

2023-02-14 Thread Jeffrey Walton
On Tue, Feb 14, 2023 at 3:30 PM Bartosz Dziewoński 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

[MediaWiki-l] Re: array syntax

2023-02-14 Thread Bartosz Dziewoński
Hi Jeffrey, "NS_FILE" was introduced to replace "NS_IMAGE" in MediaWiki 1.14, which was released in 2009, fourteen years ago. -- Bartosz Dziewoński ___ MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org To unsubscribe send an email to

[MediaWiki-l] Re: array syntax

2023-02-14 Thread Jeffrey Walton
On Tue, Feb 14, 2023 at 1:57 PM Bartosz Dziewoński 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

[MediaWiki-l] Re: array syntax

2023-02-14 Thread Bartosz Dziewoński
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

[MediaWiki-l] Re: array syntax

2023-02-14 Thread rogerchrisman
Thank you for your replies! It does me tons of good to have your help. So, no worries about my array syntax. That is a relief. I don't know computer programming. I'm one of the simple minded people. So I upgrade the wiki only on LTR dates. Thank you for your help! I get this error when I run the

[MediaWiki-l] Re: array syntax

2023-02-13 Thread Brian Wolff
Yes its fine to use long array syntax. Are the error messages suggesting that the syntax is wrong? -- Brian On Monday, February 13, 2023, wrote: > Hello, > > I have some array declarations in my LocalSettings.php from many years ago > that I am worried may not be compatible with PHP 8+. When

[MediaWiki-l] Re: array syntax

2023-02-13 Thread Benjamin Lees
Hi Roger, that's still the syntax. What are the errors you're getting? On Tue, Feb 14, 2023 at 12:15 AM wrote: > Hello, > > I have some array declarations in my LocalSettings.php from many years ago > that I am worried may not be compatible with PHP 8+. When I try to run >