/srv/www/apppicker.com/htdocs/vendor/tieste/appsdb/lib/App/Service/Lookup.php(69)
57 CURLOPT_RETURNTRANSFER => true, // return web page 58 CURLOPT_HEADER => false, // don't return headers 59 CURLOPT_FOLLOWLOCATION => true, // follow redirects 60 CURLOPT_ENCODING => "", // handle all encodings 61 // CURLOPT_USERAGENT => "tieste", // who am i 62 CURLOPT_AUTOREFERER => true, // set referer on redirect 63 CURLOPT_CONNECTTIMEOUT => 5, // timeout on connect 64 CURLOPT_TIMEOUT => 10, // timeout on response 65 CURLOPT_MAXREDIRS => 10, // stop after 10 redirects 66 ]; 67 68 $ch = curl_init($url); 69 curl_setopt_array($ch, $options); 70 $content = curl_exec($ch); 71 $err = curl_errno($ch); 72 $errmsg = curl_error($ch); 73 $header = curl_getinfo($ch); 74 curl_close($ch); 75 76 return $content; 77 } 78 79 /** 80 * Load applications info 81 *
#0 |
+
–
/srv/www/apppicker.com/htdocs/vendor/tieste/appsdb/lib/App/Service/Lookup.php(69): curl_setopt_array(resource, array(19913 => 1, 42 => 0, 52 => 1, 10102 => "", ...)) 64 CURLOPT_TIMEOUT => 10, // timeout on response 65 CURLOPT_MAXREDIRS => 10, // stop after 10 redirects 66 ]; 67 68 $ch = curl_init($url); 69 curl_setopt_array($ch, $options); 70 $content = curl_exec($ch); 71 $err = curl_errno($ch); 72 $errmsg = curl_error($ch); 73 $header = curl_getinfo($ch); 74 curl_close($ch); |
#1 |
+
–
/srv/www/apppicker.com/htdocs/vendor/tieste/appsdb/lib/App/Service/Lookup.php(109): App\Service\Lookup->_getContent("http://proxy.itunes.cron/lookup?id=403579413") 104 $issetResults[] = $ids[$j]; 105 continue; 106 } 107 $itIds[] = $ids[$j]; 108 } 109 $content = $this->_getContent(self::$_itunesSearchUrl . implode(",", $itIds)); 110 $results = json_decode($content, true)['results']; 111 if (!$results) { 112 return false; 113 } 114 foreach ($results as $result) { |
#2 |
+
–
/srv/www/apppicker.com/htdocs/vendor/tieste/appsdb/lib/App/Service/Lookup.php(174): App\Service\Lookup->getAppInfo(array("403579413")) 169 170 foreach (array_chunk($ids, self::MAX_LOOKUP_APPS) as $idsChunk) { 171 $i = 0; 172 do { 173 sleep($i); 174 $apps = $this->getAppInfo($idsChunk); 175 ++$i; 176 } while ($apps === false && $i < 3); 177 178 if (empty($apps)) { 179 $failedSaves += $idsChunk; |
#3 |
+
–
/srv/www/apppicker.com/htdocs/vendor/tieste/appsdb/lib/App/Storage.php(199): App\Service\Lookup->addMissedAppsByIds("403579413") 194 */ 195 public function saveAppById($appId, $useLookup = false) 196 { 197 if ($useLookup) { 198 $lookup = new Service\Lookup($this); 199 $result = (!$lookup->addMissedAppsByIds($appId)) ? true : false; 200 } else { 201 $data = $this->getAppById($appId); 202 $result = $this->saveApp($data); 203 } 204 |
#4 |
+
–
/srv/www/apppicker.com/htdocs/protected/components/AppsDB.php(113): App\Storage->saveAppById("403579413", true) 108 * @param bool $useLookup 109 * @return bool 110 */ 111 public function saveApp($id, $useLookup = false) 112 { 113 return $this->_appStorage->saveAppById($id, $useLookup); 114 } 115 116 } |
#5 |
+
–
/srv/www/apppicker.com/htdocs/protected/controllers/AppsController.php(201): AppsDB->saveApp("403579413", true) 196 'app' => $app, 197 'relatedVideos' => $relatedVideos, 198 'similarApps' => $similarApps, 199 )); 200 } else {//var_dump(Yii::app()->AppsDB);die; 201 if (!$this->appsModel->getAppInfo($id) && $result === null && Yii::app()->AppsDB->saveApp($id, true)) { 202 Yii::app()->cache->clearByTag(CacheModel::SECTION_APP . '-' . $id); 203 $app = $this->appsModel->getFullApp($id); 204 Yii::app()->PhalconEngine->addToApplicationIndex($id); 205 $this->redirect($this->createUrl('apps/details', array('id'=> $id, 'title'=>ViewHelper::getAppSlugFromTitle($app['title'])))); 206 } else { |
#6 |
unknown(0): AppsController->actionDetails("403579413", "mvp-marker")
|
#7 |
+
–
/srv/www/apppicker.com/htdocs/vendor/yiisoft/yii/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(AppsController, array("403579413", "mvp-marker")) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#8 |
+
–
/srv/www/apppicker.com/htdocs/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(AppsController, ReflectionMethod, array("id" => "403579413", "title" => "mvp-marker")) 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 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#9 |
+
–
/srv/www/apppicker.com/htdocs/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("id" => "403579413", "title" => "mvp-marker")) 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 |
+
–
/srv/www/apppicker.com/htdocs/vendor/yiisoft/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 |
+
–
/srv/www/apppicker.com/htdocs/vendor/yiisoft/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 |
+
–
/srv/www/apppicker.com/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): CController->run("details") 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 |
+
–
/srv/www/apppicker.com/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("apps/details") 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 |
+
–
/srv/www/apppicker.com/htdocs/vendor/yiisoft/yii/framework/base/CApplication.php(184): CWebApplication->processRequest() 179 public function run() 180 { 181 if($this->hasEventHandler('onBeginRequest')) 182 $this->onBeginRequest(new CEvent($this)); 183 register_shutdown_function(array($this,'end'),0,false); 184 $this->processRequest(); 185 if($this->hasEventHandler('onEndRequest')) 186 $this->onEndRequest(new CEvent($this)); 187 } 188 189 /** |
#15 |
+
–
/srv/www/apppicker.com/htdocs/index.php(58): CApplication->run() 53 54 if (!isset($app->params[Configuration::PREFIX_ELASTICA]) || $app->params[Configuration::PREFIX_ELASTICA] == null || $app->params[Configuration::PREFIX_ELASTICA] == '') { 55 $app->params->add(Configuration::PREFIX_ELASTICA, '1'); 56 } 57 58 $app->run(); |