{"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":"ApplicationException from ReportDataSourceBase::getData guarding the ReportFetchData request object: the caller supplied a relative date range (dateStart/dateEnd) together with an absolute startTimestamp, which are mutually exclusive ways of scoping the query window. It signals a malformed fetch request with two conflicting time-scope inputs.","triggerScenarios":"Thrown at modules/dashboard/classes/ReportDataSourceBase.php:68 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide dateStart/dateEnd or startTimestamp in the request","Default to the project's standard reporting window when none is chosen"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","contentChangedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}