douyakan8924 2017-12-19 18:02
浏览 170
已采纳

子类别未列在MediaWiki的父类别页面中

I have a MediaWiki installed on a standalone server. I created many categories and organized all categories into a hierarchy with a single top level category.

In MediaWiki software, if the category contains subcategories, they should be listed under the content and above the list of the pages that are directly assigned to the parent category. But it does not happen in my installed software; subcategories are not listed on their parent category page. Does anybody know possible causes?

Thanks,

  • 写回答

1条回答 默认 最新

  • dongmu3457 2017-12-20 14:12
    关注

    I could resolve the issue following an advice from Ciencia Al Poder.

    I contribute the answer here for those who may face the same issue.

    Background of the issue: I imported categories from another wiki using Special:Export/Special:Import. Each category had several subcategories. I hoped that importing category from another wiki would preserve category's hierarchy. But that didn't work. The "categorylinks" table (Manual:categorylinks table) keeps category->subcategory relationships and hierarchy. But that table was not populated properly during the import.

    How the issue is resolved: Since I imported lots of templates and categories using Special:Import, the job table (Manual:job table) was populated with 20,000 records. Since one job is normally executed on each page load, regular site visits were not able to run that number of jobs in a short period of time. So I run php maintenance/runJobs.php script (Manual:RunJobs.php) manually two times to be able to execute all jobs in the queue. After that, I got all categories linked to each other in a hierarchy.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效