Last modified: 2010-05-15 16:03:40 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 T20904, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18904 - Special:Random always calls the same Page
Special:Random always calls the same Page
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.13.x
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
http://zlb.uni-due.de/wiki/index.php?...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-25 09:40 UTC by Sören Dohmen
Modified: 2010-05-15 16:03 UTC (History)
1 user (show)

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


Attachments

Description Sören Dohmen 2009-05-25 09:40:08 UTC
Using Special:Random always delivers the same page. E.g the main page or if excluded in localsettings.php like this: "$wgExtraRandompageSQL = 'page_title != "Hauptseite"';" it delivers always the same page (here: ZLB). I made a database backup and tried it on a clean (no extensions) local installation with mw1.14 but even here the same problem. So it seems to be a problem with my database. Where do i have to search.

Thanx
Comment 1 Happy-melon 2009-05-25 21:46:34 UTC
The randompage feature works using random numbers stored in the page_rand column of the page table.  Have a look at the values for the pages on your wiki.
Comment 2 Sören Dohmen 2009-05-27 06:41:22 UTC
the page_random value in the page table is either 0 or 1
Comment 3 Sören Dohmen 2009-05-27 10:20:00 UTC
The type of page_random was double(20,0).
I changed ist to double and then reorganised that column in the way described on 
http://katlas.math.toronto.edu/wiki/Fixing_%22Random_Page%22

Now the Special:Random instruction is running correctly.

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


Navigation
Links