Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Warning: Director::protocolAndHost() lacks sufficient information - HTTP_HOST not set

Go to End

4 Posts   1615 Views


Community Member, 16 Posts

2 August 2011 at 3:03am

Hello everyone!

Our company developing a site with SilverStripe 2.4.5 and working fine but we are facing one problem. When we viewing the pages of website, got below warning. But we don't know from where it will come.

Below is the warning that we are getting :
Warning: Director::protocolAndHost() lacks sufficient information - HTTP_HOST not set.

Please can anybody have solution for this? can we disable this warning?

Thanks in advance...


Forum Moderator, 1899 Posts

2 August 2011 at 9:26am

I'd contact my hosting support because php superglobal not set correctly sounds like a php ini or host issue


Community Member, 141 Posts

2 August 2011 at 10:33am

Hey there,

Joril seems to have some kind of solution in this thread:

Also, here might be some possible explanation of this warning:
(^^Yapp, I know It's TYPO3 related, but maybe it helps)



Community Member, 7 Posts

23 August 2011 at 10:49am

make sure you have register_globals = On set in your php.ini