Error
File: /var/www/html/kremecek.com/app/model/Traits.php:164
154: break; 155: case 3 : 156: $srcHandle = imagecreatefrompng($this->filePath); 157: break; 158: default : 159: throw new Exception('File Type Not Supported! '); 160: return false; 161: } 162: if (!$srcHandle) 163: { 164: throw new Exception('Could not execute imagecreatefrom() function! '); 165: return false; 166: }; 167: 168: $dstHandle = imagecreatetruecolor($dscWidth, $dscHeight);
/var/www/html/kremecek.com/app/model/Traits.php:58 source App\Attach->saveResized(arguments)
48: 49: public function getResizedPath($size) 50: { 51: list($w, $h) = explode('x', $size); 52: $w = (int)$w; 53: $h = (int)$h; 54: $path = $this->filePath . '_i' . $w . 'x' . $h; 55: 56: if (!file_exists($path)) 57: { 58: $this->saveResized($w, $h, false, $path); 59: } 60: 61: return $path; 62: }
$maxWidth | 400
|
---|---|
$maxHeight | 400
|
$enlarge | FALSE
|
$resizedPath | "/var/www/html/kremecek.com/app/../data/bombadarky.com/attach/7438_i400x400" (74)
|
.../html/kremecek.com/app/presenters/CmsPresenter.php:212 source App\Attach->getResizedPath(arguments)
202: if ($maxSize[1] !== null && ($maxSize[1] < $size[1] || !$size[1])) $size[1] = $maxSize[1]; 203: $size = $size[0] || $size[1] ? implode('x', $size) : ''; 204: } 205: } 206: 207: $response = $this->context->getService('httpResponse'); 208: // $response->setContentType($attach->contentType); 209: $response->setExpiration('+ 1 year'); 210: $response->setHeader('Pragma', ''); 211: $this->sendResponse(new Nette\Application\Responses\FileResponse( 212: $size ? $attach->getResizedPath($size) : $attach->filePath, 213: null, $attach->contentType, false 214: )); 215: } 216:
$size | "400x400" (7)
|
---|
inner-code App\Presenters\CmsPresenter->actionAttach(arguments)
$id | "7438" (4)
|
---|---|
$lastModified | "1200000" (7)
|
$fileName | "celek-g-6-jpg" (13)
|
$size | "400x400" (7)
|
.../nette/application/src/Application/UI/Component.php:92 source ReflectionMethod->invokeArgs(arguments)
82: * @param array 83: * @return bool does method exist? 84: */ 85: protected function tryCall($method, array $params) 86: { 87: $rc = $this->getReflection(); 88: if ($rc->hasMethod($method)) { 89: $rm = $rc->getMethod($method); 90: if ($rm->isPublic() && !$rm->isAbstract() && !$rm->isStatic()) { 91: $this->checkRequirements($rm); 92: $rm->invokeArgs($this, $rc->combineArgs($rm, $params)); 93: return TRUE; 94: } 95: } 96: return FALSE;
$object | |
---|---|
$args |
.../nette/application/src/Application/UI/Presenter.php:189 source Nette\Application\UI\Component->tryCall(arguments)
179: } 180: 181: $this->initGlobalParameters(); 182: $this->checkRequirements($this->getReflection()); 183: $this->startup(); 184: if (!$this->startupCheck) { 185: $class = $this->getReflection()->getMethod('startup')->getDeclaringClass()->getName(); 186: throw new Nette\InvalidStateException("Method $class::startup() or its descendant doesn't call parent::startup()."); 187: } 188: // calls $this->action<Action>() 189: $this->tryCall($this->formatActionMethod($this->action), $this->params); 190: 191: // autoload components 192: foreach ($this->globalParams as $id => $foo) { 193: $this->getComponent($id, FALSE);
$method | "actionattach" (12)
|
---|---|
$params |
.../nette/application/src/Application/Application.php:145 source Nette\Application\UI\Presenter->run(arguments)
135: if (!$request->isMethod($request::FORWARD) && !strcasecmp($request->getPresenterName(), $this->errorPresenter)) { 136: throw new BadRequestException('Invalid request. Presenter is not achievable.'); 137: } 138: 139: try { 140: $this->presenter = $this->presenterFactory->createPresenter($request->getPresenterName()); 141: } catch (InvalidPresenterException $e) { 142: throw count($this->requests) > 1 ? $e : new BadRequestException($e->getMessage(), 0, $e); 143: } 144: $this->onPresenter($this, $this->presenter); 145: $response = $this->presenter->run(clone $request); 146: 147: if ($response instanceof Responses\ForwardResponse) { 148: $request = $response->getRequest(); 149: goto process;
$request |
---|
.../nette/application/src/Application/Application.php:83 source Nette\Application\Application->processRequest(arguments)
73: 74: 75: /** 76: * Dispatch a HTTP request to a front controller. 77: * @return void 78: */ 79: public function run() 80: { 81: try { 82: $this->onStartup($this); 83: $this->processRequest($this->createInitialRequest()); 84: $this->onShutdown($this); 85: 86: } catch (\Throwable $e) { 87: } catch (\Exception $e) {
$request |
---|
/var/www/html/kremecek.com/www/index.php:9 source Nette\Application\Application->run()
1: <?php 2: 3: // Uncomment this line if you must temporarily take down your site for maintenance. 4: // require __DIR__ . '/.maintenance.php'; 5: 6: $container = require __DIR__ . '/../app/bootstrap.php'; 7: 8: $container->getByType('Nette\Application\Application') 9: ->run(); 10:
REDIRECT_HTTPS | "on" (2)
|
---|---|
REDIRECT_SSL_TLS_SNI | "bombadarky.com" (14)
|
REDIRECT_STATUS | "200" (3)
|
HTTPS | "on" (2)
|
SSL_TLS_SNI | "bombadarky.com" (14)
|
HTTP_HOST | "bombadarky.com" (14)
|
HTTP_CONNECTION | "keep-alive" (10)
|
HTTP_SEC_CH_UA | ""Google Chrome";v="87", " Not;A Brand";v="99", "Chromium";v="87"" (64)
|
HTTP_SEC_CH_UA_MOBILE | "?1" (2)
|
HTTP_SAVE_DATA | "on" (2)
|
HTTP_USER_AGENT | "Mozilla/5.0 (Linux; Android 8.1.0; DRA-L21) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Mobile Safari/537.36" (124)
|
HTTP_ACCEPT | "image/webp,image/apng,image/*,*/*;q=0.8" (39)
|
HTTP_SEC_FETCH_SITE | "cross-site" (10)
|
HTTP_SEC_FETCH_MODE | "no-cors" (7)
|
HTTP_SEC_FETCH_DEST | "image" (5)
|
HTTP_REFERER | "https://www.google.com/" (23)
|
HTTP_ACCEPT_ENCODING | "gzip, deflate, br" (17)
|
HTTP_ACCEPT_LANGUAGE | "cs-CZ,cs;q=0.9,pl;q=0.8,en;q=0.7" (32)
|
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" (60)
|
SERVER_SIGNATURE | "<address>Apache/2.4.29 (Ubuntu) Server at bombadarky.com Port 443</address>
" (76)
|
SERVER_SOFTWARE | "Apache/2.4.29 (Ubuntu)" (22)
|
SERVER_NAME | "bombadarky.com" (14)
|
SERVER_ADDR | "31.31.72.179" (12)
|
SERVER_PORT | "443" (3)
|
REMOTE_ADDR | "194.228.32.25" (13)
|
DOCUMENT_ROOT | "/var/www/html/kremecek.com/www" (30)
|
REQUEST_SCHEME | "https" (5)
|
CONTEXT_PREFIX | ""
|
CONTEXT_DOCUMENT_ROOT | "/var/www/html/kremecek.com/www" (30)
|
SERVER_ADMIN | "ivan@kremecek.com" (17)
|
SCRIPT_FILENAME | "/var/www/html/kremecek.com/www/index.php" (40)
|
REMOTE_PORT | "9078" (4)
|
REDIRECT_URL | "/attach/7438-1200000/celek-g-6-jpg" (34)
|
GATEWAY_INTERFACE | "CGI/1.1" (7)
|
SERVER_PROTOCOL | "HTTP/1.1" (8)
|
REQUEST_METHOD | "GET" (3)
|
QUERY_STRING | ""
|
REQUEST_URI | "/attach/7438-1200000/celek-g-6-jpg" (34)
|
SCRIPT_NAME | "/index.php" (10)
|
PHP_SELF | "/index.php" (10)
|
REQUEST_TIME_FLOAT | 1609366052.541
|
REQUEST_TIME | 1609366052
|
empty
TEXY_ALL | TRUE
|
---|---|
TEXY_NONE | FALSE
|
TEXY_CONTENT_MARKUP | "\x17"
|
TEXY_CONTENT_REPLACED | "\x16"
|
TEXY_CONTENT_TEXTUAL | "\x15"
|
TEXY_CONTENT_BLOCK | "\x14"
|
TEXY_VERSION | "2.9.0" (5)
|
TEXY_HEADING_DYNAMIC | 1
|
TEXY_HEADING_FIXED | 2
|
TEXY_CHAR | "A-Za-z\x{C0}-\x{2FF}\x{370}-\x{1EFF}" (36)
|
TEXY_MARK | "\x14-\x1F" (9)
|