Page MenuHomePhabricator

Flow - initiateChange failed to enable Flow on User talk page
Open, Needs TriagePublicPRODUCTION ERROR

Description

Note:

  • Two errors on failed to enable Flow on User talk page.
  • a new user can enable Flow on User talk page

Error

MediaWiki version: 1.36.0-wmf.11

exception.trace1
Flow\Import\OptInController::initiateChange failed to enable Flow on 'User talk:NACHOgao3' for user 'NACHOgao3'. Request to parsoid for "wikitext" to "html" conversion of content connected to title "User_talk:NACHOgao3" failed: 500 #0 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Flow/includes/Conversion/Utils.php(65): Flow\Conversion\Utils::parsoid('wikitext', 'html', '<div style="wid...', Object(Title))
#1 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Flow/includes/Import/TemplateHelper.php(76): Flow\Conversion\Utils::convert('wikitext', 'html', '<div style="wid...', Object(Title))
#2 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Flow/includes/Import/OptInController.php(626): Flow\Import\TemplateHelper::extractTemplates('<div style="wid...', Object(Title))
#3 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Flow/includes/Import/OptInController.php(159): Flow\Import\OptInController->extractTemplatesAboveFirstSection(Object(Title))
#4 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Flow/includes/Import/OptInController.php(118): Flow\Import\OptInController->enable(Object(Title), Object(User))
#5 /srv/mediawiki/php-1.36.0-wmf.11/includes/deferred/MWCallableUpdate.php(38): Flow\Import\OptInController->Flow\Import\{closure}()
#6 /srv/mediawiki/php-1.36.0-wmf.11/includes/deferred/DeferredUpdates.php(467): MWCallableUpdate->doUpdate()
#7 /srv/mediawiki/php-1.36.0-wmf.11/includes/deferred/DeferredUpdates.php(344): DeferredUpdates::attemptUpdate(Object(MWCallableUpdate), Object(Wikimedia\Rdbms\LBFactoryMulti))
#8 /srv/mediawiki/php-1.36.0-wmf.11/includes/deferred/DeferredUpdates.php(278): DeferredUpdates::run(Object(MWCallableUpdate), Object(Wikimedia\Rdbms\LBFactoryMulti), Object(Monolog\Logger), Object(BufferingStatsdDataFactory), 'post')
#9 /srv/mediawiki/php-1.36.0-wmf.11/includes/deferred/DeferredUpdates.php(194): DeferredUpdates::handleUpdateQueue(Array, 'run', 2)
#10 /srv/mediawiki/php-1.36.0-wmf.11/includes/MediaWiki.php(1113): DeferredUpdates::doUpdates('run')
#11 /srv/mediawiki/php-1.36.0-wmf.11/includes/MediaWiki.php(849): MediaWiki->restInPeace()
#12 /srv/mediawiki/php-1.36.0-wmf.11/includes/MediaWiki.php(861): MediaWiki->{closure}()
#13 /srv/mediawiki/php-1.36.0-wmf.11/includes/MediaWiki.php(582): MediaWiki->doPostOutputShutdown()
#14 /srv/mediawiki/php-1.36.0-wmf.11/index.php(53): MediaWiki->run()
#15 /srv/mediawiki/php-1.36.0-wmf.11/index.php(46): wfIndexMain()
#16 /srv/mediawiki/w/index.php(3): require('/srv/mediawiki/...')
#17 {main}
exception.trace2
Flow\Import\OptInController::initiateChange failed to enable Flow on 'User talk:I am a people' for user 'I am a people'. No page for workflow: O:19:"Flow\Model\Workflow":10:{s:5:"
#0 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Flow/includes/Data/Mapper/CachingObjectMapper.php(65): Flow\Model\Workflow::toStorageRow(Object(Flow\Model\Workflow))
#1 [internal function]: Flow\Data\Mapper\CachingObjectMapper->toStorageRow(Object(Flow\Model\Workflow))
#2 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Flow/includes/Data/ObjectManager.php(247): array_map(Array, Array)
#3 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Flow/includes/Data/ObjectManager.php(173): Flow\Data\ObjectManager->insert(Array, Array)
#4 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Flow/includes/Data/ObjectManager.php(146): Flow\Data\ObjectManager->multiPut(Array, Array)
#5 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Flow/includes/Data/ManagerGroup.php(81): Flow\Data\ObjectManager->put(Object(Flow\Model\Workflow), Array)
#6 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Flow/includes/Block/HeaderBlock.php(182): Flow\Data\ManagerGroup->put(Object(Flow\Model\Workflow), Array)
#7 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Flow/includes/SubmissionHandler.php(164): Flow\Block\HeaderBlock->commit()
#8 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Flow/includes/WorkflowLoader.php(66): Flow\SubmissionHandler->commit(Object(Flow\Model\Workflow), Array)
#9 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Flow/includes/Import/OptInController.php(378): Flow\WorkflowLoader->commit(Array)
#10 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Flow/includes/Import/OptInController.php(169): Flow\Import\OptInController->createFlowBoard(Object(Title), '\n\n')
#11 /srv/mediawiki/php-1.36.0-wmf.11/extensions/Flow/includes/Import/OptInController.php(118): Flow\Import\OptInController->enable(Object(Title), Object(User))
#12 /srv/mediawiki/php-1.36.0-wmf.11/includes/deferred/MWCallableUpdate.php(38): Flow\Import\OptInController->Flow\Import\{closure}()
#13 /srv/mediawiki/php-1.36.0-wmf.11/includes/deferred/DeferredUpdates.php(467): MWCallableUpdate->doUpdate()
#14 /srv/mediawiki/php-1.36.0-wmf.11/includes/deferred/DeferredUpdates.php(344): DeferredUpdates::attemptUpdate(Object(MWCallableUpdate), Object(Wikimedia\Rdbms\LBFactoryMulti))
#15 /srv/mediawiki/php-1.36.0-wmf.11/includes/deferred/DeferredUpdates.php(278): DeferredUpdates::run(Object(MWCallableUpdate), Object(Wikimedia\Rdbms\LBFactoryMulti), Object(Monolog\Logger), Object(BufferingStatsdDataFactory), 'get')
#16 /srv/mediawiki/php-1.36.0-wmf.11/includes/deferred/DeferredUpdates.php(194): DeferredUpdates::handleUpdateQueue(Array, 'run', 2)
#17 /srv/mediawiki/php-1.36.0-wmf.11/extensions/EventBus/includes/JobExecutor.php(105): DeferredUpdates::doUpdates()
#18 /srv/mediawiki/rpc/RunSingleJob.php(76): MediaWiki\Extension\EventBus\JobExecutor->execute(Array)
#19 {main}

Details

Request ID
02e740c6-178d-43f7-8b0e-e4519848ad06
Request URL
https://zh.wikipedia.org/wiki/Special:%E5%8F%82%E6%95%B0%E8%AE%BE%E7%BD%AE

Event Timeline

Etonkovidova renamed this task from OptInController::initiateChange failed to enable Flow on User talk page to Flow - initiateChange failed to enable Flow on User talk page.Oct 14 2020, 7:49 PM
Etonkovidova added subscribers: Catrope, Tgr, kostajh, MMiller_WMF.

@Etonkovidova -- is this the sort of error that should be addressed soon? What are users experiencing?

It means that for some users, checking the box to enable Flow for their user talk page fails. The error happens silently, so the user sees in their preferences the box checked for enabling Structured Discussions on their talk page, but when they view their talk page, it's still in its old wikitext format.

I have proposed T248309: Prevent users from enabling Flow on their user talk page (beta feature), I think unless we are going to allocate time to sort out bugs like this (as well as fixing the root cause of T70526: Flow: InvalidDataException "Flow workflow is for different page" from WorkflowLoaderFactory.php) we should probably not allow users to enable a feature with unattended bugs.

Per T234241#6334929 this seems like the opposite, users cannot *dis*able Flow on their talk page. (No guarantee it's the same bug, but the stack trace is the same.)