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

agentrickard’s picture

Does 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.

nirvanajyothi’s picture

yes..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?

agentrickard’s picture

I 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.

nirvanajyothi’s picture

ok.

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

agentrickard’s picture

Status: Active » Closed (won't fix)

Right. 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']

nirvanajyothi’s picture

ok.But as it is not a serious error i will leave that for later.

neurovation.kiwi’s picture

Just 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

naga_karthick’s picture

Title: parse_url -Error shown in 'Recent log entries' page every time cron is rum » Invalid argument supplied for foreach() in /var/www/vhosts/recruitmentnetwork.org/httpdocs/modules/taxonomy/taxonomy.module on l

HI,

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

naga_karthick’s picture

Title: Invalid argument supplied for foreach() in /var/www/vhosts/recruitmentnetwork.org/httpdocs/modules/taxonomy/taxonomy.module on l » Invalid argument supplied for foreach() in /var/www/vhosts/xxxx.xom/httpdocs/modules/taxonomy/taxonomy.module on l

HI,

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.