Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-7902

Fatal PHP error: Class 'CRM_Utils_String' not found when using CRM_Utils_Mail::send()

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.3.5
    • Fix Version/s: 3.4.beta
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      When attempting to run a custom script in the bin directory that includes CRM/Utils/Mail.php and makes use of CRM_Utils_Mail:send() the following error occurs:

      PHP Fatal error: Class 'CRM_Utils_String' not found in ./CRM/Utils/Mail.php on line 87

      Adding the following line just before the offending line 87 above fixes the issue.

      require_once 'CRM/Utils/String.php';

      This issue did not exist in at least <= 3.1.6, so it seems like a regression. The attached patch implement the above fix.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              nkinkade Nathan Kinkade
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: