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

False errors on boot caused by missing indexes on multi language sites

    Details

    • Type: Bug
    • Status: Won't Do
    • Priority: Important
    • Resolution: Won't Do
    • Affects Version/s: 4.7.19
    • Fix Version/s: None
    • Component/s: Internationalisation
    • Labels:
    • Versioning Impact:
      None (no code merged)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      On initial boot, Civicrm checks for index existance. The function public static function getMissingIndices() loops through an array of required indexes that is wrong in my multi language installation. That function actually loops through using the 

      $missingIndices[$sigParts[0]][] = $index;

      where sigParts does not contain the right index... For example, the returned array has the local in the name of the table but not in the sig... For example, a returned required index array element from CRM_Core_DAO_AllCoreTables::indices(); ...

      'civicrm_batch_en_US' =>
      array (
          'UI_name' =>
           array (
              'name' => 'UI_name',
              'field' =>
           array (
              0 => 'name',
           ),
           'localizable' => false,
           'unique' => true,
           'sig' => 'civicrm_batch::1::name',
        ),
      ),

      The problem here is that the 'sig' should be the same as the index, however the index for that array element is civicrm_batch_en_US ... 

      Now I am new to Civi... I could dig deeper... but I it might turn a light bulb on in someone familiar with this part of the code... 

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Serge Serge Lachapelle
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: