octobercms/october · error · ApplicationException
Start and end dates cannot be set if the start timestamp is
Error message
Start and end dates cannot be set if the start timestamp is also set.
What it means
Error "Start and end dates cannot be set if the start timestamp is also set." thrown in octobercms/october.
Source
Thrown at modules/dashboard/classes/ReportDataSourceBase.php:64
*/
private $dimensions = null;
/**
* @var ReportMetric[] Cache of common registered metrics.
*/
private $metrics = [];
/**
* getData returns the data for the specified report.
*/
public function getData(ReportFetchData $data): ReportFetchDataResult
{
if ($data->limit !== null && $data->paginationParams) {
throw new ApplicationException('Limit and pagination parameters cannot be both set.');
}
if (($data->dateStart || $data->dateEnd) && $data->startTimestamp !== null) {
throw new ApplicationException('Start and end dates cannot be set if the start timestamp is also set.');
}
if (!$data->dateStart && $data->startTimestamp === null) {
throw new ApplicationException('Either the start and end dates or the start timestamp must be set.');
}
$dimension = ReportDimension::findDimensionByCode(
$this->getAvailableDimensions(),
$data->dimensionCode
);
$metrics = [];
foreach ($data->metricCodes as $metricCode) {
$metric = ReportMetric::findMetricByCodeStrict(
$dimension->getAvailableMetrics(),
$metricCode,
false
);View on GitHub (pinned to b608633a7e)
When it happens
Trigger: Thrown at modules/dashboard/classes/ReportDataSourceBase.php:64 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21).
Data as JSON: /api/errors/b9032548226e2124.
Report an issue: GitHub.