/home/topseti_user/web/topseti.ru/public_html/protected/modules/media/vendors/EPhpThumb/lib/phpThumb/src/GdThumb.inc.php(111)
099 100 if ($this->isDataStream === false) 101 { 102 $this->verifyFormatCompatiblity(); 103 } 104 105 switch ($this->format) 106 { 107 case 'GIF': 108 $this->oldImage = imagecreatefromgif($this->fileName); 109 break; 110 case 'JPG': 111 $this->oldImage = imagecreatefromjpeg($this->fileName); 112 break; 113 case 'PNG': 114 $this->oldImage = imagecreatefrompng($this->fileName); 115 break; 116 case 'STRING': 117 $this->oldImage = imagecreatefromstring($this->fileName); 118 break; 119 } 120 121 $this->currentDimensions = array 122 ( 123 'width' => imagesx($this->oldImage),
#0 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/modules/media/vendors/EPhpThumb/lib/phpThumb/src/GdThumb.inc.php(111): imagecreatefromjpeg("/home/topseti_user/web/topseti.ru/public_html/media/app_models_P...") 106 { 107 case 'GIF': 108 $this->oldImage = imagecreatefromgif($this->fileName); 109 break; 110 case 'JPG': 111 $this->oldImage = imagecreatefromjpeg($this->fileName); 112 break; 113 case 'PNG': 114 $this->oldImage = imagecreatefrompng($this->fileName); 115 break; 116 case 'STRING': |
#1 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/modules/media/vendors/EPhpThumb/lib/phpThumb/src/ThumbLib.inc.php(130): GdThumb->__construct("/home/topseti_user/web/topseti.ru/public_html/media/app_models_P...", array("resizeUp" => true), false) 125 126 // attempt to load the default implementation 127 if ($pt->isValidImplementation(self::$defaultImplemenation)) 128 { 129 $imp = $implementationMap[self::$defaultImplemenation]; 130 $toReturn = new $imp($filename, $options, $isDataStream); 131 } 132 // load the gd implementation if default failed 133 else if ($pt->isValidImplementation('gd')) 134 { 135 $imp = $implementationMap['gd']; |
#2 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/modules/media/vendors/EPhpThumb/EPhpThumb.php(56): PhpThumbFactory::create("/home/topseti_user/web/topseti.ru/public_html/media/app_models_P...", array("resizeUp" => true)) 51 * @return PhpThumb object 52 */ 53 protected static function thumbFactory($filePath) 54 { 55 try{ 56 return PhpThumbFactory::create($filePath,self::$_phpThumbOptions); 57 } 58 catch (Exception $e) 59 { 60 throw new CException($e->getMessage(),$e->getCode()); 61 } |
#3 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/modules/media/vendors/EPhpThumb/EPhpThumb.php(44): EPhpThumb::thumbFactory("/home/topseti_user/web/topseti.ru/public_html/media/app_models_P...") 39 * @param string $filePath the image file path. 40 * @return PhpThumb object 41 */ 42 public function create($filePath) 43 { 44 return new EThumbnail(EPhpThumb::thumbFactory($filePath)); 45 } 46 47 /** 48 * Creates a new phpThumb object. 49 * @param string $filePath the image file path. |
#4 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/modules/media/extensions/Thumbnails.php(33): EPhpThumb->create("/home/topseti_user/web/topseti.ru/public_html/media/app_models_P...") 28 29 $thumb=new \EPhpThumb(); 30 $thumb->options['resizeUp'] = true; 31 $thumb->init(); //this is needed 32 try{ 33 $thumb->create($filename) 34 ->{$method}($width,$height) 35 ->save($thumbPath); 36 chmod($thumbPath, 0766); 37 }catch(\Exception $e){ 38 \Yii::log($e->getMessage(), \CLogger::LEVEL_ERROR); |
#5 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/modules/media/models/MediaItem.php(61): app\modules\media\extensions\Thumbnails::createThumbnailForFile("/home/topseti_user/web/topseti.ru/public_html/media/app_models_P...", 100, 60, "") 56 public function getThumbnailUrl($width, $height, $method = '') { 57 if (!file_exists($this->getPath())) { 58 return '/css/img/noimage.jpg'; 59 } 60 61 $thumbnail = Thumbnails::createThumbnailForFile($this->getPath(),$width,$height,$method); 62 return \Yii::app()->getModule('media')->filenameToUrl($thumbnail); 63 } 64 65 } |
#6 |
unknown(0): app\modules\media\models\MediaItem->getThumbnailUrl(100, 60)
|
#7 |
+
–
/home/topseti_user/web/topseti.ru/public_html/vendor/twig/twig/lib/Twig/Template.php(461): call_user_func_array(array(app\modules\media\models\MediaItem, "getThumbnailUrl"), array(100, 60)) 456 } 457 458 // Some objects throw exceptions when they have __call, and the method we try 459 // to call is not supported. If ignoreStrictCheck is true, we should return null. 460 try { 461 $ret = call_user_func_array(array($object, $method), $arguments); 462 } catch (BadMethodCallException $e) { 463 if ($call && ($ignoreStrictCheck || !$this->env->isStrictVariables())) { 464 return; 465 } 466 throw $e; |
#8 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/runtime/views_twig/84/e4/c059b8d2d5a41e778628142d5536ac6081912db888f3a3d2edefd5f2fa04.php(501): Twig_Template->getAttribute(app\modules\media\models\MediaItem, "getThumbnailUrl", array(100, 60), "method") 496 if ($this->getAttribute($this->getAttribute((isset($context["item"]) ? $context["item"] : null), "images"), 0, array(), "array")) { 497 // line 218 498 echo " <img alt=\""; 499 echo $this->getAttribute((isset($context["item"]) ? $context["item"] : null), "title"); 500 echo "\" class=\"image\" src=\""; 501 echo $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["item"]) ? $context["item"] : null), "images"), 0, array(), "array"), "getThumbnailUrl", array(0 => 100, 1 => 60), "method"); 502 echo "\" /> 503 "; 504 } 505 // line 220 506 echo " </div> |
#9 |
+
–
/home/topseti_user/web/topseti.ru/public_html/vendor/twig/twig/lib/Twig/Template.php(279): __TwigTemplate_84e4c059b8d2d5a41e778628142d5536ac6081912db888f3a3d2edefd5f2fa04->doDisplay(array("item" => app\models\ProductItem, "mostPopular" => array(app\models\ProductItem, app\models\ProductItem, app\models\ProductItem, app\models\ProductItem, ...), "fastOrderModel" => app\models\Order\FastOrderForm, "inFavorites" => false, ...), array()) 274 } 275 276 protected function displayWithErrorHandling(array $context, array $blocks = array()) 277 { 278 try { 279 $this->doDisplay($context, $blocks); 280 } catch (Twig_Error $e) { 281 if (!$e->getTemplateFile()) { 282 $e->setTemplateFile($this->getTemplateName()); 283 } 284 |
#10 |
+
–
/home/topseti_user/web/topseti.ru/public_html/vendor/twig/twig/lib/Twig/Template.php(253): Twig_Template->displayWithErrorHandling(array("item" => app\models\ProductItem, "mostPopular" => array(app\models\ProductItem, app\models\ProductItem, app\models\ProductItem, app\models\ProductItem, ...), "fastOrderModel" => app\models\Order\FastOrderForm, "inFavorites" => false, ...), array()) 248 /** 249 * {@inheritdoc} 250 */ 251 public function display(array $context, array $blocks = array()) 252 { 253 $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks)); 254 } 255 256 /** 257 * {@inheritdoc} 258 */ |
#11 |
+
–
/home/topseti_user/web/topseti.ru/public_html/vendor/twig/twig/lib/Twig/Template.php(264): Twig_Template->display(array("item" => app\models\ProductItem, "mostPopular" => array(app\models\ProductItem, app\models\ProductItem, app\models\ProductItem, app\models\ProductItem, ...), "fastOrderModel" => app\models\Order\FastOrderForm, "inFavorites" => false, ...)) 259 public function render(array $context) 260 { 261 $level = ob_get_level(); 262 ob_start(); 263 try { 264 $this->display($context); 265 } catch (Exception $e) { 266 while (ob_get_level() > $level) { 267 ob_end_clean(); 268 } 269 |
#12 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/extensions/CTwigViewRenderer/CTwigViewRenderer.php(149): Twig_Template->render(array("item" => app\models\ProductItem, "mostPopular" => array(app\models\ProductItem, app\models\ProductItem, app\models\ProductItem, app\models\ProductItem, ...), "fastOrderModel" => app\models\Order\FastOrderForm, "inFavorites" => false, ...)) 144 if(is_a($context, 'CWidget')) 145 $this->twig->getLoader()->addPath(dirname($sourceFile)); 146 147 $template = $this->twig->loadTemplate($sourceFile); 148 149 $result = $template->render($data); 150 151 if($return) 152 return $result; 153 else 154 echo $result; |
#13 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/yiilite.php(3229): CTwigViewRenderer->renderFile(app\controllers\ItemController, "/home/topseti_user/web/topseti.ru/public_html/protected/views/it...", array("item" => app\models\ProductItem, "mostPopular" => array(app\models\ProductItem, app\models\ProductItem, app\models\ProductItem, app\models\ProductItem, ...), "fastOrderModel" => app\models\Order\FastOrderForm, "inFavorites" => false, ...), true) 3224 abstract public function getViewFile($viewName); 3225 public function renderFile($viewFile,$data=null,$return=false) 3226 { 3227 $widgetCount=count($this->_widgetStack); 3228 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 3229 $content=$renderer->renderFile($this,$viewFile,$data,$return); 3230 else 3231 $content=$this->renderInternal($viewFile,$data,$return); 3232 if(count($this->_widgetStack)===$widgetCount) 3233 return $content; 3234 else |
#14 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/yiilite.php(3655): CBaseController->renderFile("/home/topseti_user/web/topseti.ru/public_html/protected/views/it...", array("item" => app\models\ProductItem, "mostPopular" => array(app\models\ProductItem, app\models\ProductItem, app\models\ProductItem, app\models\ProductItem, ...), "fastOrderModel" => app\models\Order\FastOrderForm, "inFavorites" => false, ...), true) 3650 } 3651 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 3652 { 3653 if(($viewFile=$this->getViewFile($view))!==false) 3654 { 3655 $output=$this->renderFile($viewFile,$data,true); 3656 if($processOutput) 3657 $output=$this->processOutput($output); 3658 if($return) 3659 return $output; 3660 else |
#15 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/yiilite.php(3623): CController->renderPartial("fresh-view", array("item" => app\models\ProductItem, "mostPopular" => array(app\models\ProductItem, app\models\ProductItem, app\models\ProductItem, app\models\ProductItem, ...), "fastOrderModel" => app\models\Order\FastOrderForm, "inFavorites" => false, ...), true) 3618 } 3619 public function render($view,$data=null,$return=false) 3620 { 3621 if($this->beforeRender($view)) 3622 { 3623 $output=$this->renderPartial($view,$data,true); 3624 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 3625 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 3626 $this->afterRender($view,$output); 3627 $output=$this->processOutput($output); 3628 if($return) |
#16 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/controllers/ItemController.php(231): CController->render("fresh-view", array("item" => app\models\ProductItem, "mostPopular" => array(app\models\ProductItem, app\models\ProductItem, app\models\ProductItem, app\models\ProductItem, ...), "fastOrderModel" => app\models\Order\FastOrderForm, "inFavorites" => false, ...)) 226 \Yii::app()->user->setFlash(User::FLASH_POPUP, 'Благодарим вас за оформление заказа в компании ТопСети. Наши специалисты свяжутся с вами в ближайшее время для уточнения деталей заказа.'); 227 $this->redirect($this->createUrl('item/view', ['id' => $item->id])); 228 } 229 } 230 } 231 $this->render('fresh-view', compact('item', 'mostPopular', 'fastOrderModel', 'inFavorites', 'inCompare', 'featuresParameter', 'itemParameters', 'similarItems')); 232 } 233 } |
#17 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/yiilite.php(3891): app\controllers\ItemController->actionView() 3886 $controller=$this->getController(); 3887 $method=new ReflectionMethod($controller, $methodName); 3888 if($method->getNumberOfParameters()>0) 3889 return $this->runWithParamsInternal($controller, $method, $params); 3890 else 3891 return $controller->$methodName(); 3892 } 3893 } 3894 class CWebUser extends CApplicationComponent implements IWebUser 3895 { 3896 const FLASH_KEY_PREFIX='Yii.CWebUser.flash.'; |
#18 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/yiilite.php(3403): CInlineAction->runWithParams(array("itemId" => "73821")) 3398 { 3399 $priorAction=$this->_action; 3400 $this->_action=$action; 3401 if($this->beforeAction($action)) 3402 { 3403 if($action->runWithParams($this->getActionParams())===false) 3404 $this->invalidActionParams($action); 3405 else 3406 $this->afterAction($action); 3407 } 3408 $this->_action=$priorAction; |
#19 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/yiilite.php(3388): CController->runAction(CInlineAction) 3383 $this->missingAction($actionID); 3384 } 3385 public function runActionWithFilters($action,$filters) 3386 { 3387 if(empty($filters)) 3388 $this->runAction($action); 3389 else 3390 { 3391 $priorAction=$this->_action; 3392 $this->_action=$action; 3393 CFilterChain::create($this,$action,$filters)->run(); |
#20 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/yiilite.php(3378): CController->runActionWithFilters(CInlineAction, array()) 3373 { 3374 if(($parent=$this->getModule())===null) 3375 $parent=Yii::app(); 3376 if($parent->beforeControllerAction($this,$action)) 3377 { 3378 $this->runActionWithFilters($action,$this->filters()); 3379 $parent->afterControllerAction($this,$action); 3380 } 3381 } 3382 else 3383 $this->missingAction($actionID); |
#21 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/yiilite.php(1725): CController->run("view") 1720 { 1721 list($controller,$actionID)=$ca; 1722 $oldController=$this->_controller; 1723 $this->_controller=$controller; 1724 $controller->init(); 1725 $controller->run($actionID); 1726 $this->_controller=$oldController; 1727 } 1728 else 1729 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1730 array('{route}'=>$route===''?$this->defaultController:$route))); |
#22 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/yiilite.php(1645): CWebApplication->runController("item/view") 1640 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1641 $_GET[$name]=$value; 1642 } 1643 else 1644 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1645 $this->runController($route); 1646 } 1647 protected function registerCoreComponents() 1648 { 1649 parent::registerCoreComponents(); 1650 $components=array( |
#23 |
+
–
/home/topseti_user/web/topseti.ru/public_html/protected/yiilite.php(1170): CWebApplication->processRequest() 1165 public function run() 1166 { 1167 if($this->hasEventHandler('onBeginRequest')) 1168 $this->onBeginRequest(new CEvent($this)); 1169 register_shutdown_function(array($this,'end'),0,false); 1170 $this->processRequest(); 1171 if($this->hasEventHandler('onEndRequest')) 1172 $this->onEndRequest(new CEvent($this)); 1173 } 1174 public function end($status=0,$exit=true) 1175 { |
#24 |
+
–
/home/topseti_user/web/topseti.ru/public_html/index.php(678): CApplication->run() 673 ini_set('display_errors', true); 674 set_time_limit(90); 675 676 require_once($yii); 677 require_once('vendor/autoload.php'); 678 Yii::createWebApplication($config)->run(); 679 |