Page MenuHomePhabricator

PHP Deprecated: strtolower(): Passing null is deprecated (FlowAction.php)
Closed, ResolvedPublic

Description

Error

PHP Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated
#0 [internal function]: MWExceptionHandler::handleError()
#1 /var/www/html/w/extensions/Flow/includes/Actions/FlowAction.php(129): strtolower()
#2 /var/www/html/w/extensions/Flow/includes/Actions/FlowAction.php(85): Flow\Actions\FlowAction->getRedirectUrl()
#3 /var/www/html/w/extensions/Flow/includes/Actions/ViewAction.php(26): Flow\Actions\FlowAction->showForAction()
#4 /var/www/html/w/extensions/Flow/includes/Actions/FlowAction.php(49): Flow\Actions\ViewAction->showForAction()
#5 /var/www/html/w/includes/MediaWiki.php(551): Flow\Actions\FlowAction->show()
#6 /var/www/html/w/includes/MediaWiki.php(328): MediaWiki->performAction()
#7 /var/www/html/w/includes/MediaWiki.php(916): MediaWiki->performRequest()
#8 /var/www/html/w/includes/MediaWiki.php(571): MediaWiki->main()

Steps

  1. Install Flow (incl. Echo dependency) on plain MediaWiki (mediawiki-docker-dev).
  2. Enable using $wgNamespaceContentModels[NS_USER_TALK] = 'flow-board';
  3. Visit any User_talk page.

The above error is emitted unconditionally.

Other info

Deprecated since PHP 8.1. https://3v4l.org/X0WM5

Event Timeline

Change 879127 had a related patch set uploaded (by Krinkle; author: Krinkle):

[mediawiki/extensions/Flow@master] Actions: Fix warning due to passing null to strtolower

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

Change 879127 merged by jenkins-bot:

[mediawiki/extensions/Flow@master] Actions: Fix warning due to passing null to strtolower

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

Reedy claimed this task.
Reedy moved this task from Backlog to Wikimedia production on the PHP 8.1 support board.

Change 879573 had a related patch set uploaded (by Reedy; author: Krinkle):

[mediawiki/extensions/Flow@REL1_39] Actions: Fix warning due to passing null to strtolower

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

Change 879574 had a related patch set uploaded (by Reedy; author: Krinkle):

[mediawiki/extensions/Flow@REL1_38] Actions: Fix warning due to passing null to strtolower

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

Change 879573 merged by jenkins-bot:

[mediawiki/extensions/Flow@REL1_39] Actions: Fix warning due to passing null to strtolower

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

Change 879574 merged by jenkins-bot:

[mediawiki/extensions/Flow@REL1_38] Actions: Fix warning due to passing null to strtolower

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

  NODES
HOME 1
Intern 1
mac 1
Note 3
os 3