Page MenuHomePhabricator

PHP Notice: Undefined index: transclusion in includes/actions/InfoAction.php
Closed, ResolvedPublic

Description

Observed on translatewiki.net when visiting URL.

[09-Jan-2013 09:41:54 UTC] PHP Notice: Undefined index: transclusion in /www/translatewiki.net/w/includes/actions/InfoAction.php on line 495
[09-Jan-2013 09:41:54 UTC] PHP Notice: Undefined index: transclusion in /www/translatewiki.net/w/includes/actions/InfoAction.php on line 513

Probably caused by not initialising a variable in gerrit 31504.


Version: 1.21.x
Severity: normal
URL: https://translatewiki.net/wiki/Main_Page?action=info

Details

Reference
bz43766

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:29 AM
bzimport set Reference to bz43766.

I don't think this is a software bug, because those indexes are definitely initialized. I think the problem is that InfoAction now caches the result of InfoAction::pageCounts, where those indexes are set. It's probably still reading a cached version, and the cache doesn't have those indexes since it's a new change.

Needs versioning of the cache to avoid this out of date cached entry.

Patch in Gerrit needs review...

Change 54207 merged by jenkins-bot:
Add cache versioning to InfoAction.

https://gerrit.wikimedia.org/r/54207