ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Channel Entires Pagination links not working

April 16, 2012 5:54am

Subscribe [9]
  • #16 / Sep 12, 2012 12:40pm

    Andrew Armitage

    86 posts

    I’m going to chime in here too - I’m not sure if this is a different issue, or a related issue, but we’ve got structure installed on http://www.burnetts.co.uk - with 2 similar channels (news and factsheets). News is using Structure - Factsheets is not - but the problem is occurring on both channels.

    I ‘m not 100% on whether this is a new issue - EE is 2.5.0, Structure is up to date, so I’m going to update EE over the weekend and see if this makes a difference.

    Basically, on page 1 of a list of articles, the pagination works fine. Clicking to another page however changes the url in the pagination links, dropping off the http://www.burnetts.co.uk giving a url of publications/factsheet_list/P20 which obviously can’t be found.

    Not sure I’m helping or hindering by posting before the update, but I’ll let you know the outcome!

    Andrew

  • #17 / Sep 13, 2012 11:12am

    Shane Eckert

    7174 posts

    Hey Andrew Armitage,

    Sounds good. Please let us know how it goes.

    Cheers,

  • #18 / Sep 13, 2012 12:36pm

    Andrew Armitage

    86 posts

    Hi Shane,

    I actually ran this update last night - and the pagination issue doesn’t seem to have fixed. Any thoughts on what might be happening here (incidentally, Structure is installed on the site, but no longer application to either the news or factsheets channels.

    The url is http://www.burnetts.co.uk/publications/news.

    Pagination seem ok on page 0, but anything, the next/prev urls change.

    Cheers.

  • #19 / Sep 14, 2012 12:35pm

    Shane Eckert

    7174 posts

    Hello Andrew,

    Are you using a .htaccess file?

    I notice the pagination drops part of the URL on subsequent pages and I am wondering if there is some rewriting going on.

    I may need to get in a take a quick look.

    Thank you,

  • #20 / Sep 14, 2012 12:41pm

    jamie.idg

    2 posts

    I am having an issue with pagination as well. i am running ee 2.5.2. it was working before and after i removed the index.php from the url using the rewrite it has stopped working.

    when i click on the second page it sends me back to the homepage with a weird url:
    http://www.artificialgrasslasvegasnevada.com/stage/?/testimonials/P5

    here is my code:

    {exp:channel:entries channel="Testimonials" orderby="date" dynamic="no" paginate="bottom" limit="5"}
      <div class="individual-testimonials">
       <h3>{title}</h3>
    <p>   {testimonial}</p>
    
    <p>   <span class="client-name">- {client_name}</span><br />
      </div><br />
      {paginate}<br />
              <div class="paginate"><br />
        <span class="pagination-right">Page {current_page} of {total_pages} pages {pagination_links}</span><br />
       </div><br />
      {/paginate}<br />
     {/exp:channel:entries}

  • #21 / Sep 14, 2012 8:11pm

    Andrew Armitage

    86 posts

    Hi Shane.

    Yes- we have an htaccess file:

    RewriteEngine On
    RewriteBase /
    
    #force <a href="http://www.burnetts.co.uk">http://www.burnetts.co.uk</a> instead of <a href="http://burnetts.co.uk">http://burnetts.co.uk</a>
    RewriteCond %{HTTP_HOST} ^burnetts.co.uk
    RewriteRule ^(.*)$ <a href="http://www.burnetts.co.uk/$1">http://www.burnetts.co.uk/$1</a> [R=301,L]
    
    #If the request is for a real directory index.php isn't served
    RewriteCond %{REQUEST_FILENAME} !-f 
    
    #If the request is for a file that exists on the server, index.php isn't served. 
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ^(.*)$ /index.php?/$1 [L] Options All -Indexes
    
    #Catch any Google campaigns directed to the home page
    RewriteCond %{REQUEST_URI} ^/index.php$
    RewriteCond %{QUERY_STRING} ^(gclid=.*)
    RewriteRule ^(.*)$ /index.php?/ [L,PT]

    However, looking in the browser status bar, the URL here is missing the domain as well, and the pagination links work on page 0, so it doesn’t stack up that the htaccess would cause this.

    Andrew

  • #22 / Sep 17, 2012 4:21pm

    Dan Decker

    7338 posts

    Hi jamie.idg,

    The extra “?” is being included because you have forced query strings.

    Check Admin-> System Administration-> Output and Debugging: Force URL query strings set to “No”

    Then, make sure your .htaccess looks like this:

    <IfModule mod_rewrite.c>
            RewriteEngine On
    
            # Removes index.php
            RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule ^(.*)$ /index.php?/$1 [L]
    
            # If 404s, "No Input File" or every URL returns the same thing
            # make it /index.php?/$1 above (add the question mark)
    </IfModule>

    Note the “?” after index.php

    That should fix you up!

    Cheers,

  • #23 / Oct 22, 2012 7:12am

    LuCmf

    6 posts

    Hi,

    I’m having the same problem with pagination.
    EE 2.5.2 and Structure 3.1.3.


    The code I’m using is:

    {exp:channel:entries channel="news" dynamic="no" paginate="top|bottom|both" limit="10"}

    Any updates on this?

    Thanks!

  • #24 / Oct 22, 2012 7:17am

    Andrew Armitage

    86 posts

    Hi LuCmf,

    Dan Decker sent me an update after he’d logged into our site and added the following:

    I set the paginate_base= parameter on channel entries and it sorted it
    straight out:
    {exp:channel:entries channel="news" disable="member_data" orderby="date"
    sort="desc" limit="10" paginate="bottom"
    paginate_base="publications/news"}

    Hopefully this helps you out.

  • #25 / Oct 22, 2012 8:42pm

    Shane Eckert

    7174 posts

    Hey LuCmf,

    Have you given Andrew’s update a go?

    Thank you,

  • #26 / Oct 31, 2012 7:01am

    LuCmf

    6 posts

    Hi Andrew,
    Thank you for your answer, for some reason the forum notification email went straight to spam, weird.

    Unfortunately this isn’t working for me.
    I’m using dynamic=“no”, that’s the main problem.
    I have this list inside a structure page so I need to use this parameter.

    Any other ideas?

    Thanks
    Lu

  • #27 / Nov 01, 2012 11:43am

    Shane Eckert

    7174 posts

    Hey LuCmf,

    Does this work outside of your structure page?

    If it does not then we can rule out Structure.

    Thank you,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases