Page MenuHomePhabricator

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

Description

Warning: Title::newFromTitle: $text must be a string:
from
HTMLForm::tryAuthorizedSubmit/HTMLForm::trySubmit/SpecialGlobalRenameProgress::onSubmit/User::getCanonicalName/Title::newFromText

	function onSubmit( array $data ) {
		$name = User::getCanonicalName( $data['username'], 'usable' );
		            //\-> Title::newFromText

Looks like username can be unset (and yield null), or otherwise contain a non-string value.

Details

Related Gerrit Patches:
mediawiki/extensions/CentralAuth : masterAvoid trying to get the canonical username of null

Event Timeline

Krinkle created this task.Jun 26 2015, 2:17 AM
Krinkle raised the priority of this task from to Normal.
Krinkle updated the task description. (Show Details)
Krinkle added a subscriber: Krenair.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 26 2015, 2:17 AM
Krenair claimed this task.Jun 26 2015, 6:13 PM

Change 221163 had a related patch set uploaded (by Alex Monk):
Avoid trying to get the canonical username of null

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

Change 221163 merged by jenkins-bot:
Avoid trying to get the canonical username of null

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

Krenair closed this task as Resolved.Jun 26 2015, 6:30 PM

Should be fixed now.