octobercms/october · error · ApplicationException

File access halted

Error message

File access halted

What it means

Thrown by Files::findFileObject when the 'backend.files.get' event returns false for the resolved file. It is an extension-point guard: any event listener (e.g. a policy restricting attachment access) can veto file delivery by returning false, which is converted into this access-halted error.

Solutions

  1. Review any backend.files.get event listeners in plugins that may be blocking the file
  2. Adjust the listener's policy so the requesting user/context is permitted
  3. If unconditional blocking is wrong, fix the listener condition instead of bypassing the event
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at modules/backend/controllers/Files.php:210 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/5933ee37de0e16f4. Report an issue: GitHub.

Appendix: source

Thrown at modules/backend/controllers/Files.php:210

        /**
         * @event backend.files.get
         * Fires before a file is output.
         *
         * Example usage:
         *
         *     Event::listen('backend.files.get', function ((\System\Models\File) $file) {
         *         // Block access to this file
         *         return false;
         *
         *         // Or signal access denied
         *         throw new \ForbiddenException;
         *     });
         *
         */
        $response = Event::fire('backend.files.get', [$file], true);
        if ($response === false) {
            throw new ApplicationException('File access halted');
        }

        return $file;
    }
}

View on GitHub (pinned to b608633a7e)