Hi there,
For the last week I've been getting the following messages with every cron job:
(I can't remember what did I do in the system, exactly the day I got the first message).
Please, I would appreciate any help.
******************************************************
PHP Notice: Undefined index: SCRIPT_NAME in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 327
PHP Notice: Undefined index: SCRIPT_FILENAME in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 327
PHP Notice: Undefined index: SCRIPT_NAME in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 425
PHP Notice: Undefined index: REMOTE_ADDR in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 1317
PHP Notice: Undefined index: REMOTE_ADDR in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 1317
PHP Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/xxxxxxx/public_html/includes/bootstrap.inc:327) in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 1161
PHP Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/xxxxxxx/public_html/includes/bootstrap.inc:327) in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 1161
PHP Notice: Undefined index: REQUEST_METHOD in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 659
PHP Notice: Undefined index: SCRIPT_NAME in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 909
PHP Notice: Undefined index: REMOTE_ADDR in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 1317
PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxx/public_html/includes/bootstrap.inc:327) in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 725
PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxx/public_html/includes/bootstrap.inc:327) in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 726
PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxx/public_html/includes/bootstrap.inc:327) in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 727
PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxx/public_html/includes/bootstrap.inc:327) in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 728
PHP Notice: Undefined index: SCRIPT_NAME in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 909
PHP Notice: Undefined index: REMOTE_ADDR in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 1317
PHP Notice: Undefined index: SCRIPT_NAME in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 909
PHP Notice: Undefined index: REMOTE_ADDR in /home/xxxxxxx/public_html/includes/bootstrap.inc on line 1317
Comments
Use a URL to cron.php with
Use a URL to cron.php with wget or curl
That's it?
That's it?
Yes, you need to wget / curl
Yes, you need to wget / curl or whatever with a URL to cron.php in your crontab.
If you get this in another situation (eg manually accessing cron), please tell us.
I had to configure the
I had to configure the crontab using a path access, as my hosting provider told me. They say that their server won't accept a URL command.
I'll try to use a wget or curl command.
Thank you very much for your help, I appreciate it.
-
(redacted - thought i had a solution to propose with drupal_override_server_variables but not the case.)