Page MenuHomePhabricator

ArgumentCountError: Too few arguments to function MediaWiki\Request\WebRequest::getRequestPathSuffix()
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   ArgumentCountError: Too few arguments to function MediaWiki\Request\WebRequest::getRequestPathSuffix(), 1 passed in /srv/mediawiki/php-1.42.0-wmf.17/thumb.php on line 88 and exactly 2 expected
error.stack_trace
from /srv/mediawiki/php-1.42.0-wmf.17/includes/Request/WebRequest.php(258)
#0 /srv/mediawiki/php-1.42.0-wmf.17/thumb.php(88): MediaWiki\Request\WebRequest::getRequestPathSuffix(string)
#1 /srv/mediawiki/php-1.42.0-wmf.17/thumb.php(59): wfThumbHandle404()
#2 /srv/mediawiki/php-1.42.0-wmf.17/thumb.php(47): wfThumbMain()
#3 /srv/mediawiki/php-1.42.0-wmf.17/thumb_handler.php(36): require(string)
#4 /srv/mediawiki/w/thumb_handler.php(3): require(string)
#5 {main}
Impact
Notes

6 of these since deploying 1.42.0-wmf.17 (T354435) to group0.

Details

Request URL
https://office.wikimedia.org/w/thumb_handler.php/2/23/Why_web_performance_matters_at_Wikimedia.webm/120px--Why_web_performance_matters_at_Wikimedia.webm.jpg?20210126165815=*
Related Changes in Gerrit:

Event Timeline

Also getting this for img_auth.php:

labels.normalized_message
[{reqId}] {exception_url}   ArgumentCountError: Too few arguments to function MediaWiki\Request\WebRequest::getRequestPathSuffix(), 1 passed in /srv/mediawiki/php-1.42.0-wmf.17/img_auth.php on line 72 and exactly 2 expected
error.stack_trace
from /srv/mediawiki/php-1.42.0-wmf.17/includes/Request/WebRequest.php(258)
#0 /srv/mediawiki/php-1.42.0-wmf.17/img_auth.php(72): MediaWiki\Request\WebRequest::getRequestPathSuffix(string)
#1 /srv/mediawiki/php-1.42.0-wmf.17/img_auth.php(51): wfImageAuthMain()
#2 /srv/mediawiki/w/img_auth.php(3): require(string)
#3 {main}
brennen renamed this task from ArgumentCountError: Too few arguments to function MediaWiki\Request\WebRequest::getRequestPathSuffix(), 1 passed in /srv/mediawiki/php-1.42.0-wmf.17/thumb.php on line 88 and exactly 2 expected to ArgumentCountError: Too few arguments to function MediaWiki\Request\WebRequest::getRequestPathSuffix().Feb 6 2024, 7:38 PM

The img_auth.php ones can be reproduced by loading the officewiki contact list, where indeed some images are giving a 500 with Fatal exception of type "ArgumentCountError".

Change 997954 had a related patch set uploaded (by Majavah; author: Majavah):

[mediawiki/core@master] WebRequest: Fix default for backwards compat

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

Change 997876 had a related patch set uploaded (by Majavah; author: Majavah):

[mediawiki/core@wmf/1.42.0-wmf.17] WebRequest: Fix default for backwards compat

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

Change 997954 merged by jenkins-bot:

[mediawiki/core@master] WebRequest: Fix default for backwards compat

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

Change 997876 merged by jenkins-bot:

[mediawiki/core@wmf/1.42.0-wmf.17] WebRequest: Fix default for backwards compat

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

Mentioned in SAL (#wikimedia-operations) [2024-02-06T23:09:05Z] <brennen@deploy2002> Started scap: Backport for [[gerrit:997876|WebRequest: Fix default for backwards compat (T356800)]]

Mentioned in SAL (#wikimedia-operations) [2024-02-06T23:10:36Z] <brennen@deploy2002> taavi and brennen: Backport for [[gerrit:997876|WebRequest: Fix default for backwards compat (T356800)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-02-06T23:18:07Z] <brennen@deploy2002> Finished scap: Backport for [[gerrit:997876|WebRequest: Fix default for backwards compat (T356800)]] (duration: 09m 02s)

taavi claimed this task.