Problem : when doing a verify, CRM_Core_Config::isUpgradeMode() return True in CRM/Core/BAO/ConfigSetting.php.

Consequence : drush @site provision-civicrm crash when we are in a multilingual civicrm because dbLocale is never initialized.

Comments

bgm’s picture

While debugging with samuelsov, we're looking at CRM/Core/BAO/ConfigSetting.php, function retrieve(), which has:

      // since language field won't be present before upgrade.
      if (CRM_Core_Config::isUpgradeMode()) {
        return;
      }

This was introduced in revision 15815 (a long time ago), and it's not clear why.

The consequence is that locale stuff is not initialize while we are upgrading. However, it works fine if we comment that code out. What was it for?

bgm’s picture

Status: Active » Needs review
bgm’s picture

Title: Upgrade mode set to true when doing a provision-verify » provision-verify crashes in multi-lingual installations because dbLocale is not initialized
Issue summary: View changes
bgm’s picture

Status: Needs review » Closed (fixed)

Closing this issue, and follow-up on other upgade-mode issues in #2449583: Caching refresh problem when doing Verify / Upgrade.