Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Activity – ReferenceError: postboxes not defined

@hnla

Participant

I’m slightly surprised a reference error causes this issue, one tends to see plenty of them from many files including some from WP JS.

We could run a check on the variable to see if it’s defined before parsing that line, I’ll open a trac ticket with a patch, but that – if accepted – won’t be in core for a month or so.

You could edit your core file, but I stress this is a core modification and will be overwritten in updates so if this fix works for you but doesn’t get committed to core you would need to add it again after updates.

locate admin.js in /buddypress/bp-activity/js/ and modify line 170 to resemble this:


// in single Activity Administration screen.

if( typeof postboxes !== 'undefined' ) {

 postboxes.add_postbox_toggles( bp_activity_admin_vars.page );
}

Skip to toolbar