Nette\Application\BadRequestException #404

Cannot load presenter 'Front:Category', class 'App\FrontModule\Presenters\CategoryPresenter' was not found. search►

Source file

File: .../src/Application/Application.php:146

136: $this->requests[] = $request; 137: $this->onRequest($this, $request); 138: 139: if (!$request->isMethod($request::FORWARD) && !strcasecmp($request->getPresenterName(), (string) $this->errorPresenter)) { 140: throw new BadRequestException('Invalid request. Presenter is not achievable.'); 141: } 142: 143: try { 144: $this->presenter = $this->presenterFactory->createPresenter($request->getPresenterName()); 145: } catch (InvalidPresenterException $e) { 146: throw count($this->requests) > 1 ? $e : new BadRequestException($e->getMessage(), 0, $e); 147: } 148: $this->onPresenter($this, $this->presenter); 149: $response = $this->presenter->run(clone $request); 150:

Call stack

  1. .../src/Application/Application.php:85 source  Nette\Application\Application->processRequest(arguments)

    75: } 76: 77: 78: /** 79: * Dispatch a HTTP request to a front controller. 80: */ 81: public function run(): void 82: { 83: try { 84: $this->onStartup($this); 85: $this->processRequest($this->createInitialRequest()); 86: $this->onShutdown($this); 87: 88: } catch (\Throwable $e) { 89: $this->onError($this, $e);
    $request
    
    
  2. .../public/index.php:10 source  Nette\Application\Application->run()

    1: <?php 2: 3: declare(strict_types=1); 4: 5: require __DIR__ . '/../vendor/autoload.php'; 6: 7: App\Bootstrap::boot() 8: ->createContainer() 9: ->getByType(Nette\Application\Application::class) 10: ->run(); 11:

Caused by

Nette\Application\InvalidPresenterException

Cannot load presenter 'Front:Category', class 'App\FrontModule\Presenters\CategoryPresenter' was not found.

Source file

File: .../src/Application/PresenterFactory.php:69

59: if (isset($this->cache[$name])) { 60: return $this->cache[$name]; 61: } 62: 63: if (!Nette\Utils\Strings::match($name, '#^[a-zA-Z\x7f-\xff][a-zA-Z0-9\x7f-\xff:]*\z#')) { 64: throw new InvalidPresenterException("Presenter name must be alphanumeric string, '$name' is invalid."); 65: } 66: 67: $class = $this->formatPresenterClass($name); 68: if (!class_exists($class)) { 69: throw new InvalidPresenterException("Cannot load presenter '$name', class '$class' was not found."); 70: } 71: 72: $reflection = new \ReflectionClass($class); 73: $class = $reflection->getName();

Call stack

  1. .../src/Application/PresenterFactory.php:49 source  Nette\Application\PresenterFactory->getPresenterClass(arguments)

    39: { 40: $this->factory = $factory ?: function (string $class): IPresenter { return new $class; }; 41: } 42: 43: 44: /** 45: * Creates new presenter instance. 46: */ 47: public function createPresenter(string $name): IPresenter 48: { 49: return ($this->factory)($this->getPresenterClass($name)); 50: } 51: 52: 53: /**
    $name
    "Front:Category" (14)
    
  2. .../src/Application/Application.php:144 source  Nette\Application\PresenterFactory->createPresenter(arguments)

    134: } 135: 136: $this->requests[] = $request; 137: $this->onRequest($this, $request); 138: 139: if (!$request->isMethod($request::FORWARD) && !strcasecmp($request->getPresenterName(), (string) $this->errorPresenter)) { 140: throw new BadRequestException('Invalid request. Presenter is not achievable.'); 141: } 142: 143: try { 144: $this->presenter = $this->presenterFactory->createPresenter($request->getPresenterName()); 145: } catch (InvalidPresenterException $e) { 146: throw count($this->requests) > 1 ? $e : new BadRequestException($e->getMessage(), 0, $e); 147: } 148: $this->onPresenter($this, $this->presenter);
    $name
    "Front:Category" (14)
    
  3. .../src/Application/Application.php:85 source  Nette\Application\Application->processRequest(arguments)

    75: } 76: 77: 78: /** 79: * Dispatch a HTTP request to a front controller. 80: */ 81: public function run(): void 82: { 83: try { 84: $this->onStartup($this); 85: $this->processRequest($this->createInitialRequest()); 86: $this->onShutdown($this); 87: 88: } catch (\Throwable $e) { 89: $this->onError($this, $e);
    $request
    
    
  4. .../public/index.php:10 source  Nette\Application\Application->run()

    1: <?php 2: 3: declare(strict_types=1); 4: 5: require __DIR__ . '/../vendor/autoload.php'; 6: 7: App\Bootstrap::boot() 8: ->createContainer() 9: ->getByType(Nette\Application\Application::class) 10: ->run(); 11:

Last muted error

Warning: filemtime(): stat failed for /data/www/perspektivnichrudimsko.cz/www.perspektivnichrudimsko.cz/app/../temp/cache/nette.application/touch

.../nette/di/src/DI/DependencyChecker.php:86

76: return [self::VERSION, $files, $phpFiles, $classes, $functions, $hash]; 77: } 78: 79: 80: /** 81: * Are dependencies expired? 82: */ 83: public static function isExpired(int $version, array $files, array &$phpFiles, array $classes, array $functions, string $hash): bool 84: { 85: try { 86: $currentFiles = @array_map('filemtime', array_combine($tmp = array_keys($files), $tmp)); // @ - files may not exist 87: $origPhpFiles = $phpFiles; 88: $phpFiles = @array_map('filemtime', array_combine($tmp = array_keys($phpFiles), $tmp)); // @ - files may not exist 89: return $version !== self::VERSION 90: || $files !== $currentFiles

Nette Application

Requests


Presenter

null

Environment

$_SERVER

PATH
"/usr/local/bin:/usr/bin:/bin" (28)
REDIRECT_HANDLER
"php-script" (10)
REDIRECT_STATUS
"200" (3)
SCRIPT_URL
"/category/chrudimska-historie/" (30)
SCRIPT_URI
"https://www.perspektivnichrudimsko.cz/category/chrudimska-historie/" (67)
HTTP_MOD_REWRITE
"On" (2)
HTTPS
"on" (2)
SSL_TLS_SNI
"www.perspektivnichrudimsko.cz" (29)
HTTP_ACCEPT
"*/*" (3)
HTTP_USER_AGENT
"claudebot" (9)
HTTP_REFERER
"http://www.perspektivnichrudimsko.cz/category/chrudimska-historie/" (66)
HTTP_HOST
"www.perspektivnichrudimsko.cz" (29)
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache" (6)
SERVER_NAME
"www.perspektivnichrudimsko.cz" (29)
SERVER_ADDR
"89.185.253.48" (13)
SERVER_PORT
"443" (3)
REMOTE_ADDR
"44.222.149.13" (13)
DOCUMENT_ROOT
"/data/www/perspektivnichrudimsko.cz/www.perspektivnichrudimsko.cz" (65)
SERVER_ADMIN
"webmaster@skok.cz" (17)
SCRIPT_FILENAME
"/data/www/perspektivnichrudimsko.cz/www.perspektivnichrudimsko.cz/public/index.php" (82)
REMOTE_PORT
"58864" (5)
REDIRECT_URL
"/public/index.php" (17)
GATEWAY_INTERFACE
"CGI/1.1" (7)
SERVER_PROTOCOL
"HTTP/1.1" (8)
REQUEST_METHOD
"GET" (3)
QUERY_STRING
""
REQUEST_URI
"/category/chrudimska-historie/" (30)
SCRIPT_NAME
"/public/index.php" (17)
TMPDIR
"/data/www/perspektivnichrudimsko.cz/tmp/www.perspektivnichrudimsko.cz" (69)
ORIG_SCRIPT_FILENAME
"/etc/cgi-bin/www/perspektivnichrudimsko.cz/www.perspektivnichrudimsko.cz/php" (76)
ORIG_PATH_INFO
"/public/index.php" (17)
ORIG_PATH_TRANSLATED
"/data/www/perspektivnichrudimsko.cz/www.perspektivnichrudimsko.cz/public/index.php" (82)
ORIG_SCRIPT_NAME
"/php-sys/php" (12)
PHP_SELF
"/public/index.php" (17)
REQUEST_TIME_FLOAT
1710823292.043037891387939453125
REQUEST_TIME
1710823292

$_SESSION

__NFNette Session

Configuration options

HTTP request

URL

https://www.perspektivnichrudimsko.cz/category/chrudimska-historie/

Headers

Mod-RewriteOn
Accept*/*
User-Agentclaudebot
Refererhttp://www.perspektivnichrudimsko.cz/category/chrudimska-historie/
Hostwww.perspektivnichrudimsko.cz

$_GET

empty

$_POST

empty

$_COOKIE

empty

HTTP response

Headers

X-Powered-ByNette Framework 3
X-Frame-OptionsSAMEORIGIN
Set-Cookienette-samesite=1; path=/; SameSite=Strict; HttpOnly
Set-CookiePHPSESSID=is31ehbivagp0l5v42ua1sfqqg8thk7v; expires=Tue, 02-Apr-2024 03:41:32 GMT; Max-Age=1206000; path=/; HttpOnly
ExpiresThu, 19 Nov 1981 08:52:00 GMT
Cache-Controlno-store, no-cache, must-revalidate
Pragmano-cache
Content-Typetext/html; charset=UTF-8