Last modified: 2010-03-05 16:54:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T22131, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20131 - PHP Notice: Undfined index: page_latest in //includes/ChangesList.php on line 476
PHP Notice: Undfined index: page_latest in //includes/ChangesList.php on li...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Recent changes (Other open bugs)
1.16.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 18251 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-08 15:58 UTC by Niklas Laxström
Modified: 2010-03-05 16:54 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Niklas Laxström 2009-08-08 15:58:37 UTC
Happens with old and enhanced changes list with example url: title=Special:RecentChangesLinked/Portal:Ar/translators

Backtrace:
    * ChangesList.php line 476 calls wfBacktrace()
    * ChangesList.php line 573 calls ChangesList::insertRollback()
    * SpecialRecentchanges.php line 397 calls OldChangesList::recentChangesLine()
    * SpecialRecentchanges.php line 122 calls SpecialRecentChanges::webOutput()
    * SpecialPage.php line 559 calls SpecialRecentChanges::execute()
    * Wiki.php line 236 calls SpecialPage::executePath()
    * Wiki.php line 63 calls MediaWiki::initializeSpecialCases()
    * index.php line 116 calls MediaWiki::performRequestForTitle()

Notice: Undefined index: page_latest in /var/www/sandwiki/includes/ChangesList.php on line 477
Comment 1 Alexandre Emsenhuber [IAlex] 2009-08-08 20:47:44 UTC
fixed in r54641.
Comment 2 Alexandre Emsenhuber [IAlex] 2009-08-21 22:13:39 UTC
*** Bug 18251 has been marked as a duplicate of this bug. ***
Comment 3 prodigion 2009-09-06 17:42:48 UTC
This also affect the 1.15 branch as I was seeing this error in my 1.15.1 install.  I implemented the fix mentioned and it seems to have fixed the problem.
Comment 4 Roan Kattouw 2009-09-06 18:46:24 UTC
(In reply to comment #3)
> This also affect the 1.15 branch as I was seeing this error in my 1.15.1
> install.  I implemented the fix mentioned and it seems to have fixed the
> problem.
> 

This issue has been fixed on trunk, and is not serious enough to backport to 1.15 (it's just a PHP warning). Reclosing.
Comment 5 tim 2010-03-05 14:38:06 UTC
I am on 1.15.1. I grabbed the fixed file (SpecialRecentchangeslinked.php), but now I have a different error:

PHP Fatal error:  Call to undefined method DatabaseMysql::unionQueries() in C:\inetpub\wwwroot\MediaWiki\includes\specials\SpecialRecentchangeslinked.php on line 163

Is there another file to go with the patch?
Comment 6 Max Semenik 2010-03-05 16:36:59 UTC
Of course, if you take one single file from the future version, it may require things introduced to other files since 1.15. But if you copy Database.php and DatabaseMysql.php to fix this warning, they may require newer GlobalFunctions and DefaultSettings, and so on, until you've dragged over whole trunk. Please just wait for 1.16 release.
Comment 7 tim 2010-03-05 16:40:10 UTC
OK, sorry. I saw "patch" and assumed that was the entire fix. In my dev environment, we consider a "patch" to consist of all fixes for an issue. It seems there's a different definition here.
Comment 8 Roan Kattouw 2010-03-05 16:54:36 UTC
(In reply to comment #7)
> OK, sorry. I saw "patch" and assumed that was the entire fix. In my dev
> environment, we consider a "patch" to consist of all fixes for an issue. It
> seems there's a different definition here.

We use the same definition, but the difference between SpecialRecentchanges.php in 1.15.1 and the same file in trunk consists of much more than just this one patch, and some of these differences rely on changes in other files.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links