Page MenuHomePhabricator

BeeBringer
User

Projects

User is not a member of any projects.

Today

  • No visible events.

Tomorrow

  • No visible events.

Monday

  • No visible events.

User Details

User Since
Jan 18 2016, 7:08 PM (551 w, 4 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
BeeBringer [ Global Accounts ]

Recent Activity

Apr 11 2018

BeeBringer added a comment to T192003: Allow MW_CONFIG_FILE to be set as environment variable .

Pull request on https://gerrit.wikimedia.org/r/#/c/425583/

Apr 11 2018, 8:32 PM · Patch-Needs-Improvement, MediaWiki-General
BeeBringer closed T191997: Empty return of RequestContext in constructor of MediaWiki class. as Invalid.
Apr 11 2018, 6:31 PM · MediaWiki-Maintenance-system, MediaWiki-General
BeeBringer added a comment to T191997: Empty return of RequestContext in constructor of MediaWiki class..

I notice that in the code of RequestContext
there is a todo that (if a check on the return value is added) will probably solve this. Sorry I should have looked better before reporting.

Apr 11 2018, 5:17 PM · MediaWiki-Maintenance-system, MediaWiki-General
BeeBringer created T192003: Allow MW_CONFIG_FILE to be set as environment variable .
Apr 11 2018, 5:03 PM · Patch-Needs-Improvement, MediaWiki-General
BeeBringer added a comment to T191997: Empty return of RequestContext in constructor of MediaWiki class..

@BeeBringer

  • What version of MediaWiki are you using?
  • How is the site configured to enable MW_NO_SETUP?
  • Why are you setting MW_NO_SETUP? What do you think should happen?
  • What code are you running to reproduce the issue? I mean not just the class and method, but also how that code is reached by a user.

The MW_NO_SETUP feature was removed in MediaWiki 1.29.0. Before that, it existed to allow extensions to re-initiate MediaWiki from within itself (for example, to start a fake command-line process from within a web page). For that purpose, it was important to not perform Setup as second time (in the command-line sub process), given it will have already happened for the web process.

We found out that MW_NO_SETUP was not needed anymore, because PHP's require_once feature already makes sure it only happens once.

It was removed in edc9edbc769b57. The only user of it was the Maintenance extension, which was unaffected by its removal.

Apr 11 2018, 4:35 PM · MediaWiki-Maintenance-system, MediaWiki-General
BeeBringer added a comment to T191997: Empty return of RequestContext in constructor of MediaWiki class..

Thanks for taking a look at the code!
You are very welcome to use developer access to submit the proposed code changes as a Git branch directly into Gerrit which makes it easier to review them quickly and provide feedback.
If you don't want to set up Git/Gerrit, you can also use the Gerrit Patch Uploader. Thanks again!

Apr 11 2018, 4:29 PM · MediaWiki-Maintenance-system, MediaWiki-General
BeeBringer added a comment to T191997: Empty return of RequestContext in constructor of MediaWiki class..

$this->checkMaxLag(); in function MediaWiki::run() will give the HTTP ERROR 500

Apr 11 2018, 4:24 PM · MediaWiki-Maintenance-system, MediaWiki-General
BeeBringer created T191997: Empty return of RequestContext in constructor of MediaWiki class..
Apr 11 2018, 4:21 PM · MediaWiki-Maintenance-system, MediaWiki-General