We need to include Flow in the database dumps (see architecture notes at T93925: T5. Determine database dump architecture and file format (spike)).
With the current state, I get an exception when doing a full-wiki import that contains Flow pages:
PHP Notice: LoadBalancer::rollbackMasterChanges: Flushing an explicit transaction, getting out of sync! [Called from DatabaseBase::rollback in /vagrant/mediawiki/includes/db/Database.php at line 3739] in /vagrant/mediawiki/includes/debug/MWDebug.php on line 300 PHP Stack trace: PHP 1. MWExceptionHandler::handleException() /vagrant/mediawiki/includes/exception/MWExceptionHandler.php:0 PHP 2. MWExceptionHandler::rollbackMasterChangesAndLog() /vagrant/mediawiki/includes/exception/MWExceptionHandler.php:156 PHP 3. LBFactory->rollbackMasterChanges() /vagrant/mediawiki/includes/exception/MWExceptionHandler.php:135 PHP 4. LBFactory->forEachLBCallMethod() /vagrant/mediawiki/includes/db/LBFactory.php:192 PHP 5. LBFactorySimple->forEachLB() /vagrant/mediawiki/includes/db/LBFactory.php:177 PHP 6. call_user_func_array() /vagrant/mediawiki/includes/db/LBFactory.php:321 PHP 7. LBFactory->{closure:/vagrant/mediawiki/includes/db/LBFactory.php:175-177}() /vagrant/mediawiki/includes/db/LBFactory.php:321 PHP 8. call_user_func_array() /vagrant/mediawiki/includes/db/LBFactory.php:176 PHP 9. LoadBalancer->rollbackMasterChanges() /vagrant/mediawiki/includes/db/LBFactory.php:176 PHP 10. DatabaseBase->rollback() /vagrant/mediawiki/includes/db/LoadBalancer.php:1003 PHP 11. wfWarn() /vagrant/mediawiki/includes/db/Database.php:3739 PHP 12. MWDebug::warning() /vagrant/mediawiki/includes/GlobalFunctions.php:1231 PHP 13. MWDebug::sendMessage() /vagrant/mediawiki/includes/debug/MWDebug.php:155 PHP 14. trigger_error() /vagrant/mediawiki/includes/debug/MWDebug.php:300 Notice: LoadBalancer::rollbackMasterChanges: Flushing an explicit transaction, getting out of sync! [Called from DatabaseBase::rollback in /vagrant/mediawiki/includes/db/Database.php at line 3739] in /vagrant/mediawiki/includes/debug/MWDebug.php on line 300 Call Stack: 2039.4592 41394384 1. MWExceptionHandler::handleException() /vagrant/mediawiki/includes/exception/MWExceptionHandler.php:0 2039.4592 41394480 2. MWExceptionHandler::rollbackMasterChangesAndLog() /vagrant/mediawiki/includes/exception/MWExceptionHandler.php:156 2039.6848 41395592 3. LBFactory->rollbackMasterChanges() /vagrant/mediawiki/includes/exception/MWExceptionHandler.php:135 2039.6848 41395712 4. LBFactory->forEachLBCallMethod() /vagrant/mediawiki/includes/db/LBFactory.php:192 2039.6848 41396600 5. LBFactorySimple->forEachLB() /vagrant/mediawiki/includes/db/LBFactory.php:177 2039.6849 41397128 6. call_user_func_array() /vagrant/mediawiki/includes/db/LBFactory.php:321 2039.6849 41397200 7. LBFactory->{closure:/vagrant/mediawiki/includes/db/LBFactory.php:175-177}() /vagrant/mediawiki/includes/db/LBFactory.php:321 2039.6849 41397640 8. call_user_func_array() /vagrant/mediawiki/includes/db/LBFactory.php:176 2039.6849 41397904 9. LoadBalancer->rollbackMasterChanges() /vagrant/mediawiki/includes/db/LBFactory.php:176 2039.6849 41398400 10. DatabaseBase->rollback() /vagrant/mediawiki/includes/db/LoadBalancer.php:1003 2039.6850 41398592 11. wfWarn() /vagrant/mediawiki/includes/db/Database.php:3739 2039.6850 41398872 12. MWDebug::warning() /vagrant/mediawiki/includes/GlobalFunctions.php:1231 2039.6851 41400920 13. MWDebug::sendMessage() /vagrant/mediawiki/includes/debug/MWDebug.php:155 2039.6851 41401224 14. trigger_error() /vagrant/mediawiki/includes/debug/MWDebug.php:300 [0d44a313] [no req] Flow\Exception\UnknownWorkflowIdException from line 119 of /vagrant/mediawiki/extensions/Flow/includes/WorkflowLoaderFactory.php: Invalid workflow requested by id Backtrace: #0 /vagrant/mediawiki/extensions/Flow/includes/WorkflowLoaderFactory.php(74): Flow\WorkflowLoaderFactory->loadWorkflowById(Title, Flow\Model\UUID) #1 /vagrant/mediawiki/extensions/Flow/includes/Content/BoardContent.php(196): Flow\WorkflowLoaderFactory->createWorkflowLoader(Title, Flow\Model\UUID) #2 /vagrant/mediawiki/includes/page/WikiPage.php(2129): Flow\Content\BoardContent->getParserOutput(Title, integer, ParserOptions) #3 /vagrant/mediawiki/includes/page/WikiPage.php(2180): WikiPage->prepareContentForEdit(Flow\Content\BoardContent, Revision, User) #4 /vagrant/mediawiki/includes/Import.php(1611): WikiPage->doEditUpdates(Revision, User, array) #5 [internal function]: WikiRevision->importOldRevision() #6 /vagrant/mediawiki/includes/db/Database.php(3340): call_user_func_array(array, array) #7 /vagrant/mediawiki/includes/Import.php(325): DatabaseBase->deadlockLoop(array) #8 [internal function]: WikiImporter->importRevision(WikiRevision) #9 /vagrant/mediawiki/maintenance/importDump.php(173): call_user_func(array, WikiRevision) #10 [internal function]: BackupReader->handleRevision(WikiRevision, WikiImporter) #11 /vagrant/mediawiki/includes/Import.php(457): call_user_func_array(array, array) #12 /vagrant/mediawiki/includes/Import.php(830): WikiImporter->revisionCallback(WikiRevision) #13 /vagrant/mediawiki/includes/Import.php(777): WikiImporter->processRevision(array, array) #14 /vagrant/mediawiki/includes/Import.php(726): WikiImporter->handleRevision(array) #15 /vagrant/mediawiki/includes/Import.php(550): WikiImporter->handlePage() #16 /vagrant/mediawiki/maintenance/importDump.php(299): WikiImporter->doImport() #17 /vagrant/mediawiki/maintenance/importDump.php(257): BackupReader->importFromHandle(resource) #18 /vagrant/mediawiki/maintenance/importDump.php(102): BackupReader->importFromFile(string) #19 /vagrant/mediawiki/maintenance/doMaintenance.php(103): BackupReader->execute() #20 /vagrant/mediawiki/maintenance/importDump.php(304): require_once(string) #21 {main}
It seems it's confused because the workflow referenced in the JSON content does not exist.