Closed (won't fix)
Project:
Domain
Version:
6.x-1.0-rc4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2008 at 11:53 UTC
Updated:
28 Jan 2013 at 14:37 UTC
settings..have set cron to run every 5mins using the hosts cpanel.
The error is
Type php
Date Wednesday, July 23, 2008 - 15:15
User Anonymous
Location http://?cron.php
Referrer
Message parse_url(http://) [function.parse-url]: Unable to parse URL in /home/..../public_html/sites/all/modules/domain/domain.module on line 590.
Severity error
and its shown every time the cron has been run.Didnt notice it earlier because i never checked Recent log entries...So i dont know if it has been happening from the beginning...
Comments
Comment #1
agentrickardDoes it actually say 'Location http://?cron.php' or did you edit that string?
This looks like a hosting error. $base_url is being passed blank from http://api.drupal.org/api/function/conf_init/6.
Comment #2
nirvanajyothi commentedyes..it does ...this is the latest report
Type php
Date Wednesday, July 23, 2008 - 21:50
User Anonymous
Location http://?cron.php
Referrer
Message parse_url(http://) [function.parse-url]: Unable to parse URL in /home/..../public_html/sites/all/modules/domain/domain.module on line 590.
Severity error
Hostname
Operations
is there anything i should try to do now?
Comment #3
agentrickardI don't think this is a serious error. The cause would depend on what version of PHP your host is running.
There are ways we could patch around this, but I do not know if they would work and have little way to test them.
You should probably notify the host of the error and see if they can figure out why the value of the $_SERVER['HTTP_HOST'] is not being returned.
Comment #4
nirvanajyothi commentedok.
the host is hostgator and the features as in my sites status report is...
MySQL database 5.0.51a
PHP 5.2.5
Web server Apache/1.3.41 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
Comment #5
agentrickardRight. I cannot really do anything with that information. I am using PHP 5.2.5 and do not have this error.
You might ask the host company specifically about $_SERVER['HTTP_HOST']
Comment #6
nirvanajyothi commentedok.But as it is not a serious error i will leave that for later.
Comment #7
neurovation.kiwi commentedJust ran into the same error - the problem is that the cron job is configured wrong.
don't call the php script via a php-interpreter (something like "php /usr/.../cron.php") but do it via wget:
wget -O - -q -t 1 http://example.com/cron.php
cu
kiwi
Comment #8
naga_karthick commentedHI,
when run cron this error was entry in recent error logs, Please explain why this happen
Invalid argument supplied for foreach() in /var/www/vhosts/xxxxx.com/httpdocs/modules/taxonomy/taxonomy.module on line 1293.
in recent log entries
Comment #9
naga_karthick commentedHI,
i got php error on recent log entries, how to rectify this error, the error details are:
Details
Type php
Date Monday, January 28, 2013 - 18:28
User USER1
Location http://xxxxx.com/admin/reports/status/run-cron
Referrer http://xxxxx.com/admin/reports/dblog
Message Invalid argument supplied for foreach() in /var/www/vhosts/xxxxx.com/httpdocs/modules/taxonomy/taxonomy.module on line 1293.
Severity error
Hostname IP Address
Operations
Please advice me about this error and how to rectify this error.
Thanks in advance.