Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I'm trying to run cron script from cron task, it generate the error.
PHP Notice: Undefined index: HTTP_HOST in /home/sites/w/public_html/includes/bootstrap.inc on line 280
Status: 400 Bad Request
X-Powered-By: PHP/5.2.5
Content-type: text/html
Why?
My provider doesn't allow me to use wget, fetch, etc. cmd to run cron.php
Comments
Comment #1
jonathan1055 CreditAttribution: jonathan1055 commentedTake a look at #346285: Drupal 5.14 & Drupal 6.8 will not load on clients that do not transmit HTTP_HOST which has an explanation and patches.
Comment #2
Damien Tournoud CreditAttribution: Damien Tournoud commentedComment #3
kenorb CreditAttribution: kenorb commented#357578: Nightmare with setting Drupal cron on HeartInternet and other poor hosting plans -drupal.sh / cron.php