Have a question about CiviCRM? Get it answered quickly at the new CiviCRM Stack Exchange Q+A siteThis forum was archived on 25 November 2017. Learn more.How to get involved.What to do if you think you've found a bug.
Index: bin/cli.php===================================================================--- bin/cli.php (revision 38899)+++ bin/cli.php (working copy)@@ -156,7 +156,7 @@ return false; } - if( strtolower($this->_entity) == 'job' ) {+ if( strtolower($this->_entity) == 'job' || isset($this->_password) ) { if( ! $cms->authenticate( $this->_user, $this->_password, false, $civicrm_root ) ) { $this->_log( ts("Jobs called from cli.php require valid user and password as parameter", array('1' => $this->_user ))); return false;
global $user; // fixme: this should be broken out into the appropriate d6, d7 framework if(function_exists('user_load_by_name')) { // >= d7 approach $user = user_load_by_name($username); } if(empty($user->uid)) return false;
static function loadUser( $username ) { global $user; // fixme: this should be broken out into the appropriate d6, d7 framework if(function_exists('user_load_by_name')) { // >= d7 approach $user = user_load_by_name($username); } else { // drupal 6 $user = user_load(array('name' => $username)); } if(empty($user->uid)) return false; require_once('CRM/Core/BAO/UFMatch.php'); $contact_id = CRM_Core_BAO_UFMatch::getContactId( $uid ); // lets store contact id and user id in session $session = CRM_Core_Session::singleton( ); $session->set( 'ufID' , $uid ); $session->set( 'userID', $contact_id ); return true; }
The other bug seems to relate to the email processor which should1) process bounces2) potentially respond to replies & forward them.Is #1 working & not #2?
Re the other error - it's calling 'execute' without having loaded a job object - you might want to stick a backtrace in & figure out why.
var_dump(debug_backtrace());