Skip to:
Content

BuddyPress.org

Opened 13 months ago

Last modified 10 months ago

#9302 new defect (bug)

primary navigation in site editor fails to allow creation of a group

Reported by: quandt Owned by:
Priority: normal Milestone: Up Next
Component: Groups Version: 14.3.2
Severity: critical Keywords:
Cc:

Description

If in nouveau, you use the site editor to create a 'primary navigation' item and then when in 'groups' wish to create a new group, you get an error (on the second step of creating the group).

Fatal error: Uncaught Error: Call to a member function get_secondary() on null in /var/www/wordpress/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/template-tags.php:802 Stack trace: #0 /var/www/wordpress/wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/groups/single/parts/item-nav.php(12): bp_nouveau_has_nav() #1 /var/www/wordpress/wp-includes/template.php(812): require('/var/www/wordpr...') #2 /var/www/wordpress/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(225): load_template() #3 /var/www/wordpress/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(67): bp_locate_template() #4 /var/www/wordpress/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/functions.php(1612): bp_get_template_part() #5 /var/www/wordpress/wp-includes/class-wp-block.php(586): bp_nouveau_render_primary_nav_block() #6 /var/www/wordpress/wp-includes/class-wp-block.php(566): WP_Block->render() #7 /var/www/wordpress/wp-includes/class-wp-block.php(566): WP_Block->render() #8 in /var/www/wordpress/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/template-tags.php on line 802

wordpress version: 6.8.2
buddypress: 14.3.4
nouveau template pack

How to create:
From within the wordpress dashboard, Site editor, add 'primary navigation' to your template (I chose two column in which the primary navigation element is the only item in the first colunm)

Go to the buddypress frontend, navigate to groups and create a group.
Step 1 page: enter the title and details (no problems), upon clicking next you get the above failure

This was tested in a sandboxed (docker) standalone nothing else other than wordpress and buddypress... no other plugins installed type of environment, should be easy to duplicate.

Change History (2)

#1 @quandt
13 months ago

BTW if switch back to BP legacy, obviously the 'primary navigation' becomes useless, however, normal groups creation works just as advertised, ie no errors, its only when using the nouveau option settings and trying to create a group based on the 'primary navigation' item added via template|site editor | page template or other page type edit.

Another twist to this is if you stay in BP nouveau, and remove the 'primary navigation' so that the old method of groups/create groups is once again available, creating a groups works just fine, its just when the BP nouveau template is used in conjunction with using a 'primary navigation' override.

Version 1, edited 13 months ago by quandt (previous) (next) (diff)

#2 @espellcaste
10 months ago

  • Milestone Awaiting Review → Up Next
Note: See TracTickets for help on using tickets.