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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   2078 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, 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

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:http://www.silverstripe.org/general-questions/show/16369

Also, here might be some possible explanation of this warning:http://bugs.typo3.org/view.php?id=16960
(^^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