Page MenuHomePhabricator

Argument #2 must be of type string, array given in /srv/mediawiki/docroot/wwwportal/w/search-redirect.php
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /srv/mediawiki/docroot/wwwportal/w/search-redirect.php:18
exception.trace
(REDACTED)
Impact
Notes
Error
normalized_message
Uncaught TypeError: urlencode(): Argument #1 ($string) must be of type string, array given in /srv/mediawiki/docroot/wwwportal/w/search-redirect.php:40
exception.trace
#0 /srv/mediawiki/docroot/wwwportal/w/search-redirect.php(40): urlencode(Array)
#1 {main}
  thrown
Impact
Notes
Error
normalized_message
Uncaught TypeError: strtolower(): Argument #1 ($string) must be of type string, array given in /srv/mediawiki/docroot/wwwportal/w/search-redirect.php:7
exception.trace
#0 /srv/mediawiki/docroot/wwwportal/w/search-redirect.php(7): strtolower(Array)
#1 {main}
  thrown
Impact
Notes

Details

Request URL
https://www.wikipedia.org/search-redirect.php?family=*&go=*&language%5B%24acunetix%5D=*&search=*
Related Changes in Gerrit:

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

Reedy renamed this task from Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /srv/mediawiki/docroot/wwwportal/w/search-redirect.php:18 to Argument #2 must be of type string, array given in /srv/mediawiki/docroot/wwwportal/w/search-redirect.php.Mar 16 2025, 8:45 PM
Reedy updated the task description. (Show Details)
Reedy moved this task from Untriaged to Mar 2025 on the Wikimedia-production-error board.

Change #1128050 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/mediawiki-config@master] search-redirect: Handle $_GET potential vulnerability scanning

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

Jdforrester-WMF changed the task status from Open to In Progress.Mar 16 2025, 11:08 PM
Jdforrester-WMF claimed this task.

Change #1128050 merged by jenkins-bot:

[operations/mediawiki-config@master] search-redirect: Handle $_GET potential vulnerability scanning

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

Mentioned in SAL (#wikimedia-operations) [2025-04-07T20:05:19Z] <jforrester@deploy1003> Started scap sync-world: Backport for [[gerrit:1128050|search-redirect: Handle $_GET potential vulnerability scanning (T389019)]], [[gerrit:1134057|wikifunctionswiki: Make 'native' mode the default for Maths]]

Mentioned in SAL (#wikimedia-operations) [2025-04-07T20:09:36Z] <jforrester@deploy1003> jforrester: Backport for [[gerrit:1128050|search-redirect: Handle $_GET potential vulnerability scanning (T389019)]], [[gerrit:1134057|wikifunctionswiki: Make 'native' mode the default for Maths]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2025-04-07T20:19:26Z] <jforrester@deploy1003> Finished scap sync-world: Backport for [[gerrit:1128050|search-redirect: Handle $_GET potential vulnerability scanning (T389019)]], [[gerrit:1134057|wikifunctionswiki: Make 'native' mode the default for Maths]] (duration: 14m 06s)

Deployed and tested, confirmed working as planned.