Mê Cung Thần Nông - Pan's Labyrinth (2006)

Error PHP Warning – yii\base\ErrorException

imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file

  • 1. in /home/canholyt/khonggianlytuong.com/main/phim/vendor/noumo/easyii/helpers/GD.php at line 21 12131415161718192021222324252627282930 { if (file_exists($file)) { $imageData = getimagesize($file); $this->_mime = image_type_to_mime_type($imageData[2]); $this->_width = $imageData[0]; $this->_height = $imageData[1]; switch ($this->_mime) { case 'image/jpeg': $this->_image = imagecreatefromjpeg($file); break; case 'image/png': $this->_image = imagecreatefrompng($file); break; case 'image/gif': $this->_image = imagecreatefromgif($file); break; } }
  • 2. yii\base\ErrorHandler::handleError(2, 'imagecreatefromjpeg(): gd-jpeg, ...', '/home/canholyt/khonggianlytuong....', 21, ...)
  • 3. in /home/canholyt/khonggianlytuong.com/main/phim/vendor/noumo/easyii/helpers/GD.php – imagecreatefromjpeg('/home/canholyt/khonggianlytuong....') at line 21 15161718192021222324252627 $this->_mime = image_type_to_mime_type($imageData[2]); $this->_width = $imageData[0]; $this->_height = $imageData[1]; switch ($this->_mime) { case 'image/jpeg': $this->_image = imagecreatefromjpeg($file); break; case 'image/png': $this->_image = imagecreatefrompng($file); break; case 'image/gif': $this->_image = imagecreatefromgif($file);
  • 4. in /home/canholyt/khonggianlytuong.com/main/phim/vendor/noumo/easyii/helpers/Image.php – yii\easyii\helpers\GD::__construct('/home/canholyt/khonggianlytuong....') at line 50 44454647484950515253545556 } static function copyResizedImage($inputFile, $outputFile, $width, $height = null, $crop = true) { if (extension_loaded('gd')) { $image = new GD($inputFile); if($height) { if($width && $crop){ $image->cropThumbnail($width, $height); } else { $image->resize($width, $height);
  • 5. in /home/canholyt/khonggianlytuong.com/main/phim/vendor/noumo/easyii/helpers/Image.php – yii\easyii\helpers\Image::copyResizedImage('/home/canholyt/khonggianlytuong....', '/home/canholyt/khonggianlytuong....', null, 170, ...) at line 39 33343536373839404142434445 $thumbName = $info['filename'] . '-' . md5( filemtime($filename) . (int)$width . (int)$height . (int)$crop ) . '.' . $info['extension']; $thumbFile = Yii::getAlias('@webroot') . DIRECTORY_SEPARATOR . Upload::$UPLOADS_DIR . DIRECTORY_SEPARATOR . 'thumbs' . DIRECTORY_SEPARATOR . $thumbName; $thumbWebFile = SITE_PATH.'/' . Upload::$UPLOADS_DIR . '/thumbs/' . $thumbName; if(file_exists($thumbFile)){ return $thumbWebFile; } elseif(FileHelper::createDirectory(dirname($thumbFile), 0777) && self::copyResizedImage($filename, $thumbFile, $width, $height, $crop)){ return $thumbWebFile; } } return ''; }
  • 6. in /home/canholyt/khonggianlytuong.com/main/phim/app/views/the/_item_tran.php – yii\easyii\helpers\Image::thumb('/uploads/catalog/M3CMrSXDwdQ1524...', null, 170) at line 14 891011121314151617181920 use yii\easyii\modules\catalog\models\ItemLike; //echo '<pre>';print_r($item);echo '</pre>';exit; $addToCartForm = new AddToCartForm(); if(!empty($item->image)){ $image_tag = Html::img(Image::thumb($item->image,null,170)); }else{ $data = ItemData::find()->where('item_id ='.$item->item_id)->all(); if(!empty($data)){$image_tag = '<img src="'.$data[0]->value.'" alt="'.$item->title.'">';} else{$image_tag = '';} //$item->data[$data[0]->name] = $data[0]->value; }
  • 7. in /home/canholyt/khonggianlytuong.com/main/phim/vendor/yiisoft/yii2/base/View.php – require('/home/canholyt/khonggianlytuong....') at line 325 319320321322323324325326327328329330331 */ public function renderPhpFile($_file_, $_params_ = []) { ob_start(); ob_implicit_flush(false); extract($_params_, EXTR_OVERWRITE); require($_file_); return ob_get_clean(); } /** * Renders dynamic content returned by the given PHP statements.
  • 8. in /home/canholyt/khonggianlytuong.com/main/phim/vendor/yiisoft/yii2/base/View.php – yii\base\View::renderPhpFile('/home/canholyt/khonggianlytuong....', ['item' => yii\easyii\modules\catalog\models\Item, 'i' => 24, 'tong' => 24]) at line 247 241242243244245246247248249250251252253 $this->renderers[$ext] = Yii::createObject($this->renderers[$ext]); } /* @var $renderer ViewRenderer */ $renderer = $this->renderers[$ext]; $output = $renderer->render($this, $viewFile, $params); } else { $output = $this->renderPhpFile($viewFile, $params); } $this->afterRender($viewFile, $params, $output); } array_pop($this->_viewFiles); $this->context = $oldContext;
  • 9. in /home/canholyt/khonggianlytuong.com/main/phim/vendor/yiisoft/yii2/base/View.php – yii\base\View::renderFile('/home/canholyt/khonggianlytuong....', ['item' => yii\easyii\modules\catalog\models\Item, 'i' => 24, 'tong' => 24], null) at line 149 143144145146147148149150151152153154155 * @throws InvalidParamException if the view cannot be resolved or the view file does not exist. * @see renderFile() */ public function render($view, $params = [], $context = null) { $viewFile = $this->findViewFile($view, $context); return $this->renderFile($viewFile, $params, $context); } /** * Finds the view file based on the given view name. * @param string $view the view name or the path alias of the view file. Please refer to [[render()]] * on how to specify this parameter.
  • 10. in /home/canholyt/khonggianlytuong.com/main/phim/app/views/the/view.php – yii\base\View::render('_item_tran', ['item' => yii\easyii\modules\catalog\models\Item, 'i' => 24, 'tong' => 24]) at line 209 203204205206207208209210211212213214215 <?php if(count($items)>0){ $i=1; echo '<div class="col-xs-12 slider-row rela-video" style="padding:0;">'; echo '<h4 class="col-xs-12 text-left">Phim cùng danh mục</h4>'; foreach($items as $item_re){ echo $this->render('_item_tran', ['item' => $item_re,'i' => $i,'tong'=>count($items)]); $i++; } foreach($itemsrandom as $item_re){ echo $this->render('_item_tran', ['item' => $item_re,'i' => $i,'tong'=>count($items)]); $i++; }
  • 11. in /home/canholyt/khonggianlytuong.com/main/phim/vendor/yiisoft/yii2/base/View.php – require('/home/canholyt/khonggianlytuong....') at line 325 319320321322323324325326327328329330331 */ public function renderPhpFile($_file_, $_params_ = []) { ob_start(); ob_implicit_flush(false); extract($_params_, EXTR_OVERWRITE); require($_file_); return ob_get_clean(); } /** * Renders dynamic content returned by the given PHP statements.
  • 12. in /home/canholyt/khonggianlytuong.com/main/phim/vendor/yiisoft/yii2/base/View.php – yii\base\View::renderPhpFile('/home/canholyt/khonggianlytuong....', ['item' => yii\easyii\modules\catalog\api\ItemObject, 'items' => [yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, ...], 'items_list' => [], 'itemsrandom' => [yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, ...], ...]) at line 247 241242243244245246247248249250251252253 $this->renderers[$ext] = Yii::createObject($this->renderers[$ext]); } /* @var $renderer ViewRenderer */ $renderer = $this->renderers[$ext]; $output = $renderer->render($this, $viewFile, $params); } else { $output = $this->renderPhpFile($viewFile, $params); } $this->afterRender($viewFile, $params, $output); } array_pop($this->_viewFiles); $this->context = $oldContext;
  • 13. in /home/canholyt/khonggianlytuong.com/main/phim/vendor/yiisoft/yii2/base/View.php – yii\base\View::renderFile('/home/canholyt/khonggianlytuong....', ['item' => yii\easyii\modules\catalog\api\ItemObject, 'items' => [yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, ...], 'items_list' => [], 'itemsrandom' => [yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, ...], ...], app\controllers\TheController) at line 149 143144145146147148149150151152153154155 * @throws InvalidParamException if the view cannot be resolved or the view file does not exist. * @see renderFile() */ public function render($view, $params = [], $context = null) { $viewFile = $this->findViewFile($view, $context); return $this->renderFile($viewFile, $params, $context); } /** * Finds the view file based on the given view name. * @param string $view the view name or the path alias of the view file. Please refer to [[render()]] * on how to specify this parameter.
  • 14. in /home/canholyt/khonggianlytuong.com/main/phim/vendor/yiisoft/yii2/base/Controller.php – yii\base\View::render('view', ['item' => yii\easyii\modules\catalog\api\ItemObject, 'items' => [yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, ...], 'items_list' => [], 'itemsrandom' => [yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, ...], ...], app\controllers\TheController) at line 371 365366367368369370371372373374375376377 * These parameters will not be available in the layout. * @return string the rendering result. * @throws InvalidParamException if the view file or the layout file does not exist. */ public function render($view, $params = []) { $content = $this->getView()->render($view, $params, $this); return $this->renderContent($content); } /** * Renders a static string by applying a layout. * @param string $content the static string being rendered
  • 15. in /home/canholyt/khonggianlytuong.com/main/phim/app/controllers/TheController.php – yii\base\Controller::render('view', ['item' => yii\easyii\modules\catalog\api\ItemObject, 'items' => [yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, ...], 'items_list' => [], 'itemsrandom' => [yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, yii\easyii\modules\catalog\models\Item, ...], ...]) at line 226 220221222223224225226227228229230231232 return $this->render('view', [ 'item' => $item, 'items' => $items, 'items_list' => $items_list, 'itemsrandom' => $itemsrandom, 'addToCartForm' => new \app\models\AddToCartForm() ]); } public function actionUserinter(){ if (Yii::$app->request->post()) { if (Yii::$app->request->isAjax) { $user_id = Yii::$app->users->id;
  • 16. app\controllers\TheController::actionChitiet('me-cung-than-nong-pan-s-labyrint...')
  • 17. in /home/canholyt/khonggianlytuong.com/main/phim/vendor/yiisoft/yii2/base/InlineAction.php – call_user_func_array([app\controllers\TheController, 'actionChitiet'], ['me-cung-than-nong-pan-s-labyrint...']) at line 55 495051525354555657 $args = $this->controller->bindActionParams($this, $params); Yii::trace('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } }
  • 18. in /home/canholyt/khonggianlytuong.com/main/phim/vendor/yiisoft/yii2/base/Controller.php – yii\base\InlineAction::runWithParams(['slug' => 'me-cung-than-nong-pan-s-labyrint...']) at line 151 145146147148149150151152153154155156157 } $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */
  • 19. in /home/canholyt/khonggianlytuong.com/main/phim/vendor/yiisoft/yii2/base/Module.php – yii\base\Controller::runAction('chitiet', ['slug' => 'me-cung-than-nong-pan-s-labyrint...']) at line 455 449450451452453454455456457458459460461 $parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); Yii::$app->controller = $oldController; return $result; } else { $id = $this->getUniqueId(); throw new InvalidRouteException('Unable to resolve the request "' . ($id === '' ? $route : $id . '/' . $route) . '".');
  • 20. in /home/canholyt/khonggianlytuong.com/main/phim/vendor/yiisoft/yii2/web/Application.php – yii\base\Module::runAction('the/chitiet', ['slug' => 'me-cung-than-nong-pan-s-labyrint...']) at line 84 78798081828384858687888990 $params = $this->catchAll; unset($params[0]); } try { Yii::trace("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } else { $response = $this->getResponse(); if ($result !== null) { $response->data = $result;
  • 21. in /home/canholyt/khonggianlytuong.com/main/phim/vendor/yiisoft/yii2/base/Application.php – yii\web\Application::handleRequest(yii\web\Request) at line 375 369370371372373374375376377378379380381 try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send();
  • 22. in /home/canholyt/khonggianlytuong.com/main/phim/index.php – yii\base\Application::run() at line 11 567891011 require(__DIR__ . '/vendor/autoload.php'); require(__DIR__ . '/vendor/yiisoft/yii2/Yii.php'); $config = require(__DIR__ . '/app/config/web.php'); (new yii\web\Application($config))->run();
$_GET = [ 'slug' => 'me-cung-than-nong-pan-s-labyrinth-2006', ]; $_SERVER = [ 'CONTEXT_DOCUMENT_ROOT' => '/home/canholyt/khonggianlytuong.com/main', 'CONTEXT_PREFIX' => '', 'DOCUMENT_ROOT' => '/home/canholyt/khonggianlytuong.com/main', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CDN_LOOP' => 'cloudflare; loops=1', 'HTTP_CF_CONNECTING_IP' => '103.110.85.167', 'HTTP_CF_IPCOUNTRY' => 'VN', 'HTTP_CF_RAY' => '8e9213ad5c2d0963-SIN', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'khonggianlytuong.com', 'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7', 'HTTP_X_FORWARDED_FOR' => '103.110.85.167', 'HTTP_X_FORWARDED_PROTO' => 'https', 'PATH' => '/bin:/usr/bin:/usr/local/php/bin', 'PHPRC' => '/home/canholyt', 'QUERY_STRING' => '', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'Z0cOumQtm0Q0A3favGHp-QAAAMY', 'REDIRECT_URL' => '/phim/me-cung-than-nong-pan-s-labyrinth-2006', 'REMOTE_ADDR' => '162.158.163.128', 'REMOTE_PORT' => '27296', 'REQUEST_METHOD' => 'GET', 'REQUEST_SCHEME' => 'http', 'REQUEST_URI' => '/phim/me-cung-than-nong-pan-s-labyrinth-2006', 'SCRIPT_FILENAME' => '/home/canholyt/khonggianlytuong.com/main/phim/index.php', 'SCRIPT_NAME' => '/phim/index.php', 'SERVER_ADDR' => '128.199.252.51', 'SERVER_ADMIN' => '[email protected]', 'SERVER_NAME' => 'khonggianlytuong.com', 'SERVER_PORT' => '80', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips', 'UNIQUE_ID' => 'Z0cOumQtm0Q0A3favGHp-QAAAMY', 'PHP_SELF' => '/phim/index.php', 'REQUEST_TIME_FLOAT' => 1732710074.5396259, 'REQUEST_TIME' => 1732710074, ]; Yii Framework

2024-11-27, 19:21:14

Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips

Yii Framework/2.0.5-dev

Từ khóa » Phim Mê Cung Thần Nông Thuyết Minh