• Resolved Stelios

    (@djstelios)


    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)
  • Hi @djstelios

    We have successfully addressed the problem and released a new version. Kindly proceed to upgrade to the most recent version.

    If you have any further questions or need assistance, please let me know.

    Best regards,
    Al Amin

Viewing 1 replies (of 1 total)

The topic ‘Problem with Cron running from CLI’ is closed to new replies.