Page MenuHomePhabricator

BadMethodCallException on editing units: Call to a member function getRevisionRecord() on a non-object (boolean)
Closed, DuplicatePublic

Description

During editing unit in normal wikieditor

https://www.mediawiki.org/w/index.php?title=Translations:<page>/<n>/<lang>&action=edit

i have:

[W4FGEApAMFgAAA10bbYAAABK] 2018-08-25 12:05:36: Fatal exception of type "BadMethodCallException"

Sometimes this error is also during deleting units (but error is shown after deletion and unit is deleted&reverted regardless of error).

Only on production Wikimedia wikis.

Event Timeline

Wargo created this task.Aug 25 2018, 12:08 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 25 2018, 12:08 PM
exception.file	       	/srv/mediawiki/php-1.32.0-wmf.18/includes/diff/DifferenceEngine.php:259
exception.message	       	Call to a member function getRevisionRecord() on a non-object (boolean)
exception.trace
#0 /srv/mediawiki/php-1.32.0-wmf.18/includes/diff/DifferenceEngine.php(224): DifferenceEngine->getSlotContents()
#1 /srv/mediawiki/php-1.32.0-wmf.18/includes/diff/DifferenceEngine.php(890): DifferenceEngine->getSlotDiffRenderers()
#2 /srv/mediawiki/php-1.32.0-wmf.18/extensions/Translate/utils/TranslationHelpers.php(518): DifferenceEngine->showDiffStyle()
#3 /srv/mediawiki/php-1.32.0-wmf.18/extensions/Translate/TranslateEditAddons.php(202): TranslationHelpers::addModules(OutputPage)
#4 /srv/mediawiki/php-1.32.0-wmf.18/extensions/Translate/TranslateEditAddons.php(96): TranslateEditAddons::editBoxes(EditPage)
#5 /srv/mediawiki/php-1.32.0-wmf.18/includes/Hooks.php(174): TranslateEditAddons::addTools(EditPage, OutputPage)
#6 /srv/mediawiki/php-1.32.0-wmf.18/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#7 /srv/mediawiki/php-1.32.0-wmf.18/includes/EditPage.php(2724): Hooks::run(string, array)
#8 /srv/mediawiki/php-1.32.0-wmf.18/includes/EditPage.php(699): EditPage->showEditForm()
#9 /srv/mediawiki/php-1.32.0-wmf.18/includes/actions/EditAction.php(60): EditPage->edit()
#10 /srv/mediawiki/php-1.32.0-wmf.18/includes/MediaWiki.php(501): EditAction->show()
#11 /srv/mediawiki/php-1.32.0-wmf.18/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
#12 /srv/mediawiki/php-1.32.0-wmf.18/includes/MediaWiki.php(868): MediaWiki->performRequest()
#13 /srv/mediawiki/php-1.32.0-wmf.18/includes/MediaWiki.php(525): MediaWiki->main()
#14 /srv/mediawiki/php-1.32.0-wmf.18/index.php(42): MediaWiki->run()
#15 /srv/mediawiki/w/index.php(3): include(string)
#16 {main}
exception_id	       	W4FGEApAMFgAAA10bbYAAABK
exception_url	       	/w/index.php?title=Translations:API:FAQ/25/pl&action=edit&useskin=vector&uselang=en
Aklapper renamed this task from BadMethodCallException on normal editing of units to BadMethodCallException on editing units: Call to a member function getRevisionRecord() on a non-object (boolean).Aug 25 2018, 1:05 PM
Stryn added a subscriber: Stryn.Aug 26 2018, 1:58 PM
Legoktm triaged this task as Unbreak Now! priority.Aug 26 2018, 4:46 PM
Legoktm added subscribers: daniel, Tgr, Legoktm.

Adding MCR since the traceback is related to DifferenceEngine + RevisionRecord.

Restricted Application added subscribers: Liuxinyu970226, TerraCodes. · View Herald TranscriptAug 26 2018, 4:46 PM
Restricted Application removed a subscriber: Liuxinyu970226. · View Herald TranscriptAug 26 2018, 6:59 PM
mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:08 PM