If you need help solving this exception, you can have a look at the TYPO3 Wiki. There you can find solutions provided by the TYPO3 community. Once you have found a solution to the problem, help others by contributing to the wiki page.
{ $folderIdentifier = $this->canonicalizeAndCheckFolderIdentifier($folderIdentifier); if (!$this->folderExists($folderIdentifier)) { throw new Exception\FolderDoesNotExistException( 'Folder "' . $folderIdentifier . '" does not exist.', 1314516810 ); }
* @throws Exception\InsufficientFolderAccessPermissionsException */ public function getFolder($identifier, $returnInaccessibleFolderObject = false) { $data = $this->driver->getFolderInfoByIdentifier($identifier); $folder = $this->getResourceFactoryInstance()->createFolderObject($this, $data['identifier'] ?? null, $data['name'] ?? null); try { $this->assureFolderReadPermission($folder);
* @return FolderInterface */ public function getParentFolder() { return $this->getStorage()->getFolder($this->getStorage()->getFolderIdentifierFromFileIdentifier($this->getIdentifier())); } }
$userFeGroups = $customUserGroups; } /** @var Folder $parentFolder */ $parentFolder = $file->getParentFolder(); // check folder access if ($this->checkFolderRootLineAccess($parentFolder, $userFeGroups)) { // access to folder then check file privileges if present $feGroups = $file->getProperty('fe_groups');
$checkPermissionsService = GeneralUtility::makeInstance(CheckPermissions::class); $userFeGroups = !$this->feUser->user ? false : $this->feUser->groupData['uid']; return $checkPermissionsService->checkFileAccess($this->originalFile, $userFeGroups); } /** * Initialise feUser
} else { $this->originalFile = $file; } if (!$this->checkPermissions()) { if (!$this->isLoggedIn()) { if ($this->loginRedirectUrl !== null) { $this->redirectToUrl($this->loginRedirectUrl); } else {
$hookObject = GeneralUtility::makeInstance($className); if (!$hookObject instanceof FileDumpEIDHookInterface) { throw new \UnexpectedValueException($className . ' must implement interface ' . FileDumpEIDHookInterface::class, 1394442417); } $response = $hookObject->checkFileAccess($file); if ($response instanceof ResponseInterface) { return $response; } }
$arguments[] = $response; } } return call_user_func_array($target, $arguments); } /** * Creates a callable out of the given parameter, which can be a string, a callable / closure or an array
if (strpos($configuration, '::') !== false || is_callable($configuration)) { /** @var Dispatcher $dispatcher */ $dispatcher = GeneralUtility::makeInstance(Dispatcher::class); $request = $request->withAttribute('target', $configuration); return $dispatcher->dispatch($request, $response) ?? new NullResponse(); } trigger_error( 'eID "' . $eID . '" is registered with a script to a file. This behaviour will be removed in TYPO3 v10.0.' . ' Register eID with a class::method syntax like "\MyVendor\MyExtension\Controller\MyEidController::myMethod" instead.',
if (!$middleware instanceof MiddlewareInterface) { throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342); } return $middleware->process($request, $this->next); } }; } }
$hookParameters = []; GeneralUtility::callUserFunction($hookFunction, $hookParameters, $hookParameters); } } return $handler->handle($request); } }
if (!$middleware instanceof MiddlewareInterface) { throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342); } return $middleware->process($request, $this->next); } }; } }
// refactored to have ServerRequest object available where it is needed. This global will be // deprecated then and removed. $GLOBALS['TYPO3_REQUEST'] = $request; return $handler->handle($request); } }
if (!$middleware instanceof MiddlewareInterface) { throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342); } return $middleware->process($request, $this->next); } }; } }
); $timeTracker->start(); $timeTracker->push(''); return $handler->handle($request); } }
if (!$middleware instanceof MiddlewareInterface) { throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342); } return $middleware->process($request, $this->next); } }; } }
* @return ResponseInterface */ public function handle(ServerRequestInterface $request): ResponseInterface { return $this->tip->handle($request); } /** * Seed the middleware stack with the inner request handler
{ $requestHandler = GeneralUtility::makeInstance($this->requestHandler); $dispatcher = $this->createMiddlewareDispatcher($requestHandler); return $dispatcher->handle($request); } /** * Set up the application and shut it down afterwards
if (!$this->checkIfEssentialConfigurationExists()) { return $this->installToolRedirect(); } $this->initializeContext(); return parent::handle($request); } /** * Check if LocalConfiguration.php and PackageStates.php exist
final public function run(callable $execute = null) { try { $response = $this->handle( \TYPO3\CMS\Core\Http\ServerRequestFactory::fromGlobals() ); if ($execute !== null) { call_user_func($execute); }
// Set up the application for the frontend call_user_func(function () { $classLoader = require __DIR__.'/vendor/autoload.php'; \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(0, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_FE); \TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Frontend\Http\Application::class)->run(); });
call_user_func(function () { $classLoader = require __DIR__.'/vendor/autoload.php'; \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(0, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_FE); \TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Frontend\Http\Application::class)->run(); });