Problem with Cron running from CLI
-
I’m recently switched my WP cron jobs to a system defined cron job that runs using the CLI command wp-cron.php. But the plugin returns error:
Undefined array key "HTTP_HOST" in /xxxxxxxxxxxxx/wp-content/plugins/info-cards/info-cards.php on line 39
I temporary fixed it, fast, with something like:if (isset($_SERVER['HTTP_HOST'])) {
$host = $_SERVER['HTTP_HOST'];
} else {
$host = 'mydomain';
}
but on the next plugin update it will overwritten. I’ll really appreciate if you take a look at the issue!
Thanks in advance
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Problem with Cron running from CLI’ is closed to new replies.