Page MenuHomePhabricator

maintenance/populateContentModel.php not using slots
Closed, DeclinedPublicBUG REPORT

Description

Steps to Reproduce:

  1. set a content model in $wgNamespaceContentModels[NS]['content_model']
  2. run maintenance/populateContentModel.php -- ns=NS for archive and revision

Actual Results:

  1. go on a page in that namespace in the wiki, no page is using the set content model.

When browsing the code in populateContentModel.php, it seems it's only updateing the revision (or archive) table but that seems to be a deprecated way of specifying the content_model. In recent versions, this has been moved to the content table.

Expected Results:

  1. all pages in that namespace should be using the configured content model.

I actually encountered the error while moving flow talk pages from one namespace to another. For some reason, all content_models were reset to wikitext. In trying to fix the issue by calling the maintenance script, I noticed it had no effect. I then used SpecialChangeContentModel to fix the issue page by page.

Event Timeline

This script has been deleted in favor of (maintenance/populateContentTables.php). Is the issue still there too?

Closing per last comment. @Tinss: If this still happens, please set the status of this task back to "Open" via the Add Action...Change Status dropdown. Thanks!