After upgrading from Drupal 5.12 -> 5.14, my cron stops working: all cron tasks in my modules are not called. If I run the cron manually (click .../admin/logs/status/run-cron), the cron worked fine. However the cron does not work with hosting cron. Error message sent from hosting server (via email) after running cron:
Status: 400 Bad Request
X-Powered-By: PHP/5.2.6
Content-type: text/html
My server name (uname -a): Linux host290.hostmonster.com 2.6.27-6_1.intel.BHsmp #1 SMP Thu Nov 13 15:27:29 MST 2008 x86_64 x86_64 x86_64 GNU/Linux
My PHP version:
PHP 5.2.6 (cgi-fcgi) (built: Nov 29 2008 22:35:16)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
The same situation happens to Drupal 6.8 after upgrading from 6.6/6.7.
Comments
Comment #1
thekevinday CreditAttribution: thekevinday commentedThis may be caused by the following issue: http://drupal.org/node/346285
Try the patch there and see if it works.
This is by no means a guarantee; the symptoms simply are similar and they both coincide with the same version upgrades.
Comment #2
nhchau CreditAttribution: nhchau commentedThank you very much for help. I applied the patch and it works on my two sites, one uses Drupal 5.14 and the other uses Drupal 6.8.
Comment #3
Gábor HojtsyMarked duplicate of #346285: Drupal 5.14 & Drupal 6.8 will not load on clients that do not transmit HTTP_HOST.