- Квартиры
- Жилые комплексы
- Ком. недвижимость
- Страхование
- Участники рынка
- О компании
Error
Call to a member function getColumn() on null
/home/www/an24.org/backend/protected/controllers/HousesController.php(77)
65 ->findAll(['condition' => $condition, 'params' => $params, 'order' => 't.id']); 66 echo $this->renderPartial('_list_menu', ['geoAreas' => $geoAreas], true, true); 67 } 68 catch (CException $e) 69 { 70 echo $e->getFile().": ".$e->getLine().'<br>'.$e->getMessage(); 71 } 72 } 73 public function actionViewJKs() 74 { 75 try { 76 $condition=''; $params=[]; 77 if (Yii::app()->agent->byUrl->isDeveloper || Yii::app()->agent->byUrl->isContragent) { 78 $condition = "jks.yr24_developer_id = :yr24_developer_id"; 79 $params[':yr24_developer_id'] = Yii::app()->agent->byUrl->id; 80 } 81 $geoRegions = GeoRegion::model()->with('geoAreas', 'geoAreas.jks', 'geoAreas.jks.cover', 'geoAreas.jks.childs', 'geoAreas.jks.city', 'geoAreas.jks.area') 82 ->findAll(['condition'=>$condition, 'params'=>$params, 'order'=>'t.id, geoAreas.id']); 83 $this->render('list', ['geoRegions'=>$geoRegions]); 84 } 85 catch (CException $e) 86 { 87 echo $e->getFile().": ".$e->getLine().'<br>'.$e->getMessage(); 88 } 89 }
Stack Trace
| #0 |
+
–
/home/www/an24.org/backend/framework/db/ar/CActiveRecord.php(1523): CDbCommandBuilder->createColumnCriteria(null, array("url" => "an24"), "", array(), ...) 1518 */ 1519 public function findByAttributes($attributes,$condition='',$params=array()) 1520 { 1521 Yii::trace(get_class($this).'.findByAttributes()','system.db.ar.CActiveRecord'); 1522 $prefix=$this->getTableAlias(true).'.'; 1523 $criteria=$this->getCommandBuilder()->createColumnCriteria($this->getTableSchema(),$attributes,$condition,$params,$prefix); 1524 return $this->query($criteria); 1525 } 1526 1527 /** 1528 * Finds all active records that have the specified attribute values. |
| #1 |
+
–
/home/www/an24.org/backend/protected/components/AgentHandler.php(57): CActiveRecord->findByAttributes(array("url" => "an24")) 52 { 53 $url = 'an24'; 54 if ($url && !is_null($this->_byID) && $this->_byID->url == $url)// 55 $this->_byUrl = $this->_byID; 56 elseif ($url && is_null($this->_byUrl)) 57 $this->_byUrl = User::model()->findByAttributes(array('url' => $url)); 58 elseif (!$url && !is_null($this->byID)) 59 $this->_byUrl = $this->_byID; 60 61 return $this->_byUrl; 62 } |
| #2 |
+
–
/home/www/an24.org/backend/framework/base/CComponent.php(111): AgentHandler->getByUrl() 106 */ 107 public function __get($name) 108 { 109 $getter='get'.$name; 110 if(method_exists($this,$getter)) 111 return $this->$getter(); 112 elseif(strncasecmp($name,'on',2)===0 && method_exists($this,$name)) 113 { 114 // duplicating getEventHandlers() here for performance 115 $name=strtolower($name); 116 if(!isset($this->_e[$name])) |
| #3 |
+
–
/home/www/an24.org/backend/protected/controllers/HousesController.php(77): CComponent->__get("byUrl") 72 } 73 public function actionViewJKs() 74 { 75 try { 76 $condition=''; $params=[]; 77 if (Yii::app()->agent->byUrl->isDeveloper || Yii::app()->agent->byUrl->isContragent) { 78 $condition = "jks.yr24_developer_id = :yr24_developer_id"; 79 $params[':yr24_developer_id'] = Yii::app()->agent->byUrl->id; 80 } 81 $geoRegions = GeoRegion::model()->with('geoAreas', 'geoAreas.jks', 'geoAreas.jks.cover', 'geoAreas.jks.childs', 'geoAreas.jks.city', 'geoAreas.jks.area') 82 ->findAll(['condition'=>$condition, 'params'=>$params, 'order'=>'t.id, geoAreas.id']); |
| #4 |
+
–
/home/www/an24.org/backend/framework/web/actions/CInlineAction.php(49): HousesController->actionViewJKs() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
| #5 |
+
–
/home/www/an24.org/backend/framework/web/CController.php(308): CInlineAction->runWithParams(array()) 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; |
| #6 |
+
–
/home/www/an24.org/backend/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
| #7 |
+
–
/home/www/an24.org/backend/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 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); |
| #8 |
+
–
/home/www/an24.org/backend/framework/web/CWebApplication.php(282): CController->run("viewJKs") 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))); |
| #9 |
+
–
/home/www/an24.org/site/templates/default.php(786): CWebApplication->runController("houses/viewJKs") 781 } 782 elseif ($GLOBALS['links'][0]['name'] == 'kompleksy') 783 { 784 // выполняем экшен(ы) 785 if ($GLOBALS['link']['name'] == 'kompleksy' && !$_GET['jk_name']) 786 Yii::app()->runController('houses/viewJKs'); 787 if ($GLOBALS['link']['name'] != 'kompleksy' || $_GET['jk_name']) 788 Yii::app()->runController('houses/viewJK'); 789 } 790 elseif ($GLOBALS['link']['name'] == 'pokupka_kvartiryi') 791 include "site/base/modules/buy_nedv/buy.php"; |
| #10 |
+
–
/home/www/an24.org/index.php(69): include("/home/www/an24.org/site/templates/default.php") 64 if (is_numeric($_GET[rid]) AND !isset($_COOKIE[refer])) 65 inc_ref_count($_GET[rid], true); 66 if (is_numeric($_COOKIE[refer])) 67 inc_ref_count($_COOKIE[refer], false); 68 69 include "site/templates/default.php"; 70 71 72 73 74 |
2026-01-12 11:17:08 nginx/1.12.2 Yii Framework/1.1.16
