#37772 closed defect (bug) (fixed)
Not working "wp_default_styles" on PHP 7.1.0
Reported by: | dandare | Owned by: | |
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | 4.6 |
Component: | Script Loader | Keywords: | |
Focuses: | Cc: |
Description
Hello.
I have error when installing wordpress:
"Warning: Parameter 1 to wp_default_styles() expected to be a reference, value given in /var/www/sitename.com/wp-includes/plugin.php on line 600"
Fix:
/wp-includes/class.wp-styles.php (line 127)
do_action_ref_array( 'wp_default_styles', array(&$this) );
change
do_action( 'wp_default_styles', array(&$this));
Change History (12)
#5
@
8 years ago
- Milestone changed from 4.7 to 4.6.1
- Severity changed from normal to major
I'm bumping this to 4.6.1 because it looks like PHP 7.1 is due to be released before WordPress 4.7.
#6
@
8 years ago
Related: #37295 PHP 7.1.0: Tests_Query_IsTerm::test_cat_uncat_action_tax() is failing
#7
@
8 years ago
- Milestone changed from 4.6.1 to 4.7
- Severity changed from major to normal
I don't think adding in support for 7.1 makes sense for a point release. Especially with thecurrent state of unit tests on 7.1. Assuming PHP 7.1 is released on time ( and there isn't even a hard release date scheduled), we will be in RC for 4.7, which I'm fine with targeting for 7.1 support. This seems to be supported by #37625.
#9
@
8 years ago
- Keywords needs-patch removed
- Resolution set to fixed
- Status changed from new to closed
Fixed in [38571].
#11
@
8 years ago
WP 7 working fine on PHP 7.1.0 RC2 for me
tip: just simply following the instruction "https://codex.wordpress.org/WordPress_Backups" and "https://codex.wordpress.org/Updating_WordPress"
then re-activate one by one plug in that you have. Deactivate the one which given an error
have fun with new generation of innovative WP.
Similar issue #37766