Permalinks in replies lead to the wrong page
-
Hi. I have encountered this problem: after installing bbpress and converting Mingle forum (this operation was not without problems), in some topics some permalinks are generated with wrong pages.
For example, following this link…:
mydomain/bbforums/topic/stream-records/page/8#post-121032
(I deleted the real domain since my thread was marked as spam, but I can provide it below if needed.)… we get to page 8 and go down to post 121032 – the second one on that page. But if we go up to the first post on this page, we can see that the link to it is formed as “…/page/7#post-120964″ – as if the post was located on the previous page. Also, if you go down to the bottom of this page, you will see that the last posts are formed as “…/page/9#post-121104″. – that is leading to the next page.
Of course, I experimented with the settings of the paginator, changed the number of displayed posts on the page. In fact, it didn’t change anything, only the posts with the same error were changed. At the same time, if you do not change the settings of the paginator, a few posts with an incorrect link managed to “cure” by splitting the topic starting from this post, and then connecting the new topic with the previous one. But the above post didn’t work, so we can’t say that this is the solution.
I suspect that the cause of the problem may be an incorrectly performed forum import operation, but this operation was not easy (all posts were initially converted as replays and I had to manually correct their status in the database, also some posts were duplicated and were in the wrong id-order) and I would like to understand what exactly can cause this problem and how to fix it.
Of course I’ve already tried bbpress’ built-in error correction options, but they didn’t have any effect.
It’s strange that the paginator seems to be working correctly – it gives the right number of posts per page, and links to these pages also work correctly, but the permalinks with anchors are not working correctly.
Maybe someone has encountered a similar problem and can advise in what direction to look for its solution?
Tech info:
WordPress Version: 6.8.1
Current WordPress Theme: Twenty Fourteen/twentyfourteen-garage version 1.2
PHP Version: 7.4.33
MySQL Version: 10.6.22-MariaDB-0ubuntu0.22.04.1
bbPress (2.6.14)
bbP private groups (3.9.7)
bbp style pack (6.3.9)the last two plugins do not affect the problem, when you turn them off it remains
- You must be logged in to reply to this topic.