Answers.Body: <p>This error can occur when there is a clash with a Composer autoloader for another module, e.g. the Currency module.</p>
  
  <p>A README has been added to currency 7.x-2.5 re this error, advising: 'try manually updating Currency's Composer dependencies by running the command "composer update" in Currency's root directory.' This worked for me. Vandalf isn't using Currency but maybe a similar issue with another module? Try searching for files called composer.json under your modules directory.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-06T09:59:16.803Z
Answers.LastActivityDate: 2015-10-06T09:59:16.803Z
Answers.UserDisplayName: davejenx
Body: <p>I'm not quite sure if this is a drush or a civicrm problem, sorry if this is the wrong forum. </p>
  
  <p>I did an upgrade yesterday evening from version 4.6.4 to version 4.6.8. Drush version is 5.9. Today I tried to clear the cache using <code>drush cc all</code>, but I get an "unrecoverable error" message saying that:</p>
  
  <pre><code>PHP Fatal error:  Call to undefined method Composer\Autoload\ClassLoader::setPsr4() in /&lt;myciviinstall&gt;/civicrm/civicrm-4.6.8/civicrm/vendor/composer/autoload_real.php on line 37
  Drush command terminated abnormally due to an unrecoverable error. [error]
  Error: Call to undefined method Composer\Autoload\ClassLoader::setPsr4() in /&lt;myciviinstall&gt;/civicrm/civicrm-4.6.8/civicrm/vendor/composer/autoload_real.php, line 37
  </code></pre>
  
  <p>This also happens for the <code>drush cc civicrm</code> command, and for the civicrm cron job:</p>
  
  <pre><code>30 * * * * /&lt;hiddenpath&gt;/bin/drush/drush -u 1 -r /&lt;mysite&gt;/public_html -l mysite.com civicrm-api job.execute auth=0 -y &gt; /&lt;hiddenpath&gt;/cron/cronlogs/civi_error_drush_`date +\%F_\%T`.log /dev/null`
  </code></pre>
  
  <p>I should point out that the reason for the somewhat strange path in the PHP Fatal error message, is that I'm running civicrm (on Drupal 7) via softlinks to keep old versions present but "out of the way" so to speak. This to be able to (more) quickly swap back to older versions. This approach has worked well for me in the past, and I didn't have this drush problem yesterday evening before the upgrade.</p>
  
  <p>Googling, I find clues that this may indicate that the version of the composer autoloader is out of date, but I'm not sufficiently familiar with composer to be able to tell for sure (is composer a drush thing only?).</p>
  
  <p>Anyone got an idea?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-14T03:46:55.250Z
Comments.Text: hi vandalf - am hitting same error after an upgrade to 4.6.8 attempt (but perhaps unlike yours, i got the error after updating the codebase, so i didn't get to do the upgrade - did you find a solution
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-14T18:58:36.553Z
Comments.Text: HI pete and Vandalf. Try turning off the Currency Module. It is using Composer as well.
Comments.UserDisplayName: Tommy B
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-15T07:43:22.147Z
Comments.Text: petednz-fuzion: I'm still working on solving this.
  TommyB: Thanks for the tip, but I haven't got the Currency module installed.
Comments.UserDisplayName: Vandalf
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-16T02:41:32.740Z
Comments.Text: Tommy B - you hit the nail on the head for us, shame i didn't spot your comment earlier.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-25T11:33:19.697Z
Comments.Text: Did anyone succeed in getting Civi 4.6.8 to coexist peacefully with the Currency module?
Comments.UserDisplayName: davejenx
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-25T12:13:15.500Z
Comments.Text: I found that a README has been added to currency 7.x-2.5 re this error, advising:
  'try manually updating Currency's Composer dependencies by running the command "composer update" in Currency's root directory.'
  This worked for me. Vandalf isn't using Currency but maybe a similar issue with another module? Try searching for files called composer.json under your modules directory.
Comments.UserDisplayName: davejenx
Tags: <cron-job><drush>
Title: Autoloader problem after upgrade to version 4.6.8
ThreadText: # Autoloader problem after upgrade to version 4.6.8
  
  (Asked by: username_0 on 2015-09-08)
  
  I'm not quite sure if this is a drush or a civicrm problem, sorry if this is the wrong forum.
  
  I did an upgrade yesterday evening from version 4.6.4 to version 4.6.8. Drush version is 5.9. Today I tried to clear the cache using `drush cc all`, but I get an "unrecoverable error" message saying that:
  
  ```
  PHP Fatal error:  Call to undefined method Composer\Autoload\ClassLoader::setPsr4() in /<myciviinstall>/civicrm/civicrm-4.6.8/civicrm/vendor/composer/autoload_real.php on line 37
  Drush command terminated abnormally due to an unrecoverable error. [error]
  Error: Call to undefined method Composer\Autoload\ClassLoader::setPsr4() in /<myciviinstall>/civicrm/civicrm-4.6.8/civicrm/vendor/composer/autoload_real.php, line 37
  
  ```
  
  This also happens for the `drush cc civicrm` command, and for the civicrm cron job:
  
  ```
  30 * * * * /<hiddenpath>/bin/drush/drush -u 1 -r /<mysite>/public_html -l mysite.com civicrm-api job.execute auth=0 -y > /<hiddenpath>/cron/cronlogs/civi_error_drush_`date +\%F_\%T`.log /dev/null`
  
  ```
  
  I should point out that the reason for the somewhat strange path in the PHP Fatal error message, is that I'm running civicrm (on Drupal 7) via softlinks to keep old versions present but "out of the way" so to speak. This to be able to (more) quickly swap back to older versions. This approach has worked well for me in the past, and I didn't have this drush problem yesterday evening before the upgrade.
  
  Googling, I find clues that this may indicate that the version of the composer autoloader is out of date, but I'm not sufficiently familiar with composer to be able to tell for sure (is composer a drush thing only?).
  
  Anyone got an idea?
  
  **Tags:** cron-job, drush
  
  > **Comments:**
  > **username_1**: hi username_0 - am hitting same error after an upgrade to 4.6.8 attempt (but perhaps unlike yours, i got the error after updating the codebase, so i didn't get to do the upgrade - did you find a solution  
  > **username_2**: HI pete and username_0. Try turning off the Currency Module. It is using Composer as well.  
  > **username_0**: username_1: I'm still working on solving this. username_2: Thanks for the tip, but I haven't got the Currency module installed.  
  > **username_1**: username_2 B - you hit the nail on the head for us, shame i didn't spot your comment earlier.  
  > **username_3**: Did anyone succeed in getting Civi 4.6.8 to coexist peacefully with the Currency module?  
  > **username_3**: I found that a README has been added to currency 7.x-2.5 re this error, advising: 'try manually updating Currency's Composer dependencies by running the command "composer update" in Currency's root directory.' This worked for me. username_0 isn't using Currency but maybe a similar issue with another module? Try searching for files called composer.json under your modules directory.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2015-10-06. Score: 1
  
  This error can occur when there is a clash with a Composer autoloader for another module, e.g. the Currency module.
  
  A README has been added to currency 7.x-2.5 re this error, advising: 'try manually updating Currency's Composer dependencies by running the command "composer update" in Currency's root directory.' This worked for me. username_0 isn't using Currency but maybe a similar issue with another module? Try searching for files called composer.json under your modules directory.
  
  
  ---
  
  