I run the data capture daily on a cPanel/LiteSpeed/PHP7.1 server. For each domain, I see these two warnings in error_log:
[12-Jun-2017 14:00:50 UTC] PHP Notice: Undefined index: DOCUMENT_ROOT in <installation_dir>/inc/code/globalIncludes.php on line 4
[12-Jun-2017 14:00:50 UTC] PHP Notice: Undefined index: SCRIPT_FILENAME in <installation_dir>/inc/code/globalIncludes.php on line 7
(In the log file, the actual installation directory appears instead of <installation_dir>).
The code should check for the respective indexes before using them (using isset()), and use suitable defaults when they are not set.
Similarly, in data-capture-run.php, the "domain" and "date" indexes should be checked before issuing the error message on line 85.
I run the data capture daily on a cPanel/LiteSpeed/PHP7.1 server. For each domain, I see these two warnings in error_log:
[12-Jun-2017 14:00:50 UTC] PHP Notice: Undefined index: DOCUMENT_ROOT in <installation_dir>/inc/code/globalIncludes.php on line 4
[12-Jun-2017 14:00:50 UTC] PHP Notice: Undefined index: SCRIPT_FILENAME in <installation_dir>/inc/code/globalIncludes.php on line 7
(In the log file, the actual installation directory appears instead of <installation_dir>).
The code should check for the respective indexes before using them (using isset()), and use suitable defaults when they are not set.
Similarly, in data-capture-run.php, the "domain" and "date" indexes should be checked before issuing the error message on line 85.