getting 404’s after paging profile list via ajax
-
wp 4.2.4
bp 2.3.2.1I 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
- The topic ‘getting 404’s after paging profile list via ajax’ is closed to new replies.