phacility/phabricator · error · PhabricatorSearchConstraintException

The specified "Occurs Before" date is earlier in time than t

Error message

The specified "Occurs Before" date is earlier in time than the specified "Occurs After" date, so this query can never match any results.

What it means

Error "The specified "Occurs Before" date is earlier in time than the specified "Occurs After" date, so this query can never match any results." thrown in phacility/phabricator.

Source

Thrown at src/applications/feed/query/PhabricatorFeedSearchEngine.php:92

    }

    if ($phids) {
      $query->withFilterPHIDs($phids);
    }

    $range_min = $map['rangeStart'];
    if ($range_min) {
      $range_min = $range_min->getEpoch();
    }

    $range_max = $map['rangeEnd'];
    if ($range_max) {
      $range_max = $range_max->getEpoch();
    }

    if ($range_min && $range_max) {
      if ($range_min > $range_max) {
        throw new PhabricatorSearchConstraintException(
          pht(
            'The specified "Occurs Before" date is earlier in time than the '.
            'specified "Occurs After" date, so this query can never match '.
            'any results.'));
      }
    }

    if ($range_min || $range_max) {
      $query->withEpochInRange($range_min, $range_max);
    }

    return $query;
  }

  protected function getURI($path) {
    return '/feed/'.$path;
  }

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/feed/query/PhabricatorFeedSearchEngine.php:92 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/45725363149eabc2. Report an issue: GitHub.