Nette\Application\BadRequestException #404 search►

Source file

File: .../src/Application/UI/Component.php:324

314: ); 315: } 316: 317: 318: /** 319: * Throws HTTP error. 320: * @throws Nette\Application\BadRequestException 321: */ 322: public function error(string $message = '', int $httpCode = Nette\Http\IResponse::S404_NOT_FOUND): void 323: { 324: throw new Nette\Application\BadRequestException($message, $httpCode); 325: } 326: } 327:

Call stack

  1. .../FrontModule/Presenters/BlogPresenter.php:59 source  Nette\Application\UI\Component->error()

    49: public function actionDetail(string $seo_url): void { 50: $article = $this->getDatabase()->table('ps_blog_articles') 51: ->select('ps_blog_articles.*') 52: ->group('ps_blog_articles.id') 53: ->where(['ps_blog_articles.is_active' => 1, 'ps_blog_articles.row_deleted_at' => NULL, 'ps_blog_articles.seo_url' => $seo_url]) 54: ->where([':ps_blog_articles_categories.id_blog_categories.is_active' => 1, ':ps_blog_articles_categories.id_blog_categories.row_deleted_at' => NULL]) 55: ->fetch(); 56: 57: //404 58: if(!$article) { 59: $this->error(); 60: } 61: 62: if(!isset($_SESSION['articles']['statistics_view'][$article->id])) { 63: $article->update(['statistics_view' => $article->statistics_view + 1]);
  2. inner-code App\FrontModule\Presenters\BlogPresenter->actionDetail(arguments)

    $seo_url
    "pomoc-zahlcenym-zakum-a-rodicum-v-nesnazich" (43)
    
  3. .../src/Application/UI/Component.php:94 source  ReflectionMethod->invokeArgs(arguments)

    84: $rc = $this->getReflection(); 85: if ($rc->hasMethod($method)) { 86: $rm = $rc->getMethod($method); 87: if ($rm->isPublic() && !$rm->isAbstract() && !$rm->isStatic()) { 88: $this->checkRequirements($rm); 89: try { 90: $args = $rc->combineArgs($rm, $params); 91: } catch (Nette\InvalidArgumentException $e) { 92: throw new Nette\Application\BadRequestException($e->getMessage()); 93: } 94: $rm->invokeArgs($this, $args); 95: return true; 96: } 97: } 98: return false;
    $object
    
    
    $args
    
    
  4. .../src/Application/UI/Presenter.php:196 source  Nette\Application\UI\Component->tryCall(arguments)

    186: 187: $this->initGlobalParameters(); 188: $this->checkRequirements($this->getReflection()); 189: $this->onStartup($this); 190: $this->startup(); 191: if (!$this->startupCheck) { 192: $class = $this->getReflection()->getMethod('startup')->getDeclaringClass()->getName(); 193: throw new Nette\InvalidStateException("Method $class::startup() or its descendant doesn't call parent::startup()."); 194: } 195: // calls $this->action<Action>() 196: $this->tryCall($this->formatActionMethod($this->action), $this->params); 197: 198: // autoload components 199: foreach ($this->globalParams as $id => $foo) { 200: $this->getComponent($id, false);
    $method
    "actiondetail" (12)
    
    $params
    
    
  5. .../src/Application/Application.php:149 source  Nette\Application\UI\Presenter->run(arguments)

    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: 151: if ($response instanceof Responses\ForwardResponse) { 152: $request = $response->getRequest(); 153: goto process;
    $request
    
    
  6. .../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
    
    
  7. .../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: fopen(/data/www/perspektivnichrudimsko.cz/www.perspektivnichrudimsko.cz/app/../temp/cache/_Nette.Database.77e8c05a25b261fa857e458d037032d1/_ec3a0633b7ffffb3c5238fa0058ce460): failed to open stream: No such file or directory

.../src/Caching/Storages/FileStorage.php:298

288: } 289: } 290: } 291: 292: 293: /** 294: * Reads cache data from disk. 295: */ 296: protected function readMetaAndLock(string $file, int $lock): ?array 297: { 298: $handle = @fopen($file, 'r+b'); // @ - file may not exist 299: if (!$handle) { 300: return null; 301: } 302:

Nette Application

Requests


Presenter


		

Environment

$_SERVER

PATH
"/usr/local/bin:/usr/bin:/bin" (28)
REDIRECT_HANDLER
"php-script" (10)
REDIRECT_STATUS
"200" (3)
SCRIPT_URL
"/clanek/pomoc-zahlcenym-zakum-a-rodicum-v-nesnazich" (51)
SCRIPT_URI
"https://www.perspektivnichrudimsko.cz/clanek/pomoc-zahlcenym-zakum-a-rodicum-v-nesnazich" (88)
HTTP_MOD_REWRITE
"On" (2)
HTTPS
"on" (2)
SSL_TLS_SNI
"www.perspektivnichrudimsko.cz" (29)
HTTP_ACCEPT
"*/*" (3)
HTTP_USER_AGENT
"claudebot" (9)
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
"3.237.91.98" (11)
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
"50844" (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
"/clanek/pomoc-zahlcenym-zakum-a-rodicum-v-nesnazich" (51)
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
1711648582.6348869800567626953125
REQUEST_TIME
1711648582

$_SESSION

__NFNette Session

Configuration options

HTTP request

URL

https://www.perspektivnichrudimsko.cz/clanek/pomoc-zahlcenym-zakum-a-rodicum-v-nesnazich

Headers

Mod-RewriteOn
Accept*/*
User-Agentclaudebot
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=620krrjpbkfdhmulhv31smhlvk2j8aec; expires=Thu, 11-Apr-2024 16:56:22 GMT; Max-Age=1206000; path=/; HttpOnly
ExpiresThu, 19 Nov 1981 08:52:00 GMT
Cache-Controlno-store, no-cache, must-revalidate
Pragmano-cache
VaryX-Requested-With
Content-Typetext/html; charset=UTF-8