{"record":{"id":"7e0d1abd1d424aba","repo":"octobercms/october","slug":"invalid-data-posted","errorCode":null,"errorMessage":"Invalid data posted.","messagePattern":"Invalid data posted\\.","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/widgets/ReportContainer.php","lineNumber":297,"sourceCode":"            throw new ForbiddenException;\n        }\n\n        $aliases = trim(Request::input('aliases'));\n        $orders = trim(Request::input('orders'));\n\n        if (!$aliases) {\n            throw new ApplicationException('Invalid aliases string.');\n        }\n\n        if (!$orders) {\n            throw new ApplicationException('Invalid orders string.');\n        }\n\n        $aliases = explode(',', $aliases);\n        $orders = explode(',', $orders);\n\n        if (count($aliases) != count($orders)) {\n            throw new ApplicationException('Invalid data posted.');\n        }\n\n        $widgets = $this->getWidgetsFromUserPreferences();\n        foreach ($aliases as $index => $alias) {\n            if (isset($widgets[$alias])) {\n                $widgets[$alias]['sortOrder'] = $orders[$index];\n            }\n        }\n\n        $this->setWidgetsToUserPreferences($widgets);\n    }\n\n    //\n    // Widget API\n    //\n\n    /**\n     * addWidget","sourceCodeStart":279,"sourceCodeEnd":315,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/widgets/ReportContainer.php#L279-L315","documentation":"Error \"Invalid data posted.\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/widgets/ReportContainer.php:297 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"}