Opened 14 years ago
Closed 10 years ago
#4267 closed defect (bug) (worksforme)
PHP 5.4 warning with BP 1.6 - Creating default object from empty value
| Reported by: | enderandrew | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | 1.5.5 |
| Severity: | minor | Keywords: | needs-refresh has-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
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.