Page MenuHomePhabricator

PHP Error Logs show Undefined array key "Query"
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

Not sure as I found it in the PHP Error Logs, but did not have anyone report it.

What happens?:

PHP Warning: Undefined array key "query" in /web/secfenia/html/wiki/extensions/PluggableAuth/includes/PluggableAuthHooks.php on line 201

What should have happened instead?:

If the array key is not defined, then it should not go through the loop.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Product Version
MediaWiki 1.45.1
PHP 8.3.6
Pluggable-Auth: 7.5

Other information (browser name/version, screenshots, etc.):
Not sure how this came to be, but found it in the PHP Error Logs.

Event Timeline

Hey! I got the task and claiming it. I am working on it.
I would also submit the patch shortly.

Change #1308744 had a related patch set uploaded (by Nandameet; author: Nandameet):

[mediawiki/extensions/PluggableAuth@master] Fix undefined array key "query" warning in modifyLogoutLink

https://gerrit.wikimedia.org/r/1308744

Hey! I have uploaded a patch for review.

Here's the PR : https://gerrit.wikimedia.org/r/c/mediawiki/extensions/PluggableAuth/+/1308744

Let me know if any changes are required.

Change #1308744 merged by jenkins-bot:

[mediawiki/extensions/PluggableAuth@master] Fix undefined array key "query" warning in modifyLogoutLink

https://gerrit.wikimedia.org/r/1308744