Topic on Project:Support desk

Fatal exception of type MWUnknownContentModelException in flow page

9
Summary last edited by DannyS712 21:21, 18 July 2019 4 years ago

The phab report was closed as not a software bug

Beginneruser (talkcontribs)

Hi

in my wiki install flow extension after update to 1.33 version flow page show thi error

[XTC-PS78lpKtREeZjAhslwAAAAM] 2019-07-18 18:49:33: Fatal exception of type MWUnknownContentModelException

for debug in end of LocalSettings.php file add following:

$wgShowExceptionDetails = true;
$wgDebugToolbar = true;
$wgShowDebug = true;
$wgDevelopmentWarnings = true;
$wgShowDBErrorBacktrace = true;

but not show anything except :

[XTC-PS78lpKtREeZjAhslwAAAAM] 2019-07-18 18:49:33: Fatal exception of type MWUnknownContentModelException

please help me

DannyS712 (talkcontribs)

I'm filing a phabricator task for this

Beginneruser (talkcontribs)

in my log file is show message

[Thu Jul 18 23:27:05.146269 2019] [php7:error] [pid 11217] PHP Fatal error:  Uncaught Error: Class 'Pimple\\Container' not found in /home/wiki/web/site.com/public_html/w/extensions/Flow/includes/Container.php:5\nStack trace:\n#0 /home/wiki/web/site.com/public_html/w/includes/AutoLoader.php(109): require()\n#1 [internal function]: AutoLoader::autoload('Flow\\\\Container')\n#2 /home/wiki/web/site.com/public_html/w/extensions/Flow/includes/Content/BoardContentHandler.php(128): spl_autoload_call('Flow\\\\Container')\n#3 /home/wiki/web/site.com/public_html/w/includes/page/WikiPage.php(274): Flow\\Content\\BoardContentHandler->getActionOverrides()\n#4 /home/wiki/web/site.com/public_html/w/includes/actions/Action.php(98): WikiPage->getActionOverrides()\n#5 /home/wiki/web/site.com/public_html/w/includes/actions/Action.php(155): Action::factory('view', Object(WikiPage), Object(SkinVector))\n#6 /home/wiki/web/site.com/public_html/w/includes/skins/SkinTemplate.php(256): Action::getActionName(Object(SkinVector))\n#7 /home/wiki/web/fa.imamatped in /home/wiki/web/site.com/public_html/w/extensions/Flow/includes/Container.php on line 5, referer: https://site.com/wiki/User:Admin
DannyS712 (talkcontribs)
MarkAHershberger (talkcontribs)

Do you have a composer.local.json? have you run composer update?

Beginneruser (talkcontribs)

run composer install --no-dev in Flow Extension, then page of talk coming up

but show this error:

«Flow\Exception\UnknownWorkflowIdException»

then run php upadte.php in

[XTDqUjS2IWuGVrY8udHdHAAAAAA] /wiki/%D8%A8%D8%AD%D8%AB_%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1:Bahmani Flow\Exception\UnknownWorkflowIdException from line 127 of /home/wiki/web/site.com/public_html/w/extensions/Flow/includes/WorkflowLoaderFactory.php: The requested workflow does not exist on this wiki.

Show message in command line

Adding index flow_tree_descendant_rev_id to table flow_tree_revision ...[408c90bce02610726990c1c8] [no req]   Wikimedia\Rdbms\DBQueryError from line 1587 of /home/wiki/web/site.com/public_html/w/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: DROP INDEX flow_tree_descendant_id_revisions ON `flow_tree_revision`

Function: Wikimedia\Rdbms\Database::sourceFile( /home/wiki/web/site.com/public_html/w/extensions/Flow/db_patches/patch-flow_tree_idx_fix.sql )
Error: 1091 Can't DROP 'flow_tree_descendant_id_revisions'; check that column/key exists (localhost)

Now should me run SQL query DROP INDEX flow_tree_descendant_id_revisions ON `flow_tree_revision` in database?

MarkAHershberger (talkcontribs)

It looks like @Catrope updated the code to produce the backtrace you're seeing for UnknownWorkflowIdException. That commit and the associated Phabricator task indicate that there is probably a problem in your DB structure.

Please read over comments on the Phab task and see if any of them help.

Catrope (talkcontribs)

The error appears to be that it's trying to drop flow_tree_descendant_id_revisions but it doesn't exist. I'll upload a patch for Flow to handle this better, but it was probably caused by an aborted update.php run or some other strange thing like that.

In the meantime, you can try to fix this problem by running CREATE INDEX flow_tree_descendant_id_revisions ON flow_tree_revision (tree_rev_descendant_id, tree_rev_id); , then re-running update.php/

Catrope (talkcontribs)