Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-11-05 21:39:20

mwr
Member
From: Canada
Registered: 2006-01-31
Posts: 167
Website

Random link gets "stuck"

I’m having trouble with a random article link. It works for awhile, randomly displaying an article. But then it gets “stuck,” displaying the same article no matter how many times I click on the link. Or sometimes it will display only two or three articles, always in the same order.

I’m using the method suggested in the FAQ.


Mark

Offline

#2 2008-11-05 23:29:37

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Random link gets "stuck"

How many articles are there? If there only are a few, chances are higher that the same one will be displayed more than once. Random is random ;)
If it happens very often, you can try if it makes a difference if you set ‘send last modified header’ to ‘no’ in advanced preferences.

Offline

#3 2008-11-06 02:35:01

mwr
Member
From: Canada
Registered: 2006-01-31
Posts: 167
Website

Re: Random link gets "stuck"

I find it hard to believe it would randomly pick the same article 20 times in a row :D
I tried changing the preference you suggested, and the problem persists.


Mark

Offline

#4 2008-11-06 21:15:56

mwr
Member
From: Canada
Registered: 2006-01-31
Posts: 167
Website

Re: Random link gets "stuck"

A followup for the curious: I tested another copy of the site in MAMP, and it worked fine. The code looked identical in both installations, but I copied and pasted the MAMP code on top of the live site code, and now the live site works as well. I can’t explain it, but hopefully this will help others with troubleshooting.


Mark

Offline

Board footer

Powered by FluxBB