diff --git a/CRM/Utils/Check/Component.php b/CRM/Utils/Check/Component.php index 0c07a9395334..3772b4b3836b 100644 --- a/CRM/Utils/Check/Component.php +++ b/CRM/Utils/Check/Component.php @@ -104,11 +104,19 @@ public function checkAll() { * @throws \Civi\API\Exception\UnauthorizedException */ public function isDisabled($method) { - - $checks = $this->getChecksConfig(); - if (!empty($checks[$method])) { - return (bool) empty($checks[$method]['is_active']); + try { + $checks = $this->getChecksConfig(); + if (!empty($checks[$method])) { + return (bool) empty($checks[$method]['is_active']); + } } + catch (PEAR_Exception $e) { + // if we're hitting this, DB migration to 5.19 probably hasn't run yet, so + // is_active doesn't exist. Ignore this error so the status check (which + // might warn about missing migrations!) still renders. + // TODO: remove at some point after 5.19 + } + return FALSE; }