#38144 closed defect (bug) (duplicate)
WP 4.6.1 getting an error in PHP 7.1
| Reported by: | hoang2016 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
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
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
$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);
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I've also noticed these errors during PHPUnit tests for one of my plugins, when run against PHP 7.1 on Travis CI. I haven't tried to track down the cause though.