Skip to:
Content

BuddyPress.org

Opened 5 months ago

Last modified 7 weeks ago

#9302 new defect (bug)

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

Reported by: quandt's profile quandt Owned by:
Milestone: Up Next Priority: normal
Severity: critical Version: 14.3.2
Component: Groups 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
5 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.

Last edited 5 months ago by quandt (previous) (diff)

#2 @espellcaste
7 weeks ago

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