Answers.Body: <p>This particular phrase appears to be in these files:</p>
  
  <pre><code>./CRM/Utils/System/Drupal.php
  ./CRM/Utils/System/Drupal6.php
  </code></pre>
  
  <p>Here are two ways you can search for specific phrases within the codebase:</p>
  
  <p><strong>1) GREP</strong></p>
  
  <p>Using this command from the base <code>civicrm</code> directory:</p>
  
  <p><code>&gt;  grep -R "Sorry, can not load CMS user account." ./</code></p>
  
  <p><strong>2) GITHUB</strong></p>
  
  <p>And if you don't have a command line handy, you can do the same on <a href="https://github.com/civicrm/civicrm-core" rel="nofollow noreferrer">the CiviCRM GitHub page</a> with the "Search this repository" function at the top (<a href="https://github.com/civicrm/civicrm-core/search?utf8=%E2%9C%93&amp;q=%22Sorry%2C%20can%20not%20load%20CMS%20user%20account%22" rel="nofollow noreferrer">using the quotation marks to search for the exact phrase</a>):</p>
  
  <p><img src="https://i.sstatic.net/Nwoh7.jpg" alt="Github search repository"></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-15T18:26:07.277Z
Answers.Text: Thank you, verified it as CRM_Utils_System_Drupal, line 726
Answers.UserDisplayName: mike_kc
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-15T19:03:23.077Z
Answers.Text: Lesson learned, look beyond CiviCRM code base when CMS user is noted.
Answers.UserDisplayName: mike_kc
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-15T19:21:00.977Z
Answers.Text: Glad to help. Technically it is still in the CiviCRM codebase, just in a portion of it that only applies to Drupal in this case. I find `grep` saves me a lot of time in a situation like this.
Answers.UserDisplayName: Laryn
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-15T18:10:56.700Z
Answers.LastActivityDate: 2015-07-01T14:10:13.387Z
Answers.LastEditDate: 2015-07-01T14:10:13.387Z
Answers.UserDisplayName: Laryn
Body: <p>When confirming donation I'm receiving the following error message "Sorry, can not load CMS user account." How can I track down which file this message is generated in?</p>
  
  <p>Other details: I'm working through the vanco payment processor 4.1 code to make it work with 4.4 CiviCRM. The URL is similar to: www.domain.org/civicrm/contribute/transact</p>
  
Tags: <error-page>
Title: How can I find the code that produces a certain error message (e.g. "Sorry, can not load CMS user account.")
ThreadText: # How can I find the code that produces a certain error message (e.g. "Sorry, can not load CMS user account.")
  
  (Asked by: username_0 on 2015-06-15)
  
  When confirming donation I'm receiving the following error message "Sorry, can not load CMS user account." How can I track down which file this message is generated in?
  
  Other details: I'm working through the vanco payment processor 4.1 code to make it work with 4.4 CiviCRM. The URL is similar to: www.domain.org/civicrm/contribute/transact
  
  **Tags:** error-page
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-06-15. Score: 4
  
  This particular phrase appears to be in these files:
  
  ```
  ./CRM/Utils/System/Drupal.php
  ./CRM/Utils/System/Drupal6.php
  
  ```
  
  Here are two ways you can search for specific phrases within the codebase:
  
  **1) GREP**
  
  Using this command from the base `civicrm` directory:
  
  `> grep -R "Sorry, can not load CMS user account." ./`
  
  **2) GITHUB**
  
  And if you don't have a command line handy, you can do the same on [the CiviCRM GitHub page](https://github.com/civicrm/civicrm-core) with the "Search this repository" function at the top ([using the quotation marks to search for the exact phrase](https://github.com/civicrm/civicrm-core/search?utf8=%E2%9C%93&q=%22Sorry%2C%20can%20not%20load%20CMS%20user%20account%22)):
  
  ![Github search repository](https://i.sstatic.net/Nwoh7.jpg)
  
  > **Comments:**
  > **username_0**: Thank you, verified it as CRM_Utils_System_Drupal, line 726  
  > **username_0**: Lesson learned, look beyond CiviCRM code base when CMS user is noted.  
  > **username_1**: Glad to help. Technically it is still in the CiviCRM codebase, just in a portion of it that only applies to Drupal in this case. I find `grep` saves me a lot of time in a situation like this.  
  
  ---
  
  