Skip to:
Content
Pages
Categories
Search
Top
Bottom

getting 404’s after paging profile list via ajax

  • @pbearne

    Participant

    wp 4.2.4
    bp 2.3.2.1

    I am seeing problems on a when BuddyPress is active we keep getting pages that start to return as 404’s

    After a lot of debugging we can reproduce in demand

    You need more than 20 users so the profile page is pages

    To break the site navigate to the profile and page to another page/set of users and the page does an ajax call to load the view

    now try to a normal wp page and it will 404

    if you turn off JS / ajax so that pages reloads with query string ?upage=2 it does n’t break

    you can fix the site by loading the permalinks in the admin

    it seems that the permalinks change

    Looking at the permalinks they change when it is broken

    Working version ( the part of the array that changes )

     ["([0-9]{4})/?$"]=>
      string(26) "index.php?year=$matches[1]"
      [".?.+?/attachment/([^/]+)/?$"]=>
      string(32) "index.php?attachment=$matches[1]"
      [".?.+?/attachment/([^/]+)/trackback/?$"]=>
      string(37) "index.php?attachment=$matches[1]&tb=1"
      [".?.+?/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(49) "index.php?attachment=$matches[1]&feed=$matches[2]"
      [".?.+?/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(49) "index.php?attachment=$matches[1]&feed=$matches[2]"
      [".?.+?/attachment/([^/]+)/comment-page-([0-9]{1,})/?$"]=>
      string(50) "index.php?attachment=$matches[1]&cpage=$matches[2]"
      ["(.?.+?)/trackback/?$"]=>
      string(35) "index.php?pagename=$matches[1]&tb=1"
      ["(.?.+?)/feed/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(47) "index.php?pagename=$matches[1]&feed=$matches[2]"
      ["(.?.+?)/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(47) "index.php?pagename=$matches[1]&feed=$matches[2]"
      ["(.?.+?)/page/?([0-9]{1,})/?$"]=>
      string(48) "index.php?pagename=$matches[1]&paged=$matches[2]"
      ["(.?.+?)/comment-page-([0-9]{1,})/?$"]=>
      string(48) "index.php?pagename=$matches[1]&cpage=$matches[2]"
      ["(.?.+?)(/[0-9]+)?/?$"]=>
      string(47) "index.php?pagename=$matches[1]&page=$matches[2]"
      ["[^/]+/attachment/([^/]+)/?$"]=>
      string(32) "index.php?attachment=$matches[1]"
      ["[^/]+/attachment/([^/]+)/trackback/?$"]=>
      string(37) "index.php?attachment=$matches[1]&tb=1"
      ["[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(49) "index.php?attachment=$matches[1]&feed=$matches[2]"
      ["[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(49) "index.php?attachment=$matches[1]&feed=$matches[2]"
      ["[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$"]=>
      string(50) "index.php?attachment=$matches[1]&cpage=$matches[2]"
      ["([^/]+)/trackback/?$"]=>
      string(31) "index.php?name=$matches[1]&tb=1"
      ["([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(43) "index.php?name=$matches[1]&feed=$matches[2]"
      ["([^/]+)/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(43) "index.php?name=$matches[1]&feed=$matches[2]"
      ["([^/]+)/page/?([0-9]{1,})/?$"]=>
      string(44) "index.php?name=$matches[1]&paged=$matches[2]"
      ["([^/]+)/comment-page-([0-9]{1,})/?$"]=>
      string(44) "index.php?name=$matches[1]&cpage=$matches[2]"
      ["([^/]+)(/[0-9]+)?/?$"]=>
      string(43) "index.php?name=$matches[1]&page=$matches[2]"
      ["[^/]+/([^/]+)/?$"]=>
      string(32) "index.php?attachment=$matches[1]"
      ["[^/]+/([^/]+)/trackback/?$"]=>
      string(37) "index.php?attachment=$matches[1]&tb=1"
      ["[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(49) "index.php?attachment=$matches[1]&feed=$matches[2]"
      ["[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(49) "index.php?attachment=$matches[1]&feed=$matches[2]"
      ["[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$"]=>
      string(50) "index.php?attachment=$matches[1]&cpage=$matches[2]"
    
    

    Broken. the content block after the first rule is now at the bottom (added space to show where rules where moved)

    
    
     ["([0-9]{4})/?$"]=>
      string(26) "index.php?year=$matches[1]"
    
    
    
    
    
    
    
      ["[^/]+/attachment/([^/]+)/?$"]=>
      string(32) "index.php?attachment=$matches[1]"
      ["[^/]+/attachment/([^/]+)/trackback/?$"]=>
      string(37) "index.php?attachment=$matches[1]&tb=1"
      ["[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(49) "index.php?attachment=$matches[1]&feed=$matches[2]"
      ["[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(49) "index.php?attachment=$matches[1]&feed=$matches[2]"
      ["[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$"]=>
      string(50) "index.php?attachment=$matches[1]&cpage=$matches[2]"
      ["([^/]+)/trackback/?$"]=>
      string(31) "index.php?name=$matches[1]&tb=1"
      ["([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(43) "index.php?name=$matches[1]&feed=$matches[2]"
      ["([^/]+)/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(43) "index.php?name=$matches[1]&feed=$matches[2]"
      ["([^/]+)/page/?([0-9]{1,})/?$"]=>
      string(44) "index.php?name=$matches[1]&paged=$matches[2]"
      ["([^/]+)/comment-page-([0-9]{1,})/?$"]=>
      string(44) "index.php?name=$matches[1]&cpage=$matches[2]"
      ["([^/]+)(/[0-9]+)?/?$"]=>
      string(43) "index.php?name=$matches[1]&page=$matches[2]"
      ["[^/]+/([^/]+)/?$"]=>
      string(32) "index.php?attachment=$matches[1]"
      ["[^/]+/([^/]+)/trackback/?$"]=>
      string(37) "index.php?attachment=$matches[1]&tb=1"
      ["[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(49) "index.php?attachment=$matches[1]&feed=$matches[2]"
      ["[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(49) "index.php?attachment=$matches[1]&feed=$matches[2]"
      ["[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$"]=>
      string(50) "index.php?attachment=$matches[1]&cpage=$matches[2]"
      [".?.+?/attachment/([^/]+)/?$"]=>
      string(32) "index.php?attachment=$matches[1]"
      [".?.+?/attachment/([^/]+)/trackback/?$"]=>
      string(37) "index.php?attachment=$matches[1]&tb=1"
      [".?.+?/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(49) "index.php?attachment=$matches[1]&feed=$matches[2]"
      [".?.+?/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(49) "index.php?attachment=$matches[1]&feed=$matches[2]"
      [".?.+?/attachment/([^/]+)/comment-page-([0-9]{1,})/?$"]=>
      string(50) "index.php?attachment=$matches[1]&cpage=$matches[2]"
      ["(.?.+?)/trackback/?$"]=>
      string(35) "index.php?pagename=$matches[1]&tb=1"
      ["(.?.+?)/feed/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(47) "index.php?pagename=$matches[1]&feed=$matches[2]"
      ["(.?.+?)/(feed|rdf|rss|rss2|atom)/?$"]=>
      string(47) "index.php?pagename=$matches[1]&feed=$matches[2]"
      ["(.?.+?)/page/?([0-9]{1,})/?$"]=>
      string(48) "index.php?pagename=$matches[1]&paged=$matches[2]"
      ["(.?.+?)/comment-page-([0-9]{1,})/?$"]=>
      string(48) "index.php?pagename=$matches[1]&cpage=$matches[2]"
      ["(.?.+?)(/[0-9]+)?/?$"]=>
      string(47) "index.php?pagename=$matches[1]&page=$matches[2]"
    }
    

    why is an ajax call changing the permalinks

    Yes we do have lot of other plugins running so it could well be other code

    Any Thoughts on fixing / debugging?

    Paul

Viewing 4 replies - 1 through 4 (of 4 total)
  • @shanebp

    Moderator

    The recommended method is to turn off other plugins and / or switch to a standard theme like WP 2015.
    Due to permalinks aspect, I suspect another plugin.

    If that doesn’t narrow it down, you can submit a bug ticket here.
    But you should provide better instructions on how to duplicate the issue.
    This is unclear: “To break the site navigate to the profile and page to another page/set of users and the page does an ajax call to load the view”

    @pbearne

    Participant

    Thanks, I am doing that

    Sorry about the instructions

    I should said it is the Members page that you need to the ajax paging on

    Paul

    @pbearne

    Participant

    I was able to solve this it turned out the LearnDask was running flush_rewrite_rules for ajax calls 🙂

    Thanks for the freedback

    @pbearne

    Participant

    this ticket was the clue i needed
    https://buddypress.trac.wordpress.org/ticket/6448

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘getting 404’s after paging profile list via ajax’ is closed to new replies.
Skip to toolbar