Skip to:
Content
Pages
Categories
Search
Top
Bottom

Pagination Broken Links 404

  • @jj9617

    Participant

    I’m using WP 4.9 and bbpress 2.5.14. I never noticed this problem before, but when I click the pagination links on the category page (or index page of forums) I get a 404 error message. The links end in page/2, page/3, etc. If I manually change the links to page2, page3, they work! I have searched online for two days now, and most suggestions tell me to reset permalinks. I’ve tried all permalink options, changed to basic WP theme, disabled plugins… nothing changes the links showing page/2, page/3, etc. that bbpress is generating for pagination.

    My site is not public (requires login) so I cannot show you the problem, but apparently a lot of people have experienced broken pagination links. I just do not know how to troubleshoot further. I am open to the idea of inserting a custom function to remove the extra slash (/) that bbpress is inserting in between “page” and the page number.

    I appreciate any assistance! Thank you!

Viewing 16 replies - 1 through 16 (of 16 total)
  • @jj9617

    Participant

    Update… if I go to Settings > Reading and change the value in “Blog pages show at most” to 2, I can access the 2nd page link (…page/2), but not the 3rd page. If I change the value in “Blog pages show at most” to 1, I can access all 3 pages. I only have 3 pages of topics, so I am not able to test higher page number navigation links.

    It’s worth noting that regardless of the setting, I can always access the URL that ends in page2 and page3 (without the inbetween slash “/”). And, it appears that WordPress itself displays the page navigation links just fine. This pagination problem seems to be isolated to the bbpress plugin.

    @robin-w

    Moderator

    try

    dashboard>settings>permalinks and just click save – this resets the links and may fix

    @jj9617

    Participant

    Thanks for your efforts to help. I just tried this and it does not fix the issue. As I mentioned previously, I have also tried all permalink options. None allow the pagination links to work.

    @robin-w

    Moderator

    sorry, was trying to answer a few quick questions before evening meal, and didn’t read your original post properly.

    So with ‘blog pages to show at most’ the pagination works with page/2 page/3 etc?

    @jj9617

    Participant

    Hi, Robin. I only have 3 pages of topics. If I change “Blog pages show at most” to read 1, then I can view all 3 pages. If I change it to 2, I can only view pages 1 and 2. If I change it to 3 or higher, I can only view the first page. All other pages return a 404 error. Interestingly enough, if I simply remove the “/” in the URL manually in the address bar, the correct page pulls up with additional topics listed. For instance, http://cathollowcondos.com/forums/page3/ works, but http://cathollowcondos.com/forums/page/3/ does not work.

    I would like to show more than one blog post at a time on the Blog page (for instance, the default value of 10). But, right now I am limited to showing only 1 so that the Forums pages navigation will work. This is certainly odd behavior that does not appear to be tied to a theme problem or plugin conflict. That is why I am posting here. I do not have the knowledge to troubleshoot further, but will help in any way that I can.

    Thank you!

    @robin-w

    Moderator

    Thanks for that.

    The blogs per page should not affect the number of forums shown. This is set to 50 in bbpress unless changed by code, which would either be code you have done (and would know about), code from a plugin (but you have disabled and checked these) or your theme (which again you have checked).

    I’m not sure what else would be doing this

    Do you know how to access the database and look at items in it?

    @jj9617

    Participant

    I know how to access the database on my server, but I do not know what to look at or how to interpret anything in the database. If you can walk me through something, I’m happy to report back.

    Just in case I made a mistake previously, I again disabled all plugins except for bbpress, then changed themes to twenty fifteen. Problem remains. I suppose at this point, we need to confirm that others on WP 4.9 and bbpress 2.5.14 can duplicate this problem, with broken pagination links.

    @siamlottery

    Participant

    oh, same here, I think bbpress count post from stick posts and error 404 for the last of number link

    @robin-w

    Moderator

    ok, just before I dive into asking database Q’s –

    1. can you confirm that this is the forum index page
    2. do you have a page with [bbp-forum-index] in it, or do you just use a url to access
    3. If you don’t have a page – can you create one and confirm the problem still exists
    4. if you use a url, what is the root of your forums eg http://www.mysite.com/forums
    4. Can you say how many categories/forums you have on the index page, and how many are showing on each page?

    thanks

    @jj9617

    Participant

    Robin, I would like to give you login access so you can take a look at how the forums are working, but I don’t want to provide details here. Ideas?

    1. Yes, Forum index page is here: http://cathollowcondos.com/forums/ and it is the one that is generating invalid pagination links.
    2. Yes, the Forum index page has [bbp-forum-index] in it. In fact, I have [bbp-topic-index], [bbp-forum-index], and [bbp-topic-form] on the page, in that order. It looks like [bbp-topic-index] is the shortcode responsible for generating invalid pagination links.

    I have 3 categories/forums listed on the index page, and they have the following number of topics in each: 3, 13, and 1.

    **Important** – If I go to the General forum with 13 topics, there are 2 pages of topics; one with 15 topics, and a 2nd page with another 15 topics. So, it looks like the count is not being displayed properly. BUT, the pagination link to page 2 is working on the General forum page, but not on the main index page. Also, I’m not sure what the difference is between topics and posts shown on the Forums index page. Replies are listed separately. I think you really need to see it for yourself, but it’s a private site.

    @robin-w

    Moderator

    contact me via my website contact

    http://www.rewweb.co.uk

    @robin-w

    Moderator

    ok, I’ve got the login information and looked at the issue.

    On my test site, I can replicate a page with

    [bbp-topic-index]
    [bbp-forum-index]
    [bbp-topic-form]

    and have no problem in pagination. page 2 comes up as

    http://mysite.com/forums/page/2/

    This is with a twentyseventen clean theme.

    @jj9617

    Participant

    I installed and activated twentyseventeen theme and the problem persists with my installation of WordPress. I don’t know what “clean theme” means, however.

    I understand that it is very difficult (or next to impossible) to troubleshoot unless someone else can duplicate the problem. I am isolating this to bbpress, though, since pagination in WordPress posts work perfectly. And, bbpress was the only plugin active when using a WordPress.org-designed theme. Perhaps my database has been corrupted. Who knows.

    I appreciate your efforts to help me troubleshoot.

    @robin-w

    Moderator

    I don’t know what “clean theme” means, however.

    sorry lazy writing – just means a wordpress default theme with no changes – eg twentyseventeen. The ones released by wordpress are tested against bbpress.

    I’ll contact you again via email.

    @jj9617

    Participant

    I found this topic from 3 years ago, which helped me:

    Pagination broken when using shortcode for topic index

    It suggested changing the Forum setting “Forum root should show” to “Topics by Freshness.” I had it set to “Forum Index.” With this setting changed, my pagination works.

    Not sure why this setting would break pagination in bbpress topics index shortcode, but at least it works now.

    @robin-w

    Moderator

    brilliant – thanks so much for posting the solution, and yes it looks like if you partner with a page and have multiple shortcodes then you may need to choose what the forum root should show.

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