Skip to:
Content
Pages
Categories
Search
Top
Bottom

is_404() triggered on every BuddyPress page


  • doubleF
    Participant

    @doublef

    Hello,

    We are trying to figure out random 404 pages appearing for some of our customers.

    The pattern is always the same:
    – BuddyPress page: page displayed correctly
    – Next page (not BP): throws a 404

    After some research:
    – It’s not a memory issue
    – Not a .htaccess issue nor permalinks

    If we hook on template_redirect and log is_404() it’s triggered on all BuddyPress pages even though the page is correctly displayed.

    Does any one has an idea or could bring any detail about this?

    Many thanks

    François

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

  • doubleF
    Participant

    @doublef

    Update 1:
    – Whenever theme/buddypress.php is loaded, a template redirect hook is fired for theme/404.php.
    – The next page returns a 404, except if it’s a single-*.php.

    Update 2:
    – Most likely, bp_do_404() is triggered.

    I do not what could cause impact that.

    Many thanks


    doubleF
    Participant

    @doublef

    Dear BuddyPress devs,

    Any idea?


    Henry Wright
    Moderator

    @henrywright

    Hi @doublef

    Take a look at ticket #6527, specifically comment #4. Does this help explain what’s happening?


    doubleF
    Participant

    @doublef

    Hello @henrywright

    Thanks for taking the time to reply.

    Yes, it does, that indeed make sense with the way BuddyPress is working.

    We figured out that it’s also linked to an AJAX call we’re making on the page load.

    I need to understand how / why BuddyPress router conflicts with that Ajax Call and create a 404 on the next page. I continue digging.

    Thanks a lot!


    dmcsupport
    Participant

    @dmcsupport

    I am getting same 404 page for the next page after buddypress page. How do I solve this issue? Please advise.

    Thank you.

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