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

accessing draft mailing leads to 500 error - localization?

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 4.7.13
    • Fix Version/s: 4.7.14
    • Component/s: CiviMail, Core CiviCRM
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      After upgrading to 4.7.13, a group stopped being able to load a draft email.

      The nginx error log reported:

      "PHP message: PHP Fatal error: Class name must be a valid object or a string in /var/www/powerbase/sites/all/modules/civicrm/CRM/Utils/SQL.php on line 46"

      The error is in the CRM_Utils_SQL::mergeSubquery - which is being called with an empty $entity variable.

      That's empty due to the CRM_Core_DAO::addSelectWhereClause() which iterates over the results of: $this->buildOptions('entity_table', 'get');

      That function returns a table named "civicrm_group_en_US" (since this site is multi-lingual).

      That value is then passed to CRM_Core_DAO_AllCoreTables::getBriefName(CRM_Core_DAO_AllCoreTables::getClassForTable($table)); which doesn't return anything.

      This problem seems to have originated with CRM-19448.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jamie Jamie McClelland
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: