Details
-
Type:
Bug
-
Status: Done/Fixed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 4.0.5
-
Fix Version/s: None
-
Component/s: CiviReport
-
Labels:None
Description
CiviReportMail.php does not have support to be run from the command line. This is contrary to the documentation at:
http://wiki.civicrm.org/confluence/display/CRMDOC40/Command-line+Script+Configuration
Therefore, either the documentation is wrong or the code is lacking CLI features.
The code is lacking the common php_sapi_name() == "cli" and require_once ("bin/cli.php") of other scripts which do work via CLI.
in addition, there will need to be changes in the existing code to not use session_start() and other http only codepaths.