Duplicate results in Mozilla Firefox when paginating

maxcinsay
@maxcinsay
10 years ago
60 posts
Hello, Im was testing pagination when I noticed that I was getting a duplicate on the results. Below a link to test the results containing only:
{jrCore_list module="jrAudio" chart_field="audio_file_stream_count" chart_days="7" order_by="audio_file_stream_count numerical_desc" quota_id="4" template="top_songs.tpl" pagebreak="10" page=$_post.p}

This is how I find the duplicate, test on Mozilla:
http://dev5.r2rlive.com/top_songs_pagination/p=1
http://dev5.r2rlive.com/top_songs_pagination/p=2

If you see the song #10 in the first page is the #1 in the second page, this only happens in Mozilla Firefox and I'm sure the song has not been summited twice. The song that should be #11 is called 'Song 7' and it never gets listed.

Is this a bug? or is my command line incorrect?


updated by @maxcinsay: 02/17/14 12:15:12AM
maxcinsay
@maxcinsay
10 years ago
60 posts
Here is another link that links all the 16 songs Im using for testing
http://dev5.r2rlive.com/all_songs_test/p=1
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
Song 7 is in the correct place as far as I can see, and no duplicates (using Firefox):
Quote:
1
Willie Nelson
Song 2
Willie Nelson
Hip hop
Austin,
TX
Song 2
2
Willie Nelson
Song 9 This is another title
Willie Nelson
Country
Austin,
TX
Song 9 This is another title
3
Willie Nelson
Song 4
Willie Nelson
Country
Austin,
TX
Song 4
4
Willie Nelson
Song 6
Willie Nelson
Country
Austin,
TX
Song 6
5
The beatles
Beatle song 1
The beatles
Rock
Chicago,
IL
Beatle song 1
6
Willie Nelson
Song 3
Willie Nelson
Hip hop
Austin,
TX
Song 3
7
Willie Nelson
Song 5
Willie Nelson
Country
Austin,
TX
Song 5
8
Willie Nelson
Song 8 Quite longer title to show
Willie Nelson
Country
Austin,
TX
Song 8 Quite longer title to show
9
Willie Nelson
NightKitty
Willie Nelson
Country
Austin,
TX
NightKitty
10
Willie Nelson
Shiloah
Willie Nelson
Country
Austin,
TX
Shiloah

More songs


Quote:
Page 2


11
Willie Nelson
Song 7
Willie Nelson
Country
Austin,
TX
Song 7
12
Willie Nelson
Song 1
Willie Nelson
Hip hop
Austin,
TX
Song 1
13
Dj Rumble
Anna
Dj Rumble
Easy Listening
Dallas,
Tx
Anna
14
Willie Nelson
Phoebex
Willie Nelson
Country
Austin,
TX
Phoebex
15
Willie Nelson
AmazingLee
Willie Nelson
Country
Austin,
TX
AmazingLee
16
Elvis Presley
Romantic Lyrics
Elvis Presley
Rock
Miami,
Florida
Romantic Lyrics

You reached the end of the list, no more songs



--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
douglas
@douglas
10 years ago
2,790 posts
maxcinsay:
Hello, Im was testing pagination when I noticed that I was getting a duplicate on the results. Below a link to test the results containing only:
{jrCore_list module="jrAudio" chart_field="audio_file_stream_count" chart_days="7" order_by="audio_file_stream_count numerical_desc" quota_id="4" template="top_songs.tpl" pagebreak="10" page=$_post.p}

This is how I find the duplicate, test on Mozilla:
http://dev5.r2rlive.com/top_songs_pagination/p=1
http://dev5.r2rlive.com/top_songs_pagination/p=2

If you see the song #10 in the first page is the #1 in the second page, this only happens in Mozilla Firefox and I'm sure the song has not been summited twice. The song that should be #11 is called 'Song 7' and it never gets listed.

Is this a bug? or is my command line incorrect?



Try removing the order_by parameter...

{ jrCore_list module="jrAudio" chart_field="audio_file_stream_count" chart_days="7" quota_id="4" template="top_songs.tpl" pagebreak="10" page=$_post }

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
maxcinsay
@maxcinsay
10 years ago
60 posts
Hello,
I tried removing the order_by parameter and I got the list of the songs without the duplicate but in order of creation.

I forgot to say I'm using Firefox 26 in a Mac
douglas
@douglas
10 years ago
2,790 posts
I'm not sure how you got a created list if your using the jrCore_list function I provided above... that should show the audio item that has the most streams for the last 7 days.

Is this on the same link you've posted?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 01/15/14 07:45:54AM
maxcinsay
@maxcinsay
10 years ago
60 posts
@douglas I created a new link to show the played times for each song and I also show the query used

http://dev5.r2rlive.com/pagination_test
maxcinsay
@maxcinsay
10 years ago
60 posts
The urls mentioned above still doing the same when adding the p=1 and p=2. The last song of page one gets replaced by the first song of page 2.
This is happening to me only in Firefox 26 on a mac, it runs good on Chrome
douglas
@douglas
10 years ago
2,790 posts
The page parameter is not right, try this:

{ jrCore_list module="jrAudio" chart_field="audio_file_stream_count" chart_days="7" quota_id="4" template="top_songs2.tpl" pagebreak="10" page=$_post.p } 



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 01/15/14 08:58:58AM
maxcinsay
@maxcinsay
10 years ago
60 posts
Sorry about that, the page parameter was correct but when I copied it to show it I took out the last part by accident.

Thanks for looking into this Douglas

In the following links I have the same but with the order_by parameter and it is when the problem happens:
http://dev5.r2rlive.com/top_songs_pagination/p=1
http://dev5.r2rlive.com/top_songs_pagination/p=2
douglas
@douglas
10 years ago
2,790 posts
This is whats being used in the Nova skin:

{ jrCore_list module="jrAudio" chart_field="audio_file_stream_count" chart_days="7" template="song_chart_row.tpl" require_image="audio_image" pagebreak="10" page=$_post.p }

and works without issue.

The only difference I see between that and your jrCore_list is the quota_id parameter, try taking that out of your function and see if the pagination works then.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
douglas
@douglas
10 years ago
2,790 posts
I've tested the Nova skin with the quota_id parameter in it, and it worked as it should.

Is there something in your top_songs2.tpl file that might be causing your issue?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
maxcinsay
@maxcinsay
10 years ago
60 posts
Im going to go over the file, the funny thing is that only happens in Mozilla.
brian
@brian
10 years ago
10,148 posts
maxcinsay:
Im going to go over the file, the funny thing is that only happens in Mozilla.

The browser really plays no part in the pagination, so I would suspect caching or something else at the browser level, not something at the JR level.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags