Page MenuHomeMiraheze

manageInactiveWikis.php errors
Closed, ResolvedPublic

Description

Since the 1.30 upgrade (not sure if it's actually related) for every few wikis I get the error below. When I remove the wikis from CW_WIKIS the script continues for a few seconds, until it reaches another wiki and I encounter the error again.

@John

[77afe223f47291496b9b2069] [no req]   MWException from line 1673 of /srv/mediawiki/w/includes/page/WikiPage.php: Could not find text for current revision 4.
Backtrace:
#0 /srv/mediawiki/w/includes/page/WikiPage.php(1625): WikiPage->doModify(WikitextContent, integer, User, string, array)
#1 /srv/mediawiki/w/extensions/MirahezeMagic/maintenance/manageInactiveWikis.php(183): WikiPage->doEditContent(WikitextContent, string, integer, boolean, User)
#2 /srv/mediawiki/w/extensions/MirahezeMagic/maintenance/manageInactiveWikis.php(122): FindInactiveWikis->warnWiki(string)
#3 /srv/mediawiki/w/extensions/MirahezeMagic/maintenance/manageInactiveWikis.php(76): FindInactiveWikis->checkLastActivity(string)
#4 /srv/mediawiki/w/maintenance/doMaintenance.php(92): FindInactiveWikis->execute()
#5 /srv/mediawiki/w/extensions/MirahezeMagic/maintenance/manageInactiveWikis.php(212): require_once(string)
#6 {main}

Event Timeline

Reception123 triaged this task as Normal priority.Dec 30 2017, 15:39
Reception123 created this task.

Doubtful 1.30 as the relevant function hasn’t been touched for 2 years in the code.

@John I'm not sure where these errors suddenly started appearing from, since as you said, the function hasn't been touched. And I'm less sure about how they can actually be fixed.

The issue seems to be SiteNotice exists but the script can’t get the old content. I’ve always proposed we switch away from sitenotice messages and do what we do with closed wiki and have a trigger.

So according to John we need a cw_inactive row in cw_wikis which would function like cw_closed currently works.

Not ManageWiki. Maybe we need a MirahezeMagic project..

Or it’s just a MediaWiki task. There’s nothing special about MirahezeMagic, it’s just stuff we don’t want to put into our MediaWiki repo locally

CreateWiki has plenty updates since then. I believe this is resolved, no?

John claimed this task.