/home/vhm/library/yii/framework/db/CDbCommand.php(543)
531 { 532 if($this->_connection->enableProfiling) 533 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 534 535 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 536 $message=$e->getMessage(); 537 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 538 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 539 540 if(YII_DEBUG) 541 $message.='. The SQL statement executed was: '.$this->getText().$par; 542 543 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 544 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 545 } 546 } 547 548 /** 549 * Builds a SQL SELECT statement from the given query specification. 550 * @param array $query the query specification in name-value pairs. The following 551 * query options are supported: {@link select}, {@link distinct}, {@link from}, 552 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 553 * {@link limit}, {@link offset} and {@link union}. 554 * @throws CDbException if "from" key is not present in given query parameter 555 * @return string the SQL statement
| #0 |
+
–
/home/vhm/library/yii/framework/db/CDbCommand.php(377): CDbCommand->queryInternal("", 0, array()) 372 * @return CDbDataReader the reader object for fetching the query result 373 * @throws CException execution failed 374 */ 375 public function query($params=array()) 376 { 377 return $this->queryInternal('',0,$params); 378 } 379 380 /** 381 * Executes the SQL statement and returns all rows. 382 * @param boolean $fetchAssociative whether each row should be returned as an associated array with |
| #1 |
+
–
/home/vhm/public_html/protected/models/db/Products_Model_ProductsFOMapper.php(400): CDbCommand->query() 395 } 396 $sql .= $where; 397 $sql .= $order; 398 399 $command = $this->connection->createCommand($sql); 400 $reader=$command->query(); 401 402 $CatResult = array(); 403 foreach($reader as $row){ 404 $CatResult [] = $row; 405 |
| #2 |
unknown(0): Products_Model_ProductsFOMapper->getCategoriesFO(array("lang" => "es_ES", "id_store" => "1", "order" => "cf.name", "id" => "<img alt="" src="http://www.vhm.pt/images/1/editor/images/Footer..."))
|
| #3 |
+
–
/home/vhm/public_html/protected/models/DataAdapter.php(197): call_user_func_array(array(Products_Model_ProductsFOMapper, "getCategoriesFO"), array(array("lang" => "es_ES", "id_store" => "1", "order" => "cf.name", "id" => "<img alt="" src="http://www.vhm.pt/images/1/editor/images/Footer..."))) 192 $function = $request['dataset']['function']; 193 $args = $request['dataset']['vars']; 194 195 196 $model = new $mapper(); 197 $result = call_user_func_array(array($model, $function ), $args); 198 199 return $result; 200 201 } 202 return false; |
| #4 |
+
–
/home/vhm/public_html/protected/models/DataAdapter.php(90): DataAdapter->local_db_Request(array("dataset" => array("mapper" => "Products_Model_ProductsFOMapper", "vars" => array(array("lang" => "es_ES", "id_store" => "1", "order" => "cf.name", "id" => "<img alt="" src="http://www.vhm.pt/images/1/editor/images/Footer...")), "function" => "getCategoriesFO"))) 85 86 if($this->config == 'zendWebservice') 87 return $this->ZendWebGetRequest($query); 88 89 if($this->config == 'local_db') 90 return $this->local_db_Request($query); 91 92 return false; 93 } 94 95 |
| #5 |
+
–
/home/vhm/public_html/protected/models/Categories.php(91): DataAdapter->getRequest(array("dataset" => array("mapper" => "Products_Model_ProductsFOMapper", "vars" => array(array("lang" => "es_ES", "id_store" => "1", "order" => "cf.name", "id" => "<img alt="" src="http://www.vhm.pt/images/1/editor/images/Footer...")), "function" => "getCategoriesFO"))) 86 $varsArray['id'] = $id; 87 88 $request['dataset']['vars'][] = $varsArray; 89 $request['dataset']['function'] = 'getCategoriesFO'; 90 91 $arr = DataAdapter::getInstance()->getRequest($request); 92 93 $arrCategories = array(); 94 if(is_array($arr) && isset($arr['Categories'])) 95 foreach($arr['Categories'] as $Category ) 96 { |
| #6 |
+
–
/home/vhm/public_html/protected/modules/cms/controllers/DefaultController.php(25): Categories::find("<img alt="" src="http://www.vhm.pt/images/1/editor/images/Footer...") 20 21 if($this->thiscms->get_editor_extra() != NULL){ 22 23 } 24 if($this->thiscms->get_editor_extra()!='' && $this->thiscms->get_id() != 104){ 25 $this->category = Categories::find($this->thiscms->get_editor_extra()); 26 $this->products = Products::findAllOfCategoryId($this->thiscms->get_editor_extra(), $page=1, $qty = Yii::app()->params['qty_inhome_prods'], $order = 'phc.position'); 27 $total_products = Products::CountfindAllOfCategoryId($this->thiscms->get_editor_extra()); 28 $this->npages = ceil($total_products/Yii::app()->params['qty_inhome_prods']); 29 } 30 |
| #7 |
+
–
/home/vhm/library/yii/framework/web/actions/CInlineAction.php(49): DefaultController->actionIndex() 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 } |
| #8 |
+
–
/home/vhm/library/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("url" => "87")) 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; |
| #9 |
+
–
/home/vhm/library/yii/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(); |
| #10 |
+
–
/home/vhm/library/yii/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); |
| #11 |
+
–
/home/vhm/library/yii/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))); |
| #12 |
+
–
/home/vhm/library/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("cms/default/index/url/87") 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. |
| #13 |
+
–
/home/vhm/library/yii/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
| #14 |
+
–
/home/vhm/public_html/index.php(14): CApplication->run() 09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',6); 10 error_reporting(E_ALL); 11 ini_set('display_errors', '1'); 12 13 require_once($yii); 14 Yii::createWebApplication($config)->run(); |