[buddypress-trac] [BuddyPress] #4191: PHP 5.4: Warning after BuddyPress activation
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Mon May 7 08:55:09 UTC 2012
#4191: PHP 5.4: Warning after BuddyPress activation
-------------------------+-------------------------------------------------
Reporter: leemour | Owner:
Type: defect | Status: new
(bug) | Milestone: Awaiting Review
Priority: normal | Version: 1.5.5
Component: Core | Keywords: needs-patch needs-testing reporter-
Severity: normal | feedback
-------------------------+-------------------------------------------------
When using BuddyPress with PHP 5.4 (Win), I get several warnings like
this:
'''Warning: Creating default object from empty value in
D:\Sites\nesiditsa\www\wordpress\wp-content\plugins\buddypress\bp-core\bp-
core-catchuri.php on line 37'''
I managed to remove them by adding the following code before each line
that causes warning:
{{{
if (!is_object($bbp->OBJECT)) {
$bbp->OBJECT = new stdClass;
}
}}}
where OBJECT is the object causing warning.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4191>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list