WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 22 months ago

#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)

#1 @westonruter
3 years ago

  • Component changed from Customize to Script Loader

#2 @SergeyBiryukov
3 years ago

  • Milestone changed from Awaiting Review to 4.7

#3 @pothi
3 years ago

Similar issue #37766

#4 @johnbillion
3 years ago

#37766 was marked as a duplicate.

#5 @johnbillion
3 years ago

  • Milestone changed from 4.7 to 4.6.1
  • Severity changed from normal to major
Last edited 3 years ago by johnbillion (previous) (diff)

#6 @netweb
3 years ago

Related: #37295 PHP 7.1.0: Tests_Query_IsTerm::test_cat_uncat_action_tax() is failing

#7 @jorbin
3 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.

#8 @jorbin
3 years ago

  • Keywords needs-patch added

#9 @ocean90
3 years ago

  • Keywords needs-patch removed
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [38571].

#10 @ocean90
3 years ago

#38144 was marked as a duplicate.

#11 @hoang2016
3 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.

#12 @ocean90
22 months ago

#42884 was marked as a duplicate.

Note: See TracTickets for help on using tickets.