[wp-trac] [WordPress Trac] #38144: WP 4.6.1 getting an error in PHP 7.1
WordPress Trac
noreply at wordpress.org
Fri Sep 23 14:37:56 UTC 2016
#38144: WP 4.6.1 getting an error in PHP 7.1
-----------------------------+-----------------------------
Reporter: hoang2016 | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.6.1
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
Hello,
I tried installing WP 4.6.1 in with php 7.1.0 the site ran okay, but it
shows 2 warning messages on the top of the font page and 3 messages in
admin page
In the font page are: (2 messages)
{{{
Warning: Parameter 1 to wp_default_scripts() expected to be a reference,
value given in my_web_root\wordpress\wp-includes\plugin.php on line 600
Warning: Parameter 1 to wp_default_styles() expected to be a reference,
value given in my_web_root\wordpress\wp-includes\plugin.php on line 600
}}}
The code line in file like
{{{#!php
call_user_func_array($the_['function'], array_slice($args, 0, (int)
$the_['accepted_args']));
}}}
In the admin site are (3 messages)
{{{
Warning: Parameter 1 to wp_default_scripts() expected to be a reference,
value given in my_web_root\wordpress\wp-includes\plugin.php on line 600
Warning: Parameter 1 to wp_default_styles() expected to be a reference,
value given in my_web_root\wordpress\wp-includes\plugin.php on line 600
Warning: Cannot assign an empty string to a string offset in
my_web_root\wordpress\wp-includes\class.wp-scripts.php on line 447
}}}
The code line of first two messages as the same above
The code line for class.wp-script.php is
{{{#!php
$l10n[$key] = html_entity_decode( (string) $value, ENT_QUOTES, 'UTF-8');
}}}
Any ideas or suggestions how to fix them it would be appreciated
Thank you,
In my wp-config.php; the define (‘WP_DEBUG’, false);
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38144>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list