Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum and topic pages redirects to page 1


  • Justin Tadlock
    Participant

    @greenshady

    I run a bbPress install at http://justintadlock.com/forums.

    My problem is that when I click to go to the next page or page 2 of a forum or topic, I am taken to the first page. So, users can’t access everything.

    I use these calls in my template files:

    forum_pages();
    topic_pages();

    The links show properly, but nothing happens.

    I’m also using slug-based URLs but have tried all three options with no success.

    My .htaccess file looks like this:

    AddHandler x-httpd-php5 .php
    AddHandler x-httpd-php .php4

    Options +MultiViews

    However, I’ve tried several different versions with no pagination success.

    I also have this integrated into a WordPress install.

    I’m at a loss at the moment and was wondering if anyone had any ideas on what might be causing this.

    [Edit] Here’s an example page 2:

    /page/2

Viewing 4 replies - 1 through 4 (of 4 total)

  • chrishajer
    Participant

    @chrishajer

    I wonder if the forums/forum/ is messing things up? Slug based permalinks seem to be working fine.

    You can add a line to your config.php to enable debugging and see some additional info which might help. This will be displayed at the top of your forum page:

    REQUEST_URI:
    should be:
    full permalink:
    PATH_INFO:

     

    Set this in config.php, after the database connection details.

    $bb->debug = 1;


    chrishajer
    Participant

    @chrishajer

    Nice to see you working on it :)

    I think it’s a rewrite problem, somehow. When you access the page 2 & page 3 the “old way” they come up:

    http://justintadlock.com/forums/forum/forum.php?id=1&page=2

    http://justintadlock.com/forums/forum/forum.php?id=1&page=3


    chrishajer
    Participant

    @chrishajer

    BTW – great idea for a forum.


    Justin Tadlock
    Participant

    @greenshady

    Here’s the results I got from the debugging. One thing I’ve noticed is that once I click on Page 2 (the URL changed to click on Page 2 again).

    Forum

    http://justintadlock.com/forums/forum/options-wordpress-theme

    REQUEST_URI:	string(37) "/forums/forum/options-wordpress-theme"
    should be: string(37) "/forums/forum/options-wordpress-theme"
    full permalink: string(61) "http://justintadlock.com/forums/forum/options-wordpress-theme"
    PATH_INFO: string(0) ""

    Forum (page 2)

    http://justintadlock.com/forums/forum/options-wordpress-theme/page/2

    REQUEST_URI:	string(44) "/forums/forum/options-wordpress-theme/page/2"
    should be: string(37) "/forums/forum/options-wordpress-theme"
    full permalink: string(61) "http://justintadlock.com/forums/forum/options-wordpress-theme"
    PATH_INFO: string(0) ""

    Forum (URL changed to add two of /page/2)

    http://justintadlock.com/forums/forum/options-wordpress-theme/page/2/page/2

    REQUEST_URI:	string(51) "/forums/forum/options-wordpress-theme/page/2/page/2"
    should be: string(37) "/forums/forum/options-wordpress-theme"
    full permalink: string(61) "http://justintadlock.com/forums/forum/options-wordpress-theme"
    PATH_INFO: string(0) ""

    Topic (page 1)

    REQUEST_URI:	string(55) "/forums/topic/bug-report-for-version-10-beta?replies=31"
    should be: string(55) "/forums/topic/bug-report-for-version-10-beta?replies=31"
    full permalink: string(79) "http://justintadlock.com/forums/topic/bug-report-for-version-10-beta?replies=31"
    PATH_INFO: string(0) ""

    Topic (page 2)

    REQUEST_URI:	string(62) "/forums/topic/bug-report-for-version-10-beta/page/2?replies=31"
    should be: string(55) "/forums/topic/bug-report-for-version-10-beta?replies=31"
    full permalink: string(79) "http://justintadlock.com/forums/topic/bug-report-for-version-10-beta?replies=31"
    PATH_INFO: string(0) ""

    Topic (URL changed to add two /page/2)

    REQUEST_URI:	string(69) "/forums/topic/bug-report-for-version-10-beta/page/2/page/2?replies=31"
    should be: string(55) "/forums/topic/bug-report-for-version-10-beta?replies=31"
    full permalink: string(79) "http://justintadlock.com/forums/topic/bug-report-for-version-10-beta?replies=31"
    PATH_INFO: string(0) ""

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar