• Hi,

    When using WP CLI commands such as wp option get wp_template_root, the plugin return notices which prevent to get expected data from external scripts:

    admin@xxx:/srv/www/xxx.net/current$ wp option get wp_template_root
    PHP Notice:  Undefined index: HTTP_HOST in /srv/www/xxx.net/current/web/app/plugins/wp-super-cache/wp-cache-base.php on line 6
    Notice: Undefined index: HTTP_HOST in /srv/www/xxx.net/current/web/app/plugins/wp-super-cache/wp-cache-base.php on line 6

    Can you fix it?

    Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘PHP Warning with WP CLI’ is closed to new replies.