Page MenuHomePhabricator

Special:Random always calls the same Page
Closed, ResolvedPublic

Description

Author: soeren.dohmen

Description:
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


Version: 1.13.x
Severity: minor
URL: http://zlb.uni-due.de/wiki/index.php?title=Special:Random

Details

Reference
bz18904

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:37 PM
bzimport set Reference to bz18904.
bzimport added a subscriber: Unknown Object (MLST).

happy.melon.wiki wrote:

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.

soeren.dohmen wrote:

the page_random value in the page table is either 0 or 1

soeren.dohmen wrote:

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.