[wp-trac] [WordPress Trac] #45683: WP 5.0.1 Throwing Warning on site when running PHP 7.1
WordPress Trac
noreply at wordpress.org
Tue Dec 18 00:31:08 UTC 2018
#45683: WP 5.0.1 Throwing Warning on site when running PHP 7.1
----------------------------+------------------------------
Reporter: Wendy__D | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version: 5.0.1
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------------------
Changes (by SergeyBiryukov):
* component: General => Bootstrap/Load
Comment:
Hi there, welcome to WordPress Trac! Thanks for the report.
The warning comes from this line in
[https://developer.wordpress.org/reference/functions/wp_fix_server_vars/
wp_fix_server_vars()]:
{{{
$_SERVER = array_merge( $default_server_values, $_SERVER );
}}}
The line was added 9 years ago in [13812] for WordPress 3.0, and has not
changed since then.
A quick search shows a [https://mrwweb.com/solving-array_merge-argument-2
-on-load-php-line-63-on-siteground/ blog post on the issue] and a few
posts on [https://wordpress.org/search/"wp-
includes%2Fload.php+on+line+63"/ support forums]. Some of the reports
mention SiteGround hosting, and that renaming or removing the `php.ini`
file in the site's root directory fixes the issue.
That doesn't provide enough details yet, but apparently the issue happens
if some security settings in
particular PHP configurations override or restrict access to the
`$_SERVER` global variable.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45683#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list