I've acquired a site that is several generations of CiviCRM out of date - currently running 4.0.7.
I'm working through the upgrades and went to 4.1.0 where the new procedure for sending emails is implemented - unfortunately I can't get it to work
I'm trying to run it manually from the command line at the moment. The command I'm using is
php bin/cli.php -s demo1.network-midlands.co.uk -u ***** -p ***** -e Job -a execute
and every time I run it I get the following error
PHP Notice: Undefined variable: cli in /var/www/vhosts/network-midlands.co.uk/demo1/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 /var/www/vhosts/network-midlands.co.uk/demo1/administrator/components/com_civicrm/civicrm/bin/cli.php on line 30
Lines 28-30 are as follows
$cli = new civicrm_Cli( ); $cli->initialize( ) || die( ); $cli->callApi( ) || die( );
it looks like $cli isn't getting defined on line 28 ($cli = new civicrm_Cli( );)
Any clues?. I've since moved up to CiviCRM 4.1.2 to se eif that fixes it but it doesn't.
Note - Joomla is still at version 1.7 - I'm getting as many of the modules as up to date as possible before moving it all to Joomla 3