Answers.Body: <p>This is all due to Joomla changing its password authentication methods on 2.5.18 and above, to fix (not the nicest fix but it works) you need to edit the following.</p>
  
  <p>administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php</p>
  
  <p>CHANGE TO THIS AROUND LINE 445</p>
  
  <pre><code>  // now check password
    if (strpos($dbPassword, ':') === FALSE) {
      if ($dbPassword != md5($password)) {
        if (!JUserHelper::verifyPassword($password, $dbPassword, $dbId)) {
          return FALSE;
        }
      }
    }
    else {
      list($hash, $salt) = explode(':', $dbPassword);
      $cryptpass = md5($password . $salt);
      if ($hash != $cryptpass) {
        if (!JUserHelper::verifyPassword($password, $dbPassword, $dbId)) {
          return FALSE;
        }
      }
    }
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-11T20:39:22.597Z
Answers.LastActivityDate: 2015-09-11T20:39:22.597Z
Answers.UserDisplayName: Generic
Body: <p>Very grateful if anyone can tell me where to start debugging this issue.</p>
  
  <p>I had cron working fine in 4.2.9 </p>
  
  <p>I've cleared all, caches, templates, sessions, logged in and out as the cron user who is Super Admin. Key was also restored from backup settings files.</p>
  
Tags: <cron-job>
Title: Cron Invalid username and/or password, After 4.2.9 to 4.2.20 Joomla Upgrade
ThreadText: # Cron Invalid username and/or password, After 4.2.9 to 4.2.20 Joomla Upgrade
  
  (Asked by: username_0 on 2015-09-11)
  
  Very grateful if anyone can tell me where to start debugging this issue.
  
  I had cron working fine in 4.2.9
  
  I've cleared all, caches, templates, sessions, logged in and out as the cron user who is Super Admin. Key was also restored from backup settings files.
  
  **Tags:** cron-job
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2015-09-11. Score: 1
  
  This is all due to Joomla changing its password authentication methods on 2.5.18 and above, to fix (not the nicest fix but it works) you need to edit the following.
  
  administrator/components/com\_civicrm/civicrm/CRM/Utils/System/Joomla.php
  
  CHANGE TO THIS AROUND LINE 445
  
  ```
    // now check password
    if (strpos($dbPassword, ':') === FALSE) {
      if ($dbPassword != md5($password)) {
        if (!JUserHelper::verifyPassword($password, $dbPassword, $dbId)) {
          return FALSE;
        }
      }
    }
    else {
      list($hash, $salt) = explode(':', $dbPassword);
      $cryptpass = md5($password . $salt);
      if ($hash != $cryptpass) {
        if (!JUserHelper::verifyPassword($password, $dbPassword, $dbId)) {
          return FALSE;
        }
      }
    }
  
  ```
  
  
  ---
  
  