Topic on Project:Support desk

Losing pages in big category from template

4
Subfader (talkcontribs)

Say "Template:Infobox" adds articles to "Category:Infobox pages" (a hidden category). I have ~100K pages using that template.

Since my upgrade from MW 1.22 to 1.25.2 the category is losing pages while actually more pages are added, i.e. the category and PAGESINCAT read ~85K pages. New ones are added some existing seem to fall out.

When I edit missing pages, the bottom info "X hidden categories" is indeed empty. These pages are really not in the catgory anymore altho they were not edited for ages. After saving they're added again to the category.

What could cause this?

Ciencia Al Poder (talkcontribs)

Maybe an edit on the template (or the upgrade itself) triggered those pages to force a refresh links job, and the jobs are somewhat failing to parse the pages correctly (for example, they delete categories on the page prior to reparse it, and the parsing leads to any category because a parsing error)

If jobs are running from command line, something must be different which makes the parse to fail. Maybe you're using a Lua module and from command line it fails?

Subfader (talkcontribs)

I'm not using Lua. runJobs runs every few minutes.

It affects all categories from that template. All are shrinking.

The template was indeed changed after the update. But it works fine since new pages are in the desired category.

But updating the template doesn't cause the pages to not be in the category until runJobs parses the pages again. Also, then all pages would be affected, not just a few. I see no odd similarities in the lost pages.

The PHP error log and $wgDebugLogFile show no related entries when I

  • run Jobs
  • action=purge on a lost page
This post was hidden by 89.176.24.220 (history)
Reply to "Losing pages in big category from template"