phacility/phabricator · error · Exception

Publisher name "%s" is not valid: publisher names are requir

Error message

Publisher name "%s" is not valid: publisher names are required.

What it means

Error "Publisher name "%s" is not valid: publisher names are required." thrown in phacility/phabricator.

Source

Thrown at src/applications/packages/storage/PhabricatorPackagesPublisher.php:60

        ),
      ),
    ) + parent::getConfiguration();
  }

  public function generatePHID() {
    return PhabricatorPHID::generateNewPHID(
      PhabricatorPackagesPublisherPHIDType::TYPECONST);
  }

  public function getURI() {
    $publisher_key = $this->getPublisherKey();
    return "/package/{$publisher_key}/";
  }

  public static function assertValidPublisherName($value) {
    $length = phutil_utf8_strlen($value);
    if (!$length) {
      throw new Exception(
        pht(
          'Publisher name "%s" is not valid: publisher names are required.',
          $value));
    }

    $max_length = 64;
    if ($length > $max_length) {
      throw new Exception(
        pht(
          'Publisher name "%s" is not valid: publisher names must not be '.
          'more than %s characters long.',
          $value,
          new PhutilNumber($max_length)));
    }
  }

  public static function assertValidPublisherKey($value) {
    $length = phutil_utf8_strlen($value);

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/packages/storage/PhabricatorPackagesPublisher.php:60 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21). Data as JSON: /api/errors/544d434a50ab9a1e. Report an issue: GitHub.