Topic on User talk:Animaratio

Lucianoazzigotti (talkcontribs)

buenas @Ciencia Al Poder sabes que estoy intentando instalar graphviz sin resultado. He comprobado que desde el promt, el comando dot funciona perfecto,


pero en mediawiki me tira el siguiente error:


http://musiki.org.ar/index.php?title=Test23&action=submit



[XRMVB8kjTDXsWb4twVpQfwAAAMg] /index.php?title=Test21&action=submit Wikimedia\Rdbms\DBQueryError from line 1561 of /home/datra/public_html/musiki/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: INSERT IGNORE INTO `mwpx_image` (img_name,img_size,img_width,img_height,img_bits,img_media_type,img_major_mime,img_minor_mime,img_timestamp,img_description,img_user,img_user_text,img_metadata,img_sha1) VALUES ('Test21_graph_dot.png','40714','340','539','8','BITMAP','image','png','20190626064737','','7606','GraphViz','a:6:{s:10:\"frameCount\";i:0;s:9:\"loopCount\";i:1;s:8:\"duration\";d:0;s:8:\"bitDepth\";i:8;s:9:\"colorType\";s:10:\"truecolour\";s:8:\"metadata\";a:1:{s:15:\"_MW_PNG_VERSION\";i:1;}}','4ez4dnu9d7xhn2fvq64n68y6jwfmqtq')

Function: MediaWiki\Extension\GraphViz\UploadLocalFile::recordUpload3

Error: 1054 Unknown column 'img_description' in 'field list' (localhost)

Backtrace:

#0 /home/datra/public_html/musiki/includes/libs/rdbms/database/Database.php(1530): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#1 /home/datra/public_html/musiki/includes/libs/rdbms/database/Database.php(1248): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 /home/datra/public_html/musiki/includes/libs/rdbms/database/Database.php(2123): Wikimedia\Rdbms\Database->query(string, string)

#3 /home/datra/public_html/musiki/extensions/GraphViz/includes/UploadLocalFile.php(394): Wikimedia\Rdbms\Database->insert(string, array, string, string)

#4 /home/datra/public_html/musiki/extensions/GraphViz/includes/UploadLocalFile.php(328): MediaWiki\Extension\GraphViz\UploadLocalFile->recordUpload3(string, string, array, User)

#5 /home/datra/public_html/musiki/extensions/GraphViz/includes/UploadFromLocalFile.php(78): MediaWiki\Extension\GraphViz\UploadLocalFile->upload2(string, string, array, integer, User)

#6 /home/datra/public_html/musiki/extensions/GraphViz/includes/UploadLocalFile.php(280): MediaWiki\Extension\GraphViz\UploadFromLocalFile->performUpload2(string)

#7 /home/datra/public_html/musiki/extensions/GraphViz/includes/GraphViz.php(797): MediaWiki\Extension\GraphViz\UploadLocalFile::uploadWithoutFilePage(MediaWiki\Extension\GraphViz\UploadFromLocalFile, string, string, boolean)

#8 /home/datra/public_html/musiki/extensions/GraphViz/includes/GraphViz.php(444): MediaWiki\Extension\GraphViz\GraphViz::render(string, array, Parser, PPFrame_DOM)

#9 /home/datra/public_html/musiki/includes/parser/Parser.php(3987): MediaWiki\Extension\GraphViz\GraphViz::graphvizParserHook(string, array, Parser, PPFrame_DOM)

#10 /home/datra/public_html/musiki/includes/parser/Preprocessor_DOM.php(1364): Parser->extensionSubstitution(array, PPFrame_DOM)

#11 /home/datra/public_html/musiki/includes/parser/Parser.php(3036): PPFrame_DOM->expand(DOMElement, integer)

#12 /home/datra/public_html/musiki/includes/parser/Parser.php(1354): Parser->replaceVariables(string)

#13 /home/datra/public_html/musiki/includes/parser/Parser.php(482): Parser->internalParse(string)

#14 /home/datra/public_html/musiki/includes/content/WikitextContent.php(369): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)

#15 /home/datra/public_html/musiki/includes/content/AbstractContent.php(555): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)

#16 /home/datra/public_html/musiki/includes/Revision/RenderedRevision.php(265): AbstractContent->getParserOutput(Title, NULL, ParserOptions, boolean)

#17 /home/datra/public_html/musiki/includes/Revision/RenderedRevision.php(234): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)

#18 /home/datra/public_html/musiki/includes/Revision/RevisionRenderer.php(193): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)

#19 /home/datra/public_html/musiki/includes/Revision/RevisionRenderer.php(142): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)

#20 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)

#21 /home/datra/public_html/musiki/includes/Revision/RenderedRevision.php(197): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)

#22 /home/datra/public_html/musiki/includes/Storage/DerivedPageDataUpdater.php(1276): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()

#23 /home/datra/public_html/musiki/includes/Storage/PageUpdater.php(725): MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput()

#24 /home/datra/public_html/musiki/includes/page/WikiPage.php(1915): MediaWiki\Storage\PageUpdater->saveRevision(CommentStoreComment, integer)

#25 /home/datra/public_html/musiki/includes/EditPage.php(2303): WikiPage->doEditContent(WikitextContent, CommentStoreComment, integer, boolean, User, string, array, integer)

#26 /home/datra/public_html/musiki/includes/EditPage.php(1595): EditPage->internalAttemptSave(array, boolean)

#27 /home/datra/public_html/musiki/includes/EditPage.php(694): EditPage->attemptSave(array)

#28 /home/datra/public_html/musiki/includes/actions/EditAction.php(60): EditPage->edit()

#29 /home/datra/public_html/musiki/includes/actions/SubmitAction.php(38): EditAction->show()

#30 /home/datra/public_html/musiki/includes/MediaWiki.php(501): SubmitAction->show()

#31 /home/datra/public_html/musiki/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)

#32 /home/datra/public_html/musiki/includes/MediaWiki.php(867): MediaWiki->performRequest()

#33 /home/datra/public_html/musiki/includes/MediaWiki.php(517): MediaWiki->main()

#34 /home/datra/public_html/musiki/index.php(42): MediaWiki->run()

#35 {main}


Fatal error: Uncaught Wikimedia\Rdbms\DBAccessError: Database access has been disabled. in /home/datra/public_html/musiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php:1099 Stack trace: #0 /home/datra/public_html/musiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(924): Wikimedia\Rdbms\LoadBalancer->reallyOpenConnection(Array, Object(Wikimedia\Rdbms\DatabaseDomain)) #1 /home/datra/public_html/musiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(872): Wikimedia\Rdbms\LoadBalancer->openLocalConnection(0, 0) #2 /home/datra/public_html/musiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(748): Wikimedia\Rdbms\LoadBalancer->openConnection(0, false, 0) #3 /home/datra/public_html/musiki/includes/GlobalFunctions.php(2654): Wikimedia\Rdbms\LoadBalancer->getConnection(0, Array, false) #4 /home/datra/public_html/musiki/includes/filerepo/LocalRepo.php(487): wfGetDB(-2) #5 /home/datra/public_html/musiki/includes/filerepo/file/LocalFile.php(2269): LocalRepo->getMasterDB() #6 /home/datra/public_html/musiki/includes/file in /home/datra/public_html/musiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php on line 1099



alguna ayuda??? mil gracias!


L

Ciencia Al Poder (talkcontribs)

Hola. GraphViz no es compatible con MediaWiki 1.33, pues en MediaWiki 1.33 ya no existe la columna img_description.

He creado la tarea phab:T226616 para que los desarrolladores estén al tanto de este problema. Saludos,

Lucianoazzigotti (talkcontribs)

ok gracias!

179.184.47.91 (talkcontribs)

My solution at moment:

Open the file `includes/UploadLocalFile.php` and replace `'img_description' => $comment` with `'img_description_id' => 1` and `'oi_description' => 'img_description'` with `'oi_description_id' => 'img_description_id'`.

Lucianoazzigotti (talkcontribs)

amazing!!! it worked, many thanks!!

Lucianoazzigotti (talkcontribs)

well, some other errors, any thoughs?

http://musiki.org.ar/index.php?title=Test21&oldid=83883&diff=cur&shownotice=1


[XRzZXfqfh46ngprgTwuVFgAAAVQ] /index.php?title=Test21&oldid=83883&diff=cur&shownotice=1 Wikimedia\Rdbms\DBQueryError from line 1561 of /home/datra/public_html/musiki/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: UPDATE `mwpx_image` SET img_size = '5543',img_width = '99',img_height = '155',img_bits = '8',img_media_type = 'BITMAP',img_major_mime = 'image',img_minor_mime = 'png',img_timestamp = '20190703163542',img_description = '',img_user = '7606',img_user_text = 'GraphViz',img_metadata = 'a:6:{s:10:\"frameCount\";i:0;s:9:\"loopCount\";i:1;s:8:\"duration\";d:0;s:8:\"bitDepth\";i:8;s:9:\"colorType\";s:10:\"truecolour\";s:8:\"metadata\";a:1:{s:15:\"_MW_PNG_VERSION\";i:1;}}',img_sha1 = 'prqtrbd0v8jqzd9tm9kw0ouyfo26h7s' WHERE img_name = 'Test21_digraph_example1_dot.png'

Function: MediaWiki\Extension\GraphViz\UploadLocalFile::recordUpload3

Error: 1054 Unknown column 'img_description' in 'field list' (localhost)

Backtrace:

#0 /home/datra/public_html/musiki/includes/libs/rdbms/database/Database.php(1530): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#1 /home/datra/public_html/musiki/includes/libs/rdbms/database/Database.php(1248): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 /home/datra/public_html/musiki/includes/libs/rdbms/database/Database.php(2169): Wikimedia\Rdbms\Database->query(string, string)

#3 /home/datra/public_html/musiki/extensions/GraphViz/includes/UploadLocalFile.php(463): Wikimedia\Rdbms\Database->update(string, array, array, string)

#4 /home/datra/public_html/musiki/extensions/GraphViz/includes/UploadLocalFile.php(328): MediaWiki\Extension\GraphViz\UploadLocalFile->recordUpload3(string, string, array, User)

#5 /home/datra/public_html/musiki/extensions/GraphViz/includes/UploadFromLocalFile.php(78): MediaWiki\Extension\GraphViz\UploadLocalFile->upload2(string, string, array, integer, User)

#6 /home/datra/public_html/musiki/extensions/GraphViz/includes/UploadLocalFile.php(280): MediaWiki\Extension\GraphViz\UploadFromLocalFile->performUpload2(string)

#7 /home/datra/public_html/musiki/extensions/GraphViz/includes/GraphViz.php(797): MediaWiki\Extension\GraphViz\UploadLocalFile::uploadWithoutFilePage(MediaWiki\Extension\GraphViz\UploadFromLocalFile, string, string, boolean)

#8 /home/datra/public_html/musiki/extensions/GraphViz/includes/GraphViz.php(444): MediaWiki\Extension\GraphViz\GraphViz::render(string, array, Parser, PPFrame_DOM)

#9 /home/datra/public_html/musiki/includes/parser/Parser.php(3987): MediaWiki\Extension\GraphViz\GraphViz::graphvizParserHook(string, array, Parser, PPFrame_DOM)

#10 /home/datra/public_html/musiki/includes/parser/Preprocessor_DOM.php(1364): Parser->extensionSubstitution(array, PPFrame_DOM)

#11 /home/datra/public_html/musiki/includes/parser/Parser.php(3036): PPFrame_DOM->expand(DOMElement, integer)

#12 /home/datra/public_html/musiki/includes/parser/Parser.php(1354): Parser->replaceVariables(string)

#13 /home/datra/public_html/musiki/includes/parser/Parser.php(482): Parser->internalParse(string)

#14 /home/datra/public_html/musiki/includes/content/WikitextContent.php(369): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)

#15 /home/datra/public_html/musiki/includes/content/AbstractContent.php(555): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)

#16 /home/datra/public_html/musiki/extensions/FlaggedRevs/backend/FRInclusionCache.php(66): AbstractContent->getParserOutput(Title, integer, ParserOptions)

#17 /home/datra/public_html/musiki/extensions/FlaggedRevs/frontend/FlaggablePageView.php(1590): FRInclusionCache::getRevIncludes(FlaggableWikiPage, Revision, User)

#18 /home/datra/public_html/musiki/extensions/FlaggedRevs/frontend/FlaggedRevsUI.hooks.php(841): FlaggablePageView->addToDiffView(DifferenceEngine, Revision, Revision)

#19 /home/datra/public_html/musiki/includes/Hooks.php(174): FlaggedRevsUIHooks::onDiffViewHeader(DifferenceEngine, Revision, Revision)

#20 /home/datra/public_html/musiki/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)

#21 /home/datra/public_html/musiki/includes/diff/DifferenceEngine.php(526): Hooks::run(string, array)

#22 /home/datra/public_html/musiki/includes/page/Article.php(931): DifferenceEngine->showDiffPage(boolean)

#23 /home/datra/public_html/musiki/includes/page/Article.php(615): Article->showDiffPage()

#24 /home/datra/public_html/musiki/includes/actions/ViewAction.php(68): Article->view()

#25 /home/datra/public_html/musiki/includes/MediaWiki.php(501): ViewAction->show()

#26 /home/datra/public_html/musiki/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)

#27 /home/datra/public_html/musiki/includes/MediaWiki.php(867): MediaWiki->performRequest()

#28 /home/datra/public_html/musiki/includes/MediaWiki.php(517): MediaWiki->main()

#29 /home/datra/public_html/musiki/index.php(42): MediaWiki->run()

#30 {main}

179.184.47.91 (talkcontribs)

Lucianoazzigotti, You forgot to replace the line 456

Open the file includes/UploadLocalFile.php and replace:

'img_description' => $comment (Lines: 387 and 456) with 'img_description_id' => 1

'oi_description' => 'img_description' (Line: 432) with 'oi_description_id' => 'img_description_id'.

Lucianoazzigotti (talkcontribs)

🤦‍♂️genious!, mny thanks, do you develope code for mediawiki?, I'm pleenty full of ideas but I'm composer not programmer.

Lucianoazzigotti (talkcontribs)

colegas, un nuevo error del graphviz, repentino, en el frontpage de http://musiki.org.ar , ayuda agradecida:


XTlf@WqLSdhT2Tg9YhbH4QAAAJU] /P%C3%A1gina_principal MWException from line 201 of /home/datra/public_html/musiki/extensions/GraphViz/includes/UploadLocalFile.php: MediaWiki\Extension\GraphViz\UploadLocalFile::processVerificationError: Unexpected value `3`

Backtrace:

#0 /home/datra/public_html/musiki/extensions/GraphViz/includes/UploadLocalFile.php(125): MediaWiki\Extension\GraphViz\UploadLocalFile::processVerificationError(array, string)

#1 /home/datra/public_html/musiki/extensions/GraphViz/includes/GraphViz.php(760): MediaWiki\Extension\GraphViz\UploadLocalFile::isUploadAllowedForTitle(MediaWiki\Extension\GraphViz\UploadFromLocalFile, User, string, string, boolean, string)

#2 /home/datra/public_html/musiki/extensions/GraphViz/includes/GraphViz.php(444): MediaWiki\Extension\GraphViz\GraphViz::render(string, array, Parser, PPFrame_DOM)

#3 /home/datra/public_html/musiki/includes/parser/Parser.php(4000): MediaWiki\Extension\GraphViz\GraphViz::graphvizParserHook(string, array, Parser, PPFrame_DOM)

#4 /home/datra/public_html/musiki/includes/parser/Preprocessor_DOM.php(1370): Parser->extensionSubstitution(array, PPFrame_DOM)

#5 /home/datra/public_html/musiki/includes/parser/Parser.php(3049): PPFrame_DOM->expand(DOMElement, integer)

#6 /home/datra/public_html/musiki/includes/parser/Parser.php(1359): Parser->replaceVariables(string)

#7 /home/datra/public_html/musiki/includes/parser/Parser.php(697): Parser->internalParse(string, boolean, boolean)

#8 /home/datra/public_html/musiki/extensions/SemanticResultFormats/formats/graphviz/SRF_Graph.php(136): Parser->recursiveTagParse(string)

#9 /home/datra/public_html/musiki/extensions/SemanticMediaWiki/src/Query/ResultPrinters/ResultPrinter.php(342): SRFGraph->getResultText(SMWQueryResult, integer)

#10 /home/datra/public_html/musiki/extensions/SemanticMediaWiki/src/Query/ResultPrinters/ResultPrinter.php(307): SMW\Query\ResultPrinters\ResultPrinter->buildResult(SMWQueryResult)

#11 /home/datra/public_html/musiki/extensions/SemanticMediaWiki/includes/query/SMW_QueryProcessor.php(388): SMW\Query\ResultPrinters\ResultPrinter->getResult(SMWQueryResult, array, integer)

#12 /home/datra/public_html/musiki/extensions/SemanticMediaWiki/src/ParserFunctions/AskParserFunction.php(344): SMWQueryProcessor::getResultFromQuery(SMWQuery, array, integer, integer)

#13 /home/datra/public_html/musiki/extensions/SemanticMediaWiki/src/ParserFunctions/AskParserFunction.php(183): SMW\ParserFunctions\AskParserFunction->doFetchResultsFromFunctionParameters(array, array)

#14 /home/datra/public_html/musiki/extensions/SemanticMediaWiki/src/ParserFunctionFactory.php(388): SMW\ParserFunctions\AskParserFunction->parse(array)

#15 /home/datra/public_html/musiki/includes/parser/Parser.php(3528): SMW\ParserFunctionFactory->SMW\{closure}(Parser, string, string, string, string, string, string, string, string, string, string, string, string, string)

#16 /home/datra/public_html/musiki/includes/parser/Parser.php(3235): Parser->callParserFunction(PPFrame_DOM, string, array)

#17 /home/datra/public_html/musiki/includes/parser/Preprocessor_DOM.php(1285): Parser->braceSubstitution(array, PPFrame_DOM)

#18 /home/datra/public_html/musiki/includes/parser/Parser.php(3049): PPFrame_DOM->expand(DOMElement, integer)

#19 /home/datra/public_html/musiki/includes/parser/Parser.php(1359): Parser->replaceVariables(string)

#20 /home/datra/public_html/musiki/includes/parser/Parser.php(491): Parser->internalParse(string)

#21 /home/datra/public_html/musiki/includes/content/WikitextContent.php(369): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)

#22 /home/datra/public_html/musiki/includes/content/AbstractContent.php(555): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)

#23 /home/datra/public_html/musiki/includes/Revision/RenderedRevision.php(265): AbstractContent->getParserOutput(Title, integer, ParserOptions, boolean)

#24 /home/datra/public_html/musiki/includes/Revision/RenderedRevision.php(234): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)

#25 /home/datra/public_html/musiki/includes/Revision/RevisionRenderer.php(193): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)

#26 /home/datra/public_html/musiki/includes/Revision/RevisionRenderer.php(142): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)

#27 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)

#28 /home/datra/public_html/musiki/includes/Revision/RenderedRevision.php(197): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)

#29 /home/datra/public_html/musiki/includes/poolcounter/PoolWorkArticleView.php(194): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()

#30 /home/datra/public_html/musiki/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()

#31 /home/datra/public_html/musiki/includes/page/Article.php(773): PoolCounterWork->execute()

#32 /home/datra/public_html/musiki/includes/actions/ViewAction.php(68): Article->view()

#33 /home/datra/public_html/musiki/includes/MediaWiki.php(499): ViewAction->show()

#34 /home/datra/public_html/musiki/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)

#35 /home/datra/public_html/musiki/includes/MediaWiki.php(865): MediaWiki->performRequest()

#36 /home/datra/public_html/musiki/includes/MediaWiki.php(515): MediaWiki->main()

#37 /home/datra/public_html/musiki/index.php(42): MediaWiki->run()

#38 {main}

This post was hidden by Ciencia Al Poder (history)
Reply to "graphviz"