[buddypress-trac] [BuddyPress Trac] #6369: _bp_strip_spans_from_title() causing fatal errors in 2.2.2

buddypress-trac noreply at wordpress.org
Sat Apr 11 10:49:06 UTC 2015


#6369: _bp_strip_spans_from_title() causing fatal errors in 2.2.2
------------------------------+---------------------
 Reporter:  DJPaul            |      Owner:
     Type:  regression        |     Status:  new
 Priority:  omg pizza         |  Milestone:  2.2.2.1
Component:  Component - Core  |    Version:  2.2.2
 Severity:  blocker           |   Keywords:
------------------------------+---------------------
 r9732 (#6107) introduced this fatal error:

  Fatal error: Cannot redeclare _bp_strip_spans_from_title() (previously
 declared in /wp-content/plugins/buddypress/bp-core/bp-core-
 filters.php:552) in /wp-content/plugins/buddypress/bp-core/bp-core-
 filters.php on line 552

 This is because `_bp_strip_spans_from_title` is nested inside
 `bp_modify_page_title`. If a site calls any of WP's title functions more
 than once (for example, `wp_title` or `get_the_title`), it triggers the
 fatal error. You can reproduce this easily by adding `<?php wp_title();
 ?>` into the bottom of the active theme's `footer.php`, for example.

 Thanks to @danbp for raising awareness in Slack, via @imath. First
 reported on the forums:

 * https://buddypress.org/support/topic/fatal-error-after-update/
 * https://buddypress.org/support/topic/groups-function-not-working/

 Relevant Slack logs of the investigation/discussion are at
 https://wordpress.slack.com/archives/buddypress/p1428739967001905

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6369>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list