Details
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