maemo.org Bugzilla – Bug 8791
After editing User_talk: page, two "You have new messages (last change)." banners are on each wiki page.
Last modified: 2010-03-22 17:03:25 UTC
You need to log in before you can comment on or make changes to this bug.
SOFTWARE VERSION: EXACT STEPS LEADING TO PROBLEM: 1. Edit User_talk page. For example (http://wiki.maemo.org/User_talk:Matan). 2. Browse wiki logged in (as Matan). EXPECTED OUTCOME: One "You have new messages (last change)." banner appears on one wiki page. ACTUAL OUTCOME: Two "You have new messages (last change)." banners are on each wiki page. REPRODUCIBILITY: always. EXTRA SOFTWARE INSTALLED: OTHER COMMENTS: The banners still appear, even though the page was last edited on 21/01/2010, and even though I visited both links in the banners. User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; es-ES; rv:1.9.1.7) Gecko/20100106 Ubuntu/9.10 (karmic) Firefox/3.5.7
Created an attachment (id=2199) [details] Example wiki page with the banners.
Regression and dupe of bug #3235, maybe?
My analysis of the issue: 1. In maemo2midgard/mediawiki/2009/MonoBookMaemo2009.php, we have the user messages included once only, after the start of <div id="main-wrapper">: 260 <?php if($this->data['newtalk'] ) { ?><div class="usermessage"><?php $this->html('newtalk') ?></div><?php } ?> 2. No sign of a second test for $this->data['newtalk'] just after the body tag. So the second message must come from an extension that's hooking in to mediawiki (in the same way that the "Edit Help" extension does: http://wiki.maemo.org/User:Dneary#.22Edit_help.22_extension 3. No evidence in the maemo2midgard module of how newtalk gets set and unset. In a stock MediaWiki this problem doesn't exist, so I can guess that there are some patches to the stock MediaWiki in Maemo's instance. However, I don't know yet where it's installed, and it doesn't appear to be in source control (*if* there are changes).
I just verified that the MonoBookMaemo2009.php which is live on wiki.maemo.org isn't the same one that is in svn. I'll check differences later, and see how different they are. Still no good idea why 'newtalk' isn't getting unset when I visit my Talk page.
Further investigation: mediawiki/includes/User.php has an mtime of 2010-01-07, which might coincide with the reappearance of the banners. I'd need to check whether the symptoms are the same, but it might well just be a regression of bug #3235, as Ryan suggested in comment #2.
Patch committed to maemo2midgard svn - synchronisation needed with /usr/share/mediawiki/includes/User.php on wiki.maemo.org: https://garage.maemo.org/plugins/scmsvn/viewcvs.php?view=revision&root=maemo2midgard&revision=1630 Awaiting sync - when Wiki is synced the bug can be closed as fixed. Dave.
Sync done. We use the svn checkout now for mediawiki includes. Thanks Dave for the fix.