octobercms/october · error · October\Rain\Exception\ApplicationException

cms::lang.asset.error_deleting_file

Error message

cms::lang.asset.error_deleting_file

What it means

Error "cms::lang.asset.error_deleting_file" thrown in octobercms/october.

Source

Thrown at modules/tailor/classes/Blueprint.php:534

     */
    public function forceSave()
    {
        return $this->save(['force' => true]);
    }

    /**
     * delete template
     */
    public function delete()
    {
        $fileName = $this->fileName;
        $fullPath = $this->getFilePath($fileName);

        $this->validateFileName($fileName);

        if (File::exists($fullPath)) {
            if (!@File::delete($fullPath)) {
                throw new ApplicationException(Lang::get(
                    'cms::lang.asset.error_deleting_file',
                    ['name' => $fileName]
                ));
            }
        }
    }

    /**
     * validateFileName, extension and path.
     * @param string $fileName
     */
    protected function validateFileName(?string $fileName = null): void
    {
        if ($fileName === null) {
            $fileName = $this->fileName;
        }

        $fileName = trim($fileName);

View on GitHub (pinned to b608633a7e)

When it happens

Trigger: Thrown at modules/tailor/classes/Blueprint.php:534 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/68c68b24aa499c2f. Report an issue: GitHub.