You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Error in Initialization Code Undefined index: HTTP_HOST

Summary

Custom Script Error in Initialization Tab

Content

Hi,

I tried calling custom script file from custom report using Custom Scripts Under Level Tab. I used the following code under Initialize tab 

Initialize Tab

putenv('TEMPORARY_RNW_CONF_DIRECTORY');
require_once(get_cfg_var('doc_root').'/custom/abc.php');

I scheduled report to run this PHP script frequently but failed to execute. However I got this message from Info Log 

 File: /cgi-bin/jcibsna.cfg/scripts/include/analytics_util.php
        Line: 93
      In Fcn: log_info
 Description: Error in Initialization Code Undefined index: HTTP_HOST

There is no variable with this name HTTP_HOST and did not have any index for HTTP_HOST

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!