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.

General Questions /

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

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

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


Reply


4 Posts   1035 Views

Avatar
MULTIDOTS

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

Avatar
swaiba

Forum Moderator, 1799 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

Avatar
Invader_Zim

Community Member, 141 Posts

2 August 2011 at 10:33am

Hey there,

Joril seems to have some kind of solution in this thread:[url]http://www.silverstripe.org/general-questions/show/16369[/url]

Also, here might be some possible explanation of this warning:[url]http://bugs.typo3.org/view.php?id=16960[/url]
(^^Yapp, I know It's TYPO3 related, but maybe it helps)

Cheers

Avatar
slith

Community Member, 7 Posts

23 August 2011 at 10:49am

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