See this link. The Cargo table "Level" of Template:关卡信息 can't be well created. It raises error: [29101d885e6931ddb237b09f] 2020-02-06 04:42:25: 类型“MWException”的致命例外. I've Yaron Koren and he said that "$wgShowExceptionDetails = true;" should be set.
Description
Status | Assigned | Task | ||
---|---|---|---|---|
Resolved | Unknown Object (User) | T5199 Cargo table problem | ||
Resolved | Paladox | T6070 Apply 2017! change to cargo table |
Event Timeline
@SolidBlock Have you tried using Cargo in a test template in case the same error occurs?
I'm experiencing the same problem as well on thenationstate.miraheze.org. I created the Political_Parties table and now the Cargo table's page shows an "MWException" error, and the articles using it (https://thenationstate.miraheze.org/wiki/Politics_of_the_Divasan_Republic) can't find them anymore "Error: Table Political_Parties not found."
For information to other sysadmins, the full stack is:
2020-04-04 02:57:10 mw6 soulforgedwiki: [40dc3fd0198bb7ff5e979ed3] /w/index.php? title=Research_Concept:_Sewing&action=submit ErrorException from line 431 of / srv/mediawiki/w/extensions/Cargo/includes/parserfunctions/CargoStore.php: PHP No tice: Undefined index: icon #0 /srv/mediawiki/w/extensions/Cargo/includes/parserfunctions/CargoStore.php(431 ): MWExceptionHandler::handleError(integer, string, string, integer, array) #1 /srv/mediawiki/w/extensions/Cargo/includes/parserfunctions/CargoStore.php(124 ): CargoStore::storeAllData(Title, string, array, CargoTableSchema) #2 /srv/mediawiki/w/includes/parser/Parser.php(3816): CargoStore::run(Parser, st ring, string, string, string, string, string, string, string, string, string, st ring, string, string, string, string, string, string, string, string, string, st ring, string, string, string, string, string, string, string, string, string, st ring, string, string, string, string, string, string, string, string, string, st ring, string, string, string, string, string, string, string, string, string, st ring, string, string, string, string, string) #10 /srv/mediawiki/w/extensions/Cargo/includes/CargoUtils.php(613): Parser->pars e(string, Title, ParserOptions) #11 /srv/mediawiki/w/extensions/Cargo/CargoHooks.php(283): CargoUtils::parsePage ForStorage(Title, string) #12 /srv/mediawiki/w/includes/Hooks.php(174): CargoHooks::onPageContentSaveCompl ete(WikiPage, User, WikitextContent, string, integer, NULL, NULL, integer, Revis ion, Status, boolean, integer)
https://thenationstate.miraheze.org/wiki/Special:CargoTables/Political_Parties is located at https://thenationstate.miraheze.org/wiki/Template:Infobox_political_party
It also has a replacement table at https://thenationstate.miraheze.org/wiki/Special:CargoTables/Political_Parties?_replacement when I wanted to add some more properties to it
For other sysadmins:
2020-04-22 06:35:18 mw5 thenationstatewiki: [b46ec7b0afe264f335f16b93] /wiki/Spe cial:CargoTables/Political_Parties?_replacement MWException from line 260 of / srv/mediawiki/w/extensions/Cargo/includes/CargoUtils.php: Error: Table Political _Parties__NEXT not found. #0 /srv/mediawiki/w/extensions/Cargo/includes/specials/CargoTables.php(102): Car goUtils::getTableSchemas(array) #1 /srv/mediawiki/w/includes/specialpage/SpecialPage.php(575): CargoTables->exec ute(string) #2 /srv/mediawiki/w/includes/specialpage/SpecialPageFactory.php(611): SpecialPag e->run(string) #3 /srv/mediawiki/w/includes/MediaWiki.php(296): MediaWiki\Special\SpecialPageFa ctory->executePath(Title, RequestContext) #4 /srv/mediawiki/w/includes/MediaWiki.php(900): MediaWiki->performRequest() #5 /srv/mediawiki/w/includes/MediaWiki.php(527): MediaWiki->main() #6 /srv/mediawiki/w/index.php(44): MediaWiki->run() #7 {main}
@SolidBlock I see that Cargo has been disabled on the wiki. Do you still need help with this?
No response. Assuming disabling Cargo solved any outstanding issues. Please reopen this task if this is not the case.
Sorry to be too late to respond. Actually, I have to prepare for the college entrance exam and have no time to maintain, so I disabled Cargo temporarily. I'll re-enable Cargo on the week several weeks later. Thanks.
okay, just want to report on this,
I deleted all the cargo tables and tried to create new ones,
one time I was able to view a table,
right now I have 3 tables, but only one can be viewed
https://onepiecebountyrush.miraheze.org/wiki/Special:CargoTables
https://onepiecebountyrush.miraheze.org/wiki/Special:CargoTables/TEST100 - Viewable
https://onepiecebountyrush.miraheze.org/wiki/Special:CargoTables/UnitsTable - Error
https://onepiecebountyrush.miraheze.org/wiki/Special:CargoTables/UnitTable - Error
the one that can be viewable is very simple table, so I tried to edit it and replace with fields from other table
and tried to recreate the table, still got the error and reverted back, it was viewable again.
According to Yaron Koren, the database cargo_tables and cargo_pages are never created. To create them, stewards please help call update.php.
We run https://github.com/wikimedia/mediawiki-extensions-Cargo/blob/master/sql/Cargo.sql on the extension being turned on.
I disabled and re-enabled Cargo, and then, all the same. Maybe the database still need to be updated, because the error is still actually internal api error about database query error:
{ "error": { "code": "internal_api_error_DBQueryError", "info": "[121070aeb252a569ff3889bd] Caught exception of type Wikimedia\\Rdbms\\DBQueryError", "errorclass": "Wikimedia\\Rdbms\\DBQueryError" }, "servedby": "mw5" }
per @OPMAN
See
https://onepiecebountyrush.miraheze.org/wiki/Special:CargoTables
https://onepiecebountyrush.miraheze.org/wiki/Special:CargoTables/TEST100 - Viewable
https://onepiecebountyrush.miraheze.org/wiki/Special:CargoTables/UnitsTable - Error
https://onepiecebountyrush.miraheze.org/wiki/Special:CargoTables/UnitTable - Error