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.

Discussion Forum Module - pagination not working

November 14, 2011 5:23am

Subscribe [2]
  • #1 / Nov 14, 2011 5:23am

    sherpanaut

    58 posts

    Hi folks,

    I’m having trouble with the Discussion Forum module on EE2. Most of the site and links work fine but for some reason going to page 2,3 etc in a thread doesn’t work.

    The links are like this “/forums/viewthread/16/P15” but they just bring up the first page of the thread.

    I suspected it might be related to the NSM Htaccess generator extension but I’ve updated to the latest version of that and it had no effect.

    My htaccess looks like this atm (generated by NSM extension):

    RewriteCond %{REQUEST_URI} ^/(includes|scripts|site|styles|search|register|members|forums|P[0-9]{2,8}) [NC]

    Has anyone any ideas? It’s really annoying my site users understandably.

    Cheers,
    Aodh.

  • #2 / Nov 14, 2011 4:48pm

    Kevin Smith

    4784 posts

    Hi tricycleinteractive,

    I would recommend first uninstalling the index.php removal extension and adding index.php back into your URLs as a troubleshooting step. If that works, then we do know it was the .htaccess rules that were causing the problem. Then I recommend using our officially supported index.php removal technique, as there are no known issues with this particular technique, and it’s one you can use that we’ll be able to support here officially. 😊

  • #3 / Nov 15, 2011 5:04am

    sherpanaut

    58 posts

    Hi Kevin,

    Thanks for the reply. I followed those steps (removed extension, implemented index.php removal fix) but the forum still is exhibiting the same behaviour even when index.php is included in the url.

  • #4 / Nov 17, 2011 5:43am

    sherpanaut

    58 posts

    Any further ideas lads? I’m stuck bigtime with this.

  • #5 / Nov 18, 2011 7:08pm

    Kevin Smith

    4784 posts

    I’m stuck on this as well, tricycleinteractive, so allow me some time to bring in a developer to see what’s going on. I recall they may have dealt with this in the past, and I’d like to see if there is a solution they’re aware of.

    I’ll get back with you as soon as I have something new for you!

  • #6 / Nov 21, 2011 9:52am

    Robin Sowell

    13255 posts

    tricycleinteractive, I just sent you over an email.  Think it’s time to take a closer look at this one.

  • #7 / Nov 21, 2011 11:47am

    sherpanaut

    58 posts

    Edit: Nevermind I see it now. 😊

  • #8 / Nov 21, 2011 3:11pm

    Robin Sowell

    13255 posts

    Whew- good.  And yep- most staff keep pm’s off as we like to keep things consolidated.  The ‘full’ message is what you see if they’re turned off.

    Haven’t gotten the info yet- but once I do, I’ll hop in!

  • #9 / Nov 22, 2011 5:57pm

    Robin Sowell

    13255 posts

    OK- it’s definitely an extension- disabling all extensions gets it working.  Skimming code, I’d say it’s the Structure extension.  It looks like you’re running 3.0 and I see they’re up to 3.1.3.  So- first thing, try updating structure.  If that doesn’t do it- I’d check with the author.  Bascially- it looks like something is stripping out all of your page indicators from $this->EE->uri->uri_string and the forum never sees the Px in the forum.  Nor do the regular templates- see the test template in search/test

    <?php
    
    var_dump($this->EE->uri->uri_string);
    
    ?>

    Visit with a url of index.php/search/test/P9 and it sees the uri_string as just string(11) “search/test”.

    I won’t swear it’s structure- but it’s definitely filtering out the Px for some of its pagination magic, so I’d say odds are good.

    Make sense?

  • #10 / Nov 23, 2011 5:06am

    sherpanaut

    58 posts

    Legend! :D That worked perfectly. I upgraded to Structure 3.1.2 and can page to 2,3 etc. Thanks for sorting this Robin.

  • #11 / Nov 23, 2011 9:37am

    Robin Sowell

    13255 posts

    Whee- I love it when the easy fix works!  Glad you got it squared away and if you run into anything else, just give us a yell.

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

ExpressionEngine News!

#eecms, #events, #releases