/var/www/clients/client0/web19/web/protected/extensions/YiiSolarium/vendor/solarium/solarium/library/Solarium/Core/Client/Adapter/Curl.php(229)
217 * Check result of a request 218 * 219 * @throws HttpException 220 * @param string $data 221 * @param array $headers 222 * @return void 223 */ 224 public function check($data, $headers) 225 { 226 // if there is no data and there are no headers it's a total failure, 227 // a connection to the host was impossible. 228 if (empty($data) && count($headers) == 0) { 229 throw new HttpException("HTTP request failed"); 230 } 231 } 232 }
#0 |
+
–
/var/www/clients/client0/web19/web/protected/extensions/YiiSolarium/vendor/solarium/solarium/library/Solarium/Core/Client/Adapter/Curl.php(124): Solarium\Core\Client\Adapter\Curl->check("", array()) 119 $headers = array(); 120 $data = ''; 121 } 122 123 curl_close($handle); 124 $this->check($data, $headers); 125 126 return new Response($data, $headers); 127 // @codeCoverageIgnoreEnd 128 } 129 |
#1 |
+
–
/var/www/clients/client0/web19/web/protected/extensions/YiiSolarium/vendor/solarium/solarium/library/Solarium/Core/Client/Adapter/Curl.php(99): Solarium\Core\Client\Adapter\Curl->getResponse(Resource id #26, false) 094 { 095 // @codeCoverageIgnoreStart 096 $handle = $this->createHandle($request, $endpoint); 097 $httpResponse = curl_exec($handle); 098 099 return $this->getResponse($handle, $httpResponse); 100 // @codeCoverageIgnoreEnd 101 } 102 103 /** 104 * Get the response for a curl handle |
#2 |
+
–
/var/www/clients/client0/web19/web/protected/extensions/YiiSolarium/vendor/solarium/solarium/library/Solarium/Core/Client/Adapter/Curl.php(83): Solarium\Core\Client\Adapter\Curl->getData(Solarium\Core\Client\Request, Solarium\Core\Client\Endpoint) 78 * @param Endpoint $endpoint 79 * @return Response 80 */ 81 public function execute($request, $endpoint) 82 { 83 return $this->getData($request, $endpoint); 84 } 85 86 /** 87 * Execute request 88 * |
#3 |
+
–
/var/www/clients/client0/web19/web/protected/extensions/YiiSolarium/vendor/solarium/solarium/library/Solarium/Core/Client/Client.php(786): Solarium\Core\Client\Adapter\Curl->execute(Solarium\Core\Client\Request, Solarium\Core\Client\Endpoint) 781 $event = new PreExecuteRequestEvent($request, $endpoint); 782 $this->eventDispatcher->dispatch(Events::PRE_EXECUTE_REQUEST, $event); 783 if ($event->getResponse() !== null) { 784 $response = $event->getResponse(); //a plugin result overrules the standard execution result 785 } else { 786 $response = $this->getAdapter()->execute($request, $endpoint); 787 } 788 789 $this->eventDispatcher->dispatch( 790 Events::POST_EXECUTE_REQUEST, 791 new PostExecuteRequestEvent($request, $endpoint, $response) |
#4 |
+
–
/var/www/clients/client0/web19/web/protected/extensions/YiiSolarium/vendor/solarium/solarium/library/Solarium/Core/Client/Client.php(756): Solarium\Core\Client\Client->executeRequest(Solarium\Core\Client\Request, null) 751 if ($event->getResult() !== null) { 752 return $event->getResult(); 753 } 754 755 $request = $this->createRequest($query); 756 $response = $this->executeRequest($request, $endpoint); 757 $result = $this->createResult($query, $response); 758 759 $this->eventDispatcher->dispatch( 760 Events::POST_EXECUTE, 761 new PostExecuteEvent($query, $result) |
#5 |
+
–
/var/www/clients/client0/web19/web/protected/extensions/YiiSolarium/vendor/solarium/solarium/library/Solarium/Core/Client/Client.php(869): Solarium\Core\Client\Client->execute(Solarium\QueryType\Select\Query\Query, null) 864 * @param Endpoint|string|null 865 * @return \Solarium\QueryType\Select\Result\Result 866 */ 867 public function select(QueryInterface $query, $endpoint = null) 868 { 869 return $this->execute($query, $endpoint); 870 } 871 872 /** 873 * Execute a MoreLikeThis query 874 * |
#6 |
+
–
/var/www/clients/client0/web19/web/protected/controllers/SearchController.php(294): Solarium\Core\Client\Client->select(Solarium\QueryType\Select\Query\Query) 289 if ($q){ 290 $Search_query = $this->getSearchQuery($q, 'AND', $in_title); 291 if (stripos($q, ' ') !== false) { 292 $testQuery = $baseQuery . ' AND ' . $Search_query; 293 $select->setQuery($testQuery); 294 $ads = $client_ads->select($select); 295 if ($ads->getNumFound() < $nb) { 296 $Search_query = $this->getSearchQuery($q, 'OR', $in_title); 297 } 298 } 299 $baseQuery = $baseQuery . ' AND ' . $Search_query; |
#7 |
+
–
/var/www/clients/client0/web19/web/protected/controllers/SearchController.php(220): SearchController->get_ads("MSP Makri plaide pour un gouvernement d entente nationale", 1) 215 //$_Ads = $results->getResponse(); 216 //$respense = $this->solrObj_to_array($_Ads); 217 } 218 219 // get sponsored ads 220 $sponsored_ads = $this->get_ads($q, 1); 221 //description tag content 222 $description = ""; 223 foreach ($respense as $ad) { 224 $description = $description . " " . strip_tags($ad["texte"]); 225 if (strlen($description) > 200) |
#8 |
+
–
/var/www/clients/client0/web19/yii/framework/web/actions/CInlineAction.php(49): SearchController->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 } |
#9 |
+
–
/var/www/clients/client0/web19/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("q" => "MSP%20:%20Makri%20plaide%20pour%20%20un%20gouvernement%20d%EF%BF...")) 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; |
#10 |
+
–
/var/www/clients/client0/web19/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(); |
#11 |
+
–
/var/www/clients/client0/web19/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); |
#12 |
+
–
/var/www/clients/client0/web19/yii/framework/web/CWebApplication.php(282): CController->run("") 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))); |
#13 |
+
–
/var/www/clients/client0/web19/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("search") 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. |
#14 |
+
–
/var/www/clients/client0/web19/yii/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 /** |
#15 |
+
–
/var/www/clients/client0/web19/web/index.php(13): CApplication->run() 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 // specify how many levels of call stack should be shown in each log message 10 // defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->run(); |