2

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

1 Answer 1

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 with the "Search this repository" function at the top (using the quotation marks to search for the exact phrase):

Github search repository

3
  • Thank you, verified it as CRM_Utils_System_Drupal, line 726
    – mike_kc
    Commented Jun 15, 2015 at 18:26
  • Lesson learned, look beyond CiviCRM code base when CMS user is noted.
    – mike_kc
    Commented Jun 15, 2015 at 19:03
  • 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.
    – Laryn
    Commented Jun 15, 2015 at 19:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.