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

Logging activation fails with multi-language enabled

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.4.4
    • Fix Version/s: 4.7
    • Component/s: Core CiviCRM
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      When activating the Logging feature, we get a SQL query execution error : civicrm is unable to find the table : "civicrm_event_fr_FRs_in_carts".

      My analysis : rewriteQuery() function located in CRM_Core_I18n_Schema uses preg_replace to add localized suffix.

      But when trying to replace "civicrm_events_in_carts" table, it fails because of the table name.

      In the current schema we can found "civicrm_event" so when looping on schema tables, "civicrm_events_in_carts" becomes "civicrm_event_fr_FRs_in_carts".

      I suggest to modify table name from "civicrm_events_in_carts" to "civicrm_event_in_carts" so when using preg_replace the "_" will prevent the unfortunate replacement.

      My configuration :

      • CiviCRM 4.4.4
      • Multi-language activated, with French

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mmauroy Matthias de MAUROY - CYIM
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: