Dear all,
for our deployment procedure we're setting up a clean database with some prefilled content. I use MW 1.32.3 for that. When I did the fresh install (minimal installation method) I realized that the 'content_models' database table only contains one row with model_id = 1 and model_name = wikitext.
I then install extensions, run update.php, and import a couple pages, templates, etc. When setting up Cargo's _pageData table using the setCargoPageData.php script at a later stage I get the following error (see backtrace at the very bottom).
Failed to access name from content_models using id = 2
I get this error fixed by inserting the core content models https://www.mediawiki.org/wiki/Content_handlers into the 'content_models' table manually. Accessing the pages afterwards works fine (Widgets in this case). The widgets themselves work fine, too.
Am I missing something that the core content models are not in the initial database table 'content_models'? Is this table not filled during the installation procedure?
Is it actually bad advice to insert the rows manually?
Kind regards and thanks for your support,
Tom
[12081d263c4cc289d8a144d8] [no req] MediaWiki\Storage\NameTableAccessException from line 42 of /var/www/mediawiki/lib/includes/Storage/NameTableAccessException.php: Failed to access name from content_models using id = 2 Backtrace: #0 /var/www/mediawiki/lib/includes/Storage/NameTableStore.php(308): MediaWiki\Storage\NameTableAccessException::newFromDetails(string, string, integer) #1 /var/www/mediawiki/lib/includes/Revision/RevisionStore.php(1625): MediaWiki\Storage\NameTableStore->getName(integer) #2 /var/www/mediawiki/lib/includes/Revision/RevisionStore.php(1671): MediaWiki\Revision\RevisionStore->loadSlotRecords(string, integer) #3 [internal function]: MediaWiki\Revision\RevisionStore->MediaWiki\Revision{closure}() #4 /var/www/mediawiki/lib/includes/Revision/RevisionSlots.php(165): call_user_func(Closure) #5 /var/www/mediawiki/lib/includes/Revision/RevisionSlots.php(107): MediaWiki\Revision\RevisionSlots->getSlots() #6 /var/www/mediawiki/lib/includes/Revision/RevisionRecord.php(192): MediaWiki\Revision\RevisionSlots->getSlot(string) #7 /var/www/mediawiki/lib/includes/Revision/RevisionRecord.php(175): MediaWiki\Revision\RevisionRecord->getSlot(string, integer, NULL) #8 /var/www/mediawiki/lib/includes/Revision.php(932): MediaWiki\Revision\RevisionRecord->getContent(string, integer, NULL) #9 /var/www/mediawiki/lib/includes/page/WikiPage.php(801): Revision->getContent(integer, NULL) #10 /var/www/mediawiki/lib/extensions/Cargo/includes/CargoPageData.php(107): WikiPage->getContent() #11 /var/www/mediawiki/lib/extensions/Cargo/maintenance/setCargoPageData.php(88): CargoPageData::storeValuesForPage(Title) #12 /var/www/mediawiki/lib/maintenance/doMaintenance.php(94): SetCargoPageData->execute() #13 /var/www/mediawiki/lib/extensions/Cargo/maintenance/setCargoPageData.php(103): require_once(string) #14 {main}