Pagination Error 404
Posted: 09 July 2005 06:55 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  164
Joined  09-16-2003

Sometimes my pagination is not working correctly and produces an Error 404

I get a URL like this:

http://www.afpunt.nl/index?/S=7b06654d2d061bfd2797dd8075cdc59dda550058/P30/

instead of this:

http://www.afpunt.nl/index?/P15/

??

 Signature 

AFpunt - - - - A Pointless Weblog - - - -

Profile
 
 
Posted: 09 July 2005 09:59 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9853
Joined  06-19-2002

That “extra information” is a Session hash and is what you would see if you ran EE using sessions (or sessions and cookies—see ‘Admin > Security and Session Preferences’).  I went to your site and paged through about a dozen “pagination” pages and didn’t encounter the issue.

You say it “sometimes” happens.  Is there any similarity between when it does and doesn’t happen?  Do you only get it with a certain browser?

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 10 July 2005 04:19 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  164
Joined  09-16-2003

I discovered that it happens áfter visiting the Forum!?
There is no problem when I use cookies only.

 Signature 

AFpunt - - - - A Pointless Weblog - - - -

Profile
 
 
Posted: 10 July 2005 09:27 AM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9853
Joined  06-19-2002

This forum or a forum on your site?  Can you list the exact steps you use to reproduce the problem?

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 10 July 2005 10:01 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  164
Joined  09-16-2003

After visiting the forum on my own site, I put a link there (www.afpunt.nl)

 Signature 

AFpunt - - - - A Pointless Weblog - - - -

Profile
 
 
Posted: 10 July 2005 03:12 PM   [ Ignore ]   [ # 5 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9853
Joined  06-19-2002

As I said, can you list the exact steps you go through to reproduce this?

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 08 January 2009 01:36 PM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  137
Joined  04-14-2004

This is the only thread I could find on this issue, I suspect it’s not an issue because not too many people run with session on their website.

However we need to for some government sites (which can’t use cookies).

When this happens, a user logged into the control who is browsing the site will have pagination and search forms with the added session code, and they’ll trigger 404s.

I’m not sure why pagination links would need session code added, any insight anyone?

 Signature 

http://www.cameroncorda.com | http://www.bluestatedigital.com

Profile
 
 
Posted: 08 January 2009 01:43 PM   [ Ignore ]   [ # 7 ]  
Lab Assistant
RankRank
Total Posts:  135
Joined  04-02-2006

If you are tracking whether a user is a logged-in member or not, then such session info. is usually stored in cookies.
If cookies are disabled, then session strings are added to the URL to identify the user. Could this be the issue?

Profile
 
 
Posted: 08 January 2009 01:51 PM   [ Ignore ]   [ # 8 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  137
Joined  04-14-2004

we’re not testing for if logged_in, if member_group, anything like that.  Here is our pagination code:

{paginate}
{if
"{total_pages}" != 1}{!-- only show pagination code if more than one page --}
  
<p class="paginate">Page {current_page} of {total_pages} pages {pagination_links}</p>
{/if}
{
/paginate}

And in our settings:

CP Session Type: “Cookies and session ID”
And User Session Type “Sessions Only”

 Signature 

http://www.cameroncorda.com | http://www.bluestatedigital.com

Profile
 
 
Posted: 08 January 2009 06:53 PM   [ Ignore ]   [ # 9 ]  
Lab Assistant
RankRank
Total Posts:  135
Joined  04-02-2006

If users are logged in and using sessions, not cookies, then sid (session ID) is displayed in the URL.
So presumably visiting a page that requires the user to be logged in—then browsing an area that
is spread over several pages—causes the problem.
Ideally either the SID should appear at the end of the URL, or the paging code should ignore any SID part. Bug?

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66467 Total Logged-in Users: 25
Total Topics: 84859 Total Anonymous Users: 15
Total Replies: 455329 Total Guests: 173
Total Posts: 540188    
Members ( View Memberlist )