/var/www/wienkiew_com_usr/data/www/wienkiew.com/protected/extensions/CImageHandler.php(134)
122 break; 123 case self::IMG_JPEG: 124 if ($result['image'] = imagecreatefromjpeg($file)) 125 { 126 return $result; 127 } 128 else 129 { 130 throw new Exception('Invalid image jpeg format'); 131 } 132 break; 133 case self::IMG_PNG: 134 if ($result['image'] = imagecreatefrompng($file)) 135 { 136 return $result; 137 } 138 else 139 { 140 throw new Exception('Invalid image png format'); 141 } 142 break; 143 default: 144 throw new Exception('Not supported image format'); 145 } 146 }
#0 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/protected/extensions/CImageHandler.php(134): imagecreatefrompng("/var/www/wienkiew_com_usr/data/www/wienkiew.com/files/models/Sho...") 129 { 130 throw new Exception('Invalid image jpeg format'); 131 } 132 break; 133 case self::IMG_PNG: 134 if ($result['image'] = imagecreatefrompng($file)) 135 { 136 return $result; 137 } 138 else 139 { |
#1 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/protected/extensions/CImageHandler.php(180): CImageHandler->loadImage("/var/www/wienkiew_com_usr/data/www/wienkiew.com/files/models/Sho...") 175 176 public function load($file) 177 { 178 $this->freeImage(); 179 180 if(($this->originalImage = $this->loadImage($file))) 181 { 182 $this->initImage(); 183 $this->fileName = $file; 184 185 |
#2 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/protected/extensions/ThumbResize.php(49): CImageHandler->load("/var/www/wienkiew_com_usr/data/www/wienkiew.com/files/models/Sho...") 44 break; 45 case 'JPG': 46 $image->load($file_orig)->$resizeMethod($height, $weight)->save($fullRealPath, CImageHandler::IMG_JPEG, 100); 47 break; 48 case 'PNG': 49 $image->load($file_orig)->$resizeMethod($height, $weight)->save($fullRealPath, CImageHandler::IMG_PNG, 100); 50 break; 51 } 52 53 } 54 |
#3 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/protected/extensions/behaviors/UploadFileBehavior.php(466): ThumbResize::getThumb("/files/models/Shops/37/image/promod-logo.png", "w500h100", "thumb") 461 public function getThumb($options = '', $noImage = true, $resizeMethod = 'thumb') 462 { 463 if (empty($this->name) && $noImage) { 464 $result = ThumbResize::getNoImage($options ? $options : 'w100h100'); 465 } else { 466 $result = $options ? ThumbResize::getThumb($this->getWebPath(), $options, $resizeMethod) : $this->getWebPath(); 467 } 468 //var_dump($result); 469 return $result; 470 } 471 |
#4 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/protected/views/shops/index.php(55): AttachModelFile->getThumb("w500h100") 50 <div id="grid-container" class="cbp"> 51 <?php foreach ($shops as $shop) { ?> 52 <div class="cbp-item graphic"> 53 <div class="cbp-caption"> 54 <div class="cbp-caption-defaultWrap"> 55 <img src="<?= $shop->image->getThumb('w500h100') ?>" /> 56 </div> 57 <div class="cbp-caption-activeWrap"> 58 <div class="cbp-l-caption-alignCenter"> 59 <div class="cbp-l-caption-body"> 60 <a href="<?= Yii::app()->createUrl('shops/shop', array('alias'=>$shop->alias)) ?>" class="cbp-l-caption-buttonLeft">Подробнее</a> |
#5 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/framework/web/CBaseController.php(126): require("/var/www/wienkiew_com_usr/data/www/wienkiew.com/protected/views/...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#6 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/wienkiew_com_usr/data/www/wienkiew.com/protected/views/...", array("model" => ShopsCategory, "children" => array(ShopsCategory, ShopsCategory), "shops" => array(Shops, Shops, Shops, Shops, ...), "settings" => Settings), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#7 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/framework/web/CController.php(869): CBaseController->renderFile("/var/www/wienkiew_com_usr/data/www/wienkiew.com/protected/views/...", array("model" => ShopsCategory, "children" => array(ShopsCategory, ShopsCategory), "shops" => array(Shops, Shops, Shops, Shops, ...), "settings" => Settings), true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
#8 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/framework/web/CController.php(782): CController->renderPartial("index", array("model" => ShopsCategory, "children" => array(ShopsCategory, ShopsCategory), "shops" => array(Shops, Shops, Shops, Shops, ...), "settings" => Settings), true) 777 */ 778 public function render($view,$data=null,$return=false) 779 { 780 if($this->beforeRender($view)) 781 { 782 $output=$this->renderPartial($view,$data,true); 783 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 784 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 785 786 $this->afterRender($view,$output); 787 |
#9 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/protected/controllers/ShopsController.php(16): CController->render("index", array("model" => ShopsCategory, "children" => array(ShopsCategory, ShopsCategory), "shops" => array(Shops, Shops, Shops, Shops, ...), "settings" => Settings)) 11 12 $children = $model->Children(array('scopes'=>array('visible'))); 13 $shops = $model->Shops(array('scopes'=>array('visible'), 'order'=>'id ASC')); 14 $settings = Settings::model()->findByPk(1); 15 16 $this->render('index', array('model'=>$model, 'children'=>$children, 'shops'=>$shops, 'settings'=>$settings)); 17 } 18 19 public function actionShop($alias) 20 { 21 if(!($model = Shops::model()->visible()->findByAttributes(array('alias'=>$alias)))){ |
#10 |
unknown(0): ShopsController->actionIndex("odejda")
|
#11 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(ShopsController, array("odejda")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#12 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(ShopsController, ReflectionMethod, array("alias" => "odejda")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
#13 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/framework/web/CController.php(308): CInlineAction->runWithParams(array("alias" => "odejda")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#14 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/framework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction) 128 $filter=$this->itemAt($this->filterIndex++); 129 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 130 $filter->filter($this); 131 } 132 else 133 $this->controller->runAction($this->action); 134 } 135 } |
#15 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/framework/web/filters/CFilter.php(40): CFilterChain->run() 35 */ 36 public function filter($filterChain) 37 { 38 if($this->preFilter($filterChain)) 39 { 40 $filterChain->run(); 41 $this->postFilter($filterChain); 42 } 43 } 44 45 /** |
#16 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/framework/web/CController.php(1145): CFilter->filter(CFilterChain) 1140 */ 1141 public function filterAccessControl($filterChain) 1142 { 1143 $filter=new CAccessControlFilter; 1144 $filter->setRules($this->accessRules()); 1145 $filter->filter($filterChain); 1146 } 1147 1148 /** 1149 * Returns a persistent page state value. 1150 * A page state is a variable that is persistent across POST requests of the same page. |
#17 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(CFilterChain) 53 * @param CFilterChain $filterChain the filter chain that the filter is on. 54 */ 55 public function filter($filterChain) 56 { 57 $method='filter'.$this->name; 58 $filterChain->controller->$method($filterChain); 59 } 60 } |
#18 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(CFilterChain) 125 { 126 if($this->offsetExists($this->filterIndex)) 127 { 128 $filter=$this->itemAt($this->filterIndex++); 129 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 130 $filter->filter($this); 131 } 132 else 133 $this->controller->runAction($this->action); 134 } 135 } |
#19 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/framework/web/CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
#20 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl")) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#21 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/framework/web/CWebApplication.php(282): CController->run("index") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#22 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/framework/web/CWebApplication.php(141): CWebApplication->runController("shops/index") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#23 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/framework/base/CApplication.php(169): CWebApplication->processRequest() 164 public function run() 165 { 166 if($this->hasEventHandler('onBeginRequest')) 167 $this->onBeginRequest(new CEvent($this)); 168 register_shutdown_function(array($this,'end'),0,false); 169 $this->processRequest(); 170 if($this->hasEventHandler('onEndRequest')) 171 $this->onEndRequest(new CEvent($this)); 172 } 173 174 /** |
#24 |
+
–
/var/www/wienkiew_com_usr/data/www/wienkiew.com/index.php(46): CApplication->run() 41 $yii=dirname(__FILE__).'/framework/yii.php'; 42 $config = dirname(__FILE__).'/protected/config/frontend.php'; 43 44 require_once($yii); 45 46 Yii::createWebApplication($config)->run(); |