Title: Problem with Cron running from CLI
Last modified: June 2, 2025

---

# Problem with Cron running from CLI

 *  Resolved [Stelios](https://wordpress.org/support/users/djstelios/)
 * (@djstelios)
 * [1 year ago](https://wordpress.org/support/topic/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)

 *  [btechnologies](https://wordpress.org/support/users/btechnologies/)
 * (@btechnologies)
 * [11 months, 4 weeks ago](https://wordpress.org/support/topic/problem-with-cron-running-from-cli/#post-18512795)
 * Hi [@djstelios](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/info-cards/assets/icon-128x128.png?rev=2881794)
 * [Info Cards – Add Text and Media in Card Layouts](https://wordpress.org/plugins/info-cards/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/info-cards/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/info-cards/)
 * [Active Topics](https://wordpress.org/support/plugin/info-cards/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/info-cards/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/info-cards/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [btechnologies](https://wordpress.org/support/users/btechnologies/)
 * Last activity: [11 months, 4 weeks ago](https://wordpress.org/support/topic/problem-with-cron-running-from-cli/#post-18512795)
 * Status: resolved