HTTP_HOST in local environment WP-CLI
-
PHP Warning: Undefined array key "HTTP_HOST" in /home/www/htdocs/wp-content/plugins/wp-cloudflare-page-cache/libs/html_cache.class.php on line 79 Warning: Undefined array key "HTTP_HOST" in /home/www/htdocs/wp-content/plugins/wp-cloudflare-page-cache/libs/html_cache.class.php on line 79
Dear Majumder
This issue seems to be prevalent across a host of plugins. From what I’ve read, the fix seems to be relatively straightforward: see here and here. Could we use a solution similar to what’s proposed in the second link
if(!isset($_SERVER['HTTPS'])) return;
?FYI, our own use case for WP CLI is in a setup using Linux’s crontab in place of WP Cron to run cron jobs including those for this plugin.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘HTTP_HOST in local environment WP-CLI’ is closed to new replies.