Undefined index: HTTP_HOST; wp-config.php wrong for wp-cli
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wordpress (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
$ sudo wp option update home "http://
PHP Notice: Undefined index: HTTP_HOST in phar://
Neither <b>/etc/
~~~~~~~
The following code should be added to /usr/share/
if ( defined( 'WP_CLI' ) && WP_CLI && ! isset( if ( defined( 'WP_CLI' ) && WP_CLI && ! isset( $_SERVER[
$_SERVER[
}
root@yellow:
Description: Ubuntu 16.04.3 LTS
Release: 16.04
root@yellow:
wordpress:
Installed: 4.4.2+dfsg-1ubuntu1
Candidate: 4.4.2+dfsg-1ubuntu1
Version table:
*** 4.4.2+dfsg-1ubuntu1 500
500 http://
500 http://
100 /var/lib/
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: wordpress 4.4.2+dfsg-1ubuntu1
ProcVersionSign
Uname: Linux 4.4.0-98-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Nov 6 13:24:11 2017
InstallationDate: Installed on 2017-10-13 (24 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
PackageArchitec
SourcePackage: wordpress
UpgradeStatus: No upgrade log present (probably fresh install)