Boost appears to function correctly and pages appear to cache OK, however the error log is being filled up with dozens of these errors every minute.

DetailsType	php
Date	Sunday, August 3, 2008 - 06:31
User	Anonymous
Location	http:///
Referrer	
Message	parse_url(http://) [<a href='function.parse-url'>function.parse-url</a>]: Unable to parse URL in /data/sites/wikijoba/modules/boost/boost.api.inc on line 165.
Severity	error
Hostname	::1

I have disabled Boost in the meantime. If anybody can shed some light on the source or solution of this problem, I would be most grateful!

Thanks,
Chris.

Comments

chrism2671’s picture

In response to my original post, the value of $base_url is "http://www.wikijob.co.uk" however it seems that for some reason, this is sometimes 'http:///', which causes an error. This suggests the problem is outside boost and somewhere else. I have hack-fixed the problem by inserting the line

$base_url="http://www.wikijob.co.uk";

just before line 165, which temporarily solves the problem.

willdashwood’s picture

I get the same error when the cron job runs.

parse_url(http://) [<a href='function.parse-url'>function.parse-url</a>]: Unable to parse URL in /home/example/public_html/sites/all/modules/boost/boost.api.inc on line 165.
kenorb’s picture

It should not rely that global $base_url is set.
Can be empty if run via cron.
There should be some additional condition, if it's not set, set from HTTP_HOST

mikeytown2’s picture

Status: Active » Closed (fixed)

Closing all 5.x issues; will only reevaluate if someone steps up #454652: Looking for a co-maintainer - 5.x

Reason is 6.x has 10x as many users as 5.x; also last 5.x dev was over a year ago. The 5.x issue queue needs to go.