Forums / Install & configuration / http_host does not exist

http_host does not exist

Author Message

David Jones

Friday 01 December 2006 6:18:40 am

On running a cron job I get the following error in the debug.

Error: (eZSys::serverVariable)
Server variable 'HTTP_HOST' does not exist

I have installed ezp via the windows exe file.

I'm guessing that this is an Apache config issue.
Can anybody shed any light on this.

Many thanks

Claudia Kosny

Sunday 03 December 2006 2:10:54 pm

Hi David

I don't know that much about cronjobs so I might be wrong here, but isn't that the same as running php from a command line? In this case it is quite natural that $_SERVER['HTTP_HOST'] is not set as you do not have any http connection with a server.
The http_host is some information that is sent in the request headers by the client so unless a script sends such a request, all the server variables starting with http should not be set.

In case you are talking about the send_newsletter cronjob - at least on my local server I get the same error message about the missing http_host variable. But as it still sends the newsletter out (using my local test mailserver, so this might not work everywhere), I did not worry about this error message to much.

Claudia

David Jones

Monday 04 December 2006 1:22:38 am

Thanks, so the fact my mail is not being sent out is not likely to be related.

Can I ask, what are you mail settings?
Are you using SMTP or sendmail?

As always, I appreciate your help.

Claudia Kosny

Tuesday 05 December 2006 11:01:34 am

Hi David

I use sendmail.

Did you use the 'build_list' cronjob before trying to send a newsletter? Otherwise the send_newsletter cronjob does not find any emails to send the newsletter to.

If it still does not work explain exactly what how you create a newsletter and post the whole output of both the build_list and send_newsletter cronjobs.

EDIT: I have just seen your comments at the newsletter contribution. Unfortunately I cannot help you with any mail settings as I do not have the slightest clue about email servers. Sorry
/EDIT

Good luck

Claudia

Michael Maclean

Wednesday 06 December 2006 5:24:39 am

David, here's a bit of a long shot: are you trying to connect to an Exchange box via SMTP? I seem to remember that some Exchange machines don't like the EHLO command, and will at that point disconnect whatever client is trying to talk. The newsletter system should use HELO instead when sending email. Then again, I could be talking rubbish - I know very little about Exchange, but a reasonable amount about UNIX mail systems.

Edit: I think actually what I'm talking about only happens if you have a Cisco PIX firewall with smtp_protocol_fixup enabled in the way, so that probably doesn't apply in your case. Never mind! Is there any way you could set up Ethereal or some other packet tracing program to see what's going on at the SMTP port? That might give a clearer idea. Or it might be overkill!

eZpedia community documentation project | http://ezpedia.org

eZ debug

Timing: Jan 18 2025 11:27:45
Script start
Timing: Jan 18 2025 11:27:45
Module start 'content'
Timing: Jan 18 2025 11:27:46
Module end 'content'
Timing: Jan 18 2025 11:27:46
Script end

Main resources:

Total runtime1.0447 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 592.3984180.8281
Module start 'content' 0.00800.8908 773.2266564.0781
Module end 'content' 0.89890.1457 1,337.3047338.1250
Script end 1.0446  1,675.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.3988210.0002
Check MTime0.00160.1571210.0001
Mysql Total
Database connection0.00070.071010.0007
Mysqli_queries0.971692.99452020.0048
Looping result0.00300.28412000.0000
Template Total1.010396.720.5052
Template load0.00200.193820.0010
Template processing1.008396.511720.5041
Template load and register function0.00020.020810.0002
states
state_id_array0.00130.122510.0013
state_identifier_array0.00140.134820.0007
Override
Cache load0.00170.1619320.0001
Sytem overhead
Fetch class attribute can translate value0.00210.203640.0005
Fetch class attribute name0.00130.125550.0003
XML
Image XML parsing0.00070.069540.0002
class_abstraction
Instantiating content class attribute0.00000.000950.0000
General
dbfile0.00210.2023210.0001
String conversion0.00000.001030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs