Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Writing a new plugin – get 404 not found when accessing screen

Well, still no luck. I added this to my code:

`function bp_gdatree_setup_root_component() {
/* Register ‘groupsdir’ as a root component */
bp_core_add_root_component( BP_GDATREE_SLUG );
}
add_action( ‘wp’, ‘bp_gdatree_setup_root_component’ );
add_action( ‘admin_menu’, ‘bp_gdatree_setup_root_component’ );`

Again, I used an echo statement to verify that this function was in fact getting triggered. Despite this, I still get a 404 error when I visit /groupsdir.

Just occurred to me to try accessing the page from /members//groupsdir – and at least that works!

So any idea of what else to try?

Skip to toolbar