{"record":{"id":"11908f968e30834b","repo":"octobercms/october","slug":"either-the-start-and-end-dates-or-the-start-timest-11908f","errorCode":null,"errorMessage":"Either the start and end dates or the start timestamp must be set.","messagePattern":"Either the start and end dates or the start timestamp must be set\\.","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/dashboard/classes/ReportDataSourceBase.php","lineNumber":68,"sourceCode":"     * @var ReportMetric[] Cache of common registered metrics.\n     */\n    private $metrics = [];\n\n    /**\n     * getData returns the data for the specified report.\n     */\n    public function getData(ReportFetchData $data): ReportFetchDataResult\n    {\n        if ($data->limit !== null && $data->paginationParams) {\n            throw new ApplicationException('Limit and pagination parameters cannot be both set.');\n        }\n\n        if (($data->dateStart || $data->dateEnd) && $data->startTimestamp !== null) {\n            throw new ApplicationException('Start and end dates cannot be set if the start timestamp is also set.');\n        }\n\n        if (!$data->dateStart && $data->startTimestamp === null) {\n            throw new ApplicationException('Either the start and end dates or the start timestamp must be set.');\n        }\n\n        $dimension = ReportDimension::findDimensionByCode(\n            $this->getAvailableDimensions(),\n            $data->dimensionCode\n        );\n\n        $metrics = [];\n        foreach ($data->metricCodes as $metricCode) {\n            $metric = ReportMetric::findMetricByCodeStrict(\n                $dimension->getAvailableMetrics(),\n                $metricCode,\n                false\n            );\n\n            if (!$metric) {\n                $metric = ReportMetric::findMetricByCodeStrict(\n                    $this->getAvailableMetrics(),","sourceCodeStart":50,"sourceCodeEnd":86,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/dashboard/classes/ReportDataSourceBase.php#L50-L86","documentation":"Error \"Either the start and end dates or the start timestamp must be set.\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/dashboard/classes/ReportDataSourceBase.php:68 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}