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

cli.php fata error: Call to a member function callApi() on a non-object

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.1.3
    • Component/s: CiviMail

      Description

      I'm trying to set up cron job to run cli.php and it fails.

      I attempted to execute from the shell:
      php cli.php -e Job -a execute -u MyUser -p MyPassword

      There are the results, which are the same as from the cron job.

      PHP Notice: Undefined variable: limit in ...PathToSite.../MyWebSite/administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php on line 449
      PHP Notice: Undefined variable: cli in ...PathToSite.../MyWebSite/administrator/components/com_civicrm/civicrm/bin/cli.php on line 30
      PHP Fatal error: Call to a member function callApi() on a non-object in ...PathToSite.../MyWebSite/administrator/components/com_civicrm/civicrm/bin/cli.php on line 30

        Attachments

          Activity

            People

            • Assignee:
              lcdweb Brian Shaughnessy
              Reporter:
              ozyank Dennis Gray
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: