Skip to:
Content

Opened 22 months ago

Last modified 22 months ago

#4267 new defect (bug)

PHP 5.4 warning with BP 1.6 - Creating default object from empty value

Reported by: enderandrew Owned by:
Milestone: Future Release Priority: normal
Severity: minor Version: 1.5.5
Component: Core Keywords: needs-patch
Cc:

Description

I'm testing BP 1.6 SVN with WP 3.4 and PHP 5.4 and I'm seeing some PHP warning.

PHP Warning: Creating default object from empty value in /var/www/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-classes.php on line 227
PHP Warning: Creating default object from empty value in /var/www/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-screens.php on line 157
PHP Warning: Creating default object from empty value in /var/www/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-template.php on line 344
PHP Warning: Creating default object from empty value in /var/www/wp-content/plugins/buddypress/bp-members/bp-members-screens.php on line 70

Attachments (1)

4267.diff (3.1 KB) - added by enderandrew 22 months ago.
Here's a patch.

Download all attachments as: .zip

Change History (2)

comment:1 DJPaul22 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

It is because PHP 5.4 has enabled E_STRICT warnings by default. We don't really have a policy of adhering to E_STRICT in BP or WP, but we can get these done.

enderandrew22 months ago

Here's a patch.

Note: See TracTickets for help on using tickets.