Page MenuHomePhabricator

"Title::newFromTitle: $text must be a string" from CentralAuthHooks::onSpecialLogAddLogSearchRelations
Closed, ResolvedPublic

Description

Warning: Title::newFromTitle: $text must be a string
from
SpecialLog::execute/Hooks::run/CentralAuthHooks::onSpecialLogAddLogSearchRelations/User::getCanonicalName/Title::newFromText

About 100 hits a day in the T76305 channel. Looks like it's unconditionally passing values from the WebRequest that may be unset or empty.

Event Timeline

Krinkle raised the priority of this task from to Medium.
Krinkle updated the task description. (Show Details)
Krinkle added subscribers: Krinkle, Krenair, Reedy.
Krinkle raised the priority of this task from Medium to Needs Triage.Aug 23 2015, 1:02 PM
Krinkle set Security to None.
Krinkle unsubscribed.
demon triaged this task as Medium priority.Aug 24 2015, 3:19 AM

Change 233398 had a related patch set uploaded (by Alex Monk):
Avoid passing non-strings into User::getCanonicalName

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

Change 233398 merged by jenkins-bot:
Avoid passing non-strings into User::getCanonicalName

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