Undefined module: HTTP_HOST

Author Message

paul bolger

Monday 23 February 2009 12:44:43 pm

I'm getting an odd, intermittent, error on both the home page of my dev site and the home page of my admin site - but not on any other pages.

Module not found
The requested module HTTP_HOST=dev.example.com could not be found.

and the relevant lines from the debug are:

Error: index	Feb 24 2009 07:04:40
Undefined module: HTTP_HOST=dev.example.com
Error: error/view.php	Feb 24 2009 07:04:40
Error ocurred using URI: /index.php?HTTP_HOST=dev.example.com

I'm running the site in hosts mode, with the main (dev) site on the dev subdomain (we intend to switch to the main domain on going live) and the admin site on the admin subdomain.

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=site
AvailableSiteAccessList[]=site_admin
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=dev.example.com;site
HostMatchMapItems[]=admin.example.com;site_admin

The weirdest thing is that requests to the two problematic pages are fine about 80% of the time, and produce these errors for the other 20%.
I've had a look at the Apache logs, but there is no indication that there is a problem there.

Finally: the source for the error page has the following:

<LINK rel="Alternate" href="http://dev.example.com/index.php?/layout/set/print/HTTP_HOST=dev.example.com" media="print" title="Printable version">

Any help would be much appreciated!

Paul Bolger

paul bolger

Thursday 26 February 2009 2:57:21 am

I tried the solutions mentioned here, but it's still doing it.

http://issues.ez.no/IssueView.php?Id=13286&activeItem=5

Paul Bolger

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.