⚓ T386368 Error: Call to a member function getName() on null
Page Menu
Phabricator
Create Task
Maniphest
T386368
Error: Call to a member function getName() on null
Closed, Resolved
Public
PRODUCTION ERROR
Actions
Edit Task
Edit Related Tasks...
Create Subtask
Edit Parent Tasks
Edit Subtasks
Merge Duplicates In
Close As Duplicate
Edit Related Objects...
Edit Commits
Edit Mocks
Mute Notifications
Protect as security issue
Assigned To
daniel
Authored By
Aklapper
Feb 13 2025, 3:38 PM
2025-02-13 15:38:58 (UTC+0)
Tags
Wikimedia-production-error
(Jan-Mar 2025)
MediaWiki-Core-Revision-backend
(Untriaged)
MediaWiki-Engineering
(MediaWiki Interfaces team)
Content-Transform-Team
(Backlog)
MW-Interfaces-Team (MWI-Sprint-4 (2025-02-25 to 2025-03-11))
(Demo Ready!)
Referenced Files
None
Subscribers
aaron
Aklapper
HCoplin-WMF
Description
Should probably guard against
'user_text' => $revision->getUser( RevisionRecord::FOR_PUBLIC )
being
null
, or fix the underlying issue if applicable.
Error
service.version: 1.44.0-wmf.16
trace.id:
4e0a7160-016c-4c2d-bcd2-bda93a50933a
Find trace.id in Logstash
labels.normalized_message
[{reqId}] {exception_url} Error: Call to a member function getName() on null
Frame
Location
Call
from
/srv/mediawiki/php-1.44.0-wmf.16/includes/Rest/Handler/Helper/PageContentHelper.php(297)
#0
/srv/mediawiki/php-1.44.0-wmf.16/includes/Rest/Handler/PageSourceHandler.php(97)
MediaWiki\Rest\Handler\Helper\PageContentHelper->constructRestbaseCompatibleMetadata()
#1
/srv/mediawiki/php-1.44.0-wmf.16/includes/Rest/SimpleHandler.php(40)
MediaWiki\Rest\Handler\PageSourceHandler->run(string)
#2
/srv/mediawiki/php-1.44.0-wmf.16/includes/Rest/Module/Module.php(415)
MediaWiki\Rest\SimpleHandler->execute()
#3
/srv/mediawiki/php-1.44.0-wmf.16/includes/Rest/Module/Module.php(298)
MediaWiki\Rest\Module\Module->executeHandler(MediaWiki\Rest\Handler\PageSourceHandler)
#4
/srv/mediawiki/php-1.44.0-wmf.16/includes/Rest/Router.php(485)
MediaWiki\Rest\Module\Module->execute(string, MediaWiki\Rest\RequestFromGlobals)
#5
/srv/mediawiki/php-1.44.0-wmf.16/includes/Rest/Router.php(444)
MediaWiki\Rest\Router->doExecute(string, MediaWiki\Rest\RequestFromGlobals)
#6
/srv/mediawiki/php-1.44.0-wmf.16/includes/Rest/EntryPoint.php(209)
MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#7
/srv/mediawiki/php-1.44.0-wmf.16/includes/MediaWikiEntryPoint.php(202)
MediaWiki\Rest\EntryPoint->execute()
#8
/srv/mediawiki/php-1.44.0-wmf.16/rest.php(39)
MediaWiki\MediaWikiEntryPoint->run()
#9
/srv/mediawiki/w/rest.php(3)
require(string)
#10
{main}
Impact
Low, one appearance at
Feb 13, 2025 @ 14:08:02.333
in Logstash.
Notes
Details
MediaWiki Version
1.44.0-wmf.16
Request URL
Related Changes in Gerrit:
Subject
Repo
Branch
Lines +/-
REST page metadata endpoints: handle supressed data gracefully
mediawiki/core
REL1_43
+106
-2
REST page metadata endpoints: handle supressed data gracefully
mediawiki/core
REL1_42
+196
-0
REST page metadata endpoints: handle supressed data gracefully
mediawiki/core
master
+106
-2
Customize query in gerrit
Related Objects
Mentions
Mentioned In
T387397: PHP Warning: Attempt to read property "text" on null
Mentioned Here
T387397: PHP Warning: Attempt to read property "text" on null
Event Timeline
Aklapper
created this task.
Feb 13 2025, 3:38 PM
2025-02-13 15:38:58 (UTC+0)
aaron
subscribed.
Feb 20 2025, 4:51 PM
2025-02-20 16:51:08 (UTC+0)
Comment Actions
I see about 13 of these in the last week, all from enwiktionary and enwikivoyage.
aaron
edited projects, added
MediaWiki-Core-Revision-backend
MediaWiki-Engineering
; removed
MW-Interfaces-Team
MediaWiki-REST-API
Feb 20 2025, 4:53 PM
2025-02-20 16:53:54 (UTC+0)
MSantos
added projects:
Content-Transform-Team
MW-Interfaces-Team
Feb 26 2025, 2:48 PM
2025-02-26 14:48:11 (UTC+0)
MSantos
moved this task from
Inbox, needs triage
to
MediaWiki Interfaces team
on the
MediaWiki-Engineering
board.
HCoplin-WMF
triaged this task as
Low
priority.
Feb 26 2025, 2:57 PM
2025-02-26 14:57:28 (UTC+0)
HCoplin-WMF
subscribed.
Comment Actions
Assigned to MWI for initial investigation, given unclear endpoint ownership.
Updated priority to low, given low rate of occurrence.
BPirkle
mentioned this in
T387397: PHP Warning: Attempt to read property "text" on null
Feb 26 2025, 10:18 PM
2025-02-26 22:18:08 (UTC+0)
Reedy
moved this task from
Untriaged
to
Feb 2025
on the
Wikimedia-production-error
board.
Mar 2 2025, 10:25 PM
2025-03-02 22:25:22 (UTC+0)
HCoplin-WMF
added a comment.
Mar 5 2025, 2:42 PM
2025-03-05 14:42:27 (UTC+0)
This comment was removed by
HCoplin-WMF
HCoplin-WMF
moved this task from
Incoming (Needs Triage)
to
Backlog
on the
MW-Interfaces-Team
board.
Mar 10 2025, 2:22 PM
2025-03-10 14:22:27 (UTC+0)
gerritbot
added a comment.
Mar 10 2025, 4:25 PM
2025-03-10 16:25:30 (UTC+0)
Comment Actions
Change #1126097 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):
[mediawiki/core@master] REST page metadata endpoints: handle supressed data gracefully
gerritbot
added a project:
Patch-For-Review
Mar 10 2025, 4:25 PM
2025-03-10 16:25:31 (UTC+0)
daniel
changed the task status from
Open
to
In Progress
Mar 10 2025, 4:26 PM
2025-03-10 16:26:57 (UTC+0)
daniel
claimed this task.
daniel
raised the priority of this task from
Low
to
High
daniel
edited projects, added
MW-Interfaces-Team (MWI-Sprint-4 (2025-02-25 to 2025-03-11))
; removed
MW-Interfaces-Team
daniel
moved this task from
Committed
to
Code Review
on the
MW-Interfaces-Team (MWI-Sprint-4 (2025-02-25 to 2025-03-11))
board.
gerritbot
added a comment.
Mar 10 2025, 5:15 PM
2025-03-10 17:15:11 (UTC+0)
Comment Actions
Change #1126097
merged
by jenkins-bot:
[mediawiki/core@master] REST page metadata endpoints: handle supressed data gracefully
gerritbot
added a comment.
Mar 10 2025, 5:18 PM
2025-03-10 17:18:42 (UTC+0)
Comment Actions
Change #1126116 had a related patch set uploaded (by Reedy; author: Daniel Kinzler):
[mediawiki/core@REL1_43] REST page metadata endpoints: handle supressed data gracefully
gerritbot
added a comment.
Mar 10 2025, 5:37 PM
2025-03-10 17:37:44 (UTC+0)
Comment Actions
Change #1126118 had a related patch set uploaded (by Reedy; author: Daniel Kinzler):
[mediawiki/core@REL1_42] REST page metadata endpoints: handle supressed data gracefully
gerritbot
added a comment.
Mar 10 2025, 5:39 PM
2025-03-10 17:39:02 (UTC+0)
Comment Actions
Change #1126118
abandoned
by Reedy:
[mediawiki/core@REL1_42] REST page metadata endpoints: handle supressed data gracefully
Reason:
Only in 1.43+ I4af7ff5325660ae30faebb24753b9dc1c3acb2b3
gerritbot
added a comment.
Mar 10 2025, 5:53 PM
2025-03-10 17:53:25 (UTC+0)
Comment Actions
Change #1126116
merged
by jenkins-bot:
[mediawiki/core@REL1_43] REST page metadata endpoints: handle supressed data gracefully
Maintenance_bot
removed a project:
Patch-For-Review
Mar 10 2025, 6:32 PM
2025-03-10 18:32:06 (UTC+0)
daniel
moved this task from
Code Review
to
Demo Ready!
on the
MW-Interfaces-Team (MWI-Sprint-4 (2025-02-25 to 2025-03-11))
board.
Mar 11 2025, 2:34 PM
2025-03-11 14:34:49 (UTC+0)
HCoplin-WMF
closed this task as
Resolved
Mar 11 2025, 6:19 PM
2025-03-11 18:19:43 (UTC+0)
Comment Actions
Closing sprint 4 and marking as resolved!
Krinkle
moved this task from
Feb 2025
to
Jan-Mar 2025
on the
Wikimedia-production-error
board.
Apr 1 2025, 2:06 AM
2025-04-01 02:06:42 (UTC+0)
Log In to Comment
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct.
Wikimedia Foundation
Code of Conduct
Disclaimer
CC-BY-SA
GPL
Credits
US