Page MenuHomePhabricator

PHP 8.1 deprecation notice on every dewiki page with WikimediaEvents enabled
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue:

  • Setup a local wiki with the DB name dewiki in a multi-wiki setup
  • Visit any page on it

What happens?:

The following deprecation warning is emitted:

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/mediawiki/extensions/WikimediaEvents/includes/WikimediaEventsHooks.php on line 597

Event Timeline

mszabo changed the task status from Open to In Progress.Aug 1 2024, 9:49 AM
mszabo claimed this task.
mszabo triaged this task as Low priority.
mszabo moved this task from Backlog to Wikimedia production on the PHP 8.1 support board.

Change #1059023 had a related patch set uploaded (by Máté Szabó; author: Máté Szabó):

[mediawiki/extensions/WikimediaEvents@master] Fix PHP 8.1 deprecation warning for null strpos() param

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

Change #1059023 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] Fix PHP 8.1 deprecation warning for null strpos() param

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