Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-8919

CiviReportMail.php cannot be used from the command line

    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.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              diablodale Dale Phurrough (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: