Skip to:
Content
Pages
Categories
Search
Top
Bottom

Awkward Permalink Problem causing 404 Errors

  • @faeronsayn

    Participant

    For some very unknown reason enabling a plugin (Custom Post Type Permalinks) is causing bbPress topics permalinks to break. But it’s actually quite weird.

    With the plugin disabled this is the permalink for the topics

    http://example.net/forums/topic/%post-name%/

    When the plugin is enabled this is the permalink for the topics

    http://example.net/forums/topic/%post-name%/

    That’s right, there is no change in the structure of the permalink or the permalink it self.

    If I were to copy and paste the link when the plugin is turned on, it’ll point me to the post perfectly fine.

    The problem is when I try to click on the topic through the forum navigation, it returns a 404 page not found error. The reason is because of the following.

    Through the forum it’s trying to point to the following url for the topic …

    http://example.net/forums/topic/forum-category/forum-sub1/%post-name%/

    For some awkward reason when the plugin is turned on, it doesn’t actually modify the permalinks of the topics at all. I don’t even know what it does, but it causes bbpress to go beserk and some how come up with that link. When I click on that link when the plugin is turned on it comes up with a 404 error.

    When the plugin is turned off, the navigation through the forums provide the following permalink to the topic

    http://example.net/forums/topic/%post-name%/

    Exactly the same as it’s actual permalink so no 404 errors are generated.

    If anyone can help me debug this annoying and awkward issue it would be great.

    Once again, it’s the link for the topic in the forum that’s being changed for some reason when the plugin is active.

    I need this plugin for other custom post types.

Viewing 9 replies - 1 through 9 (of 9 total)
  • @faeronsayn

    Participant

    Any help would be appreciated.

    @faeronsayn

    Participant

    @netweb you seem to be knowledgeable in this subject. Could you please take a look at this problem?

    @netweb

    Keymaster

    If you are going to use a plugin to hack the permalinks of bbPress, this is ‘that’ plugins support issue not a bbPress issue as permalinks in bbPress work as expected per design.

    You would be far better of asking in the ‘Custom Post Type Permalinks’ support forum and even read some of those topics for similar issues.

    https://wordpress.org/support/plugin/custom-post-type-permalinks

    @faeronsayn

    Participant

    I understand that, but I didn’t use the plugin to modify any BBPress related permalinks. The simple turning on of the plugin caused the topic links in the forums to be broken. The permalinks as stated in my original post didn’t change at all.

    @netweb

    Keymaster

    bbPress uses the permalink settings (/wp-admin/options-general.php?page=bbpress) to determine if we are loading something that is bbPress, if it is bbPress we are loading then we need to load the appropriate bbPress template.

    So if the CPT permalink plugin you are using is hijacking WordPress CPT’s before bbPress can detect its own CPT permalink to load a bbPress template then no bbPress template will be loaded.

    @faeronsayn

    Participant

    @netweb thank you for that answer it should help debug. But what I don’t understand is that even if the BBpress template is not loading, why are the thread links in the forum being changed to something pretty awkward. Nothing of that sort is defined in the CPT plugin …

    The forum tries to point to this link for each thread

    http://example.net/forums/topic/forum-category/forum-sub1/%post-name%/

    If the bbpress templates are not loading, why are the links being defaulted to that exactly?

    @faeronsayn

    Participant

    Anyone else having a similar problem to mine?

    @faeronsayn

    Participant

    Any possible solutions to this? I’ve posted it on the author’s support forum without much response.

    @theeponymus

    Participant

    same probleme here … not resolve. And i do not understand what’s going wrong.

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