{"record":{"id":"7d695ff127190bdc","repo":"phacility/phabricator","slug":"logo-configuration-is-not-valid-value-must-be-a-d","errorCode":null,"errorMessage":"Logo configuration is not valid: value must be a dictionary.","messagePattern":"Logo configuration is not valid: value must be a dictionary\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/config/custom/PhabricatorCustomLogoConfigType.php","lineNumber":18,"sourceCode":"<?php\n\nfinal class PhabricatorCustomLogoConfigType\n  extends PhabricatorConfigOptionType {\n\n  public static function getLogoImagePHID() {\n    $logo = PhabricatorEnv::getEnvConfig('ui.logo');\n    return idx($logo, 'logoImagePHID');\n  }\n\n  public static function getLogoWordmark() {\n    $logo = PhabricatorEnv::getEnvConfig('ui.logo');\n    return idx($logo, 'wordmarkText');\n  }\n\n  public function validateOption(PhabricatorConfigOption $option, $value) {\n    if (!is_array($value)) {\n      throw new Exception(\n        pht(\n          'Logo configuration is not valid: value must be a dictionary.'));\n    }\n\n    PhutilTypeSpec::checkMap(\n      $value,\n      array(\n        'logoImagePHID' => 'optional string|null',\n        'wordmarkText' => 'optional string|null',\n      ));\n  }\n\n  public function readRequest(\n    PhabricatorConfigOption $option,\n    AphrontRequest $request) {\n\n    $viewer = $request->getViewer();\n    $view_policy = PhabricatorPolicies::POLICY_PUBLIC;","sourceCodeStart":1,"sourceCodeEnd":36,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/config/custom/PhabricatorCustomLogoConfigType.php#L1-L36","documentation":"Type guard thrown from validateOption() when validating the ui.logo configuration: the stored value is not a PHP array. The logo option must be a dictionary with keys like logoImagePHID and wordmarkText, so a scalar or JSON list is rejected during config read/save.","triggerScenarios":"Thrown at src/applications/config/custom/PhabricatorCustomLogoConfigType.php:18 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set ui.logo to a JSON object, e.g. {\"logoImagePHID\": \"PHID-FILE-...\", \"wordmarkText\": \"...\"}","If editing config files by hand, check for JSON syntax errors producing a non-dictionary value","Clear the bad value (bin/config delete ui.logo) and re-set it correctly"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","contentChangedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}