Error in Initialization Code Undefined index: HTTP_HOST
Summary
Custom Script Error in Initialization TabContent
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
Tagged:
0