/srv/vhosts/skhsjs.edu.hk/httpdocs/protected/vendor/google/apiclient/src/Google/Http/REST.php(118)
106 ResponseInterface $response, 107 RequestInterface $request = null, 108 $expectedClass = null 109 ) { 110 $code = $response->getStatusCode(); 111 112 // retry strategy 113 if (intVal($code) >= 400) { 114 // if we errored out, it should be safe to grab the response body 115 $body = (string) $response->getBody(); 116 117 // Check if we received errors, and add those to the Exception for convenience 118 throw new Google_Service_Exception($body, $code, null, self::getResponseErrors($body)); 119 } 120 121 // Ensure we only pull the entire body into memory if the request is not 122 // of media type 123 $body = self::decodeBody($response, $request); 124 125 if ($expectedClass = self::determineExpectedClass($expectedClass, $request)) { 126 $json = json_decode($body, true); 127 128 return new $expectedClass($json); 129 } 130
#0 |
+
–
/srv/vhosts/skhsjs.edu.hk/httpdocs/protected/vendor/google/apiclient/src/Google/Http/REST.php(94): Google_Http_REST::decodeHttpResponse(GuzzleHttp\Psr7\Response, GuzzleHttp\Psr7\Request, "Google_Service_Drive_DriveFile") 89 $response->getReasonPhrase() 90 ); 91 } 92 } 93 94 return self::decodeHttpResponse($response, $request, $expectedClass); 95 } 96 97 /** 98 * Decode an HTTP Response. 99 * @static |
#1 |
+
–
/srv/vhosts/skhsjs.edu.hk/httpdocs/protected/vendor/google/apiclient/src/Google/Task/Runner.php(176): Google_Http_REST::doExecute(GuzzleHttp\Client, GuzzleHttp\Psr7\Request, "Google_Service_Drive_DriveFile") 171 */ 172 public function run() 173 { 174 while ($this->attempt()) { 175 try { 176 return call_user_func_array($this->action, $this->arguments); 177 } catch (Google_Service_Exception $exception) { 178 $allowedRetries = $this->allowedRetries( 179 $exception->getCode(), 180 $exception->getErrors() 181 ); |
#2 |
+
–
/srv/vhosts/skhsjs.edu.hk/httpdocs/protected/vendor/google/apiclient/src/Google/Http/REST.php(58): Google_Task_Runner->run() 53 54 if (null !== $retryMap) { 55 $runner->setRetryMap($retryMap); 56 } 57 58 return $runner->run(); 59 } 60 61 /** 62 * Executes a Psr\Http\Message\RequestInterface 63 * |
#3 |
+
–
/srv/vhosts/skhsjs.edu.hk/httpdocs/protected/vendor/google/apiclient/src/Google/Client.php(842): Google_Http_REST::execute(GuzzleHttp\Client, GuzzleHttp\Psr7\Request, "Google_Service_Drive_DriveFile", array(), ...) 837 return Google_Http_REST::execute( 838 $http, 839 $request, 840 $expectedClass, 841 $this->config['retry'], 842 $this->config['retry_map'] 843 ); 844 } 845 846 /** 847 * Declare whether batch calls should be used. This may increase throughput |
#4 |
+
–
/srv/vhosts/skhsjs.edu.hk/httpdocs/protected/vendor/google/apiclient/src/Google/Service/Resource.php(232): Google_Client->execute(GuzzleHttp\Psr7\Request, "Google_Service_Drive_DriveFile") 227 ->withHeader('X-Php-Expected-Class', $expectedClass); 228 229 return $request; 230 } 231 232 return $this->client->execute($request, $expectedClass); 233 } 234 235 protected function convertToArrayAndStripNulls($o) 236 { 237 $o = (array) $o; |
#5 |
+
–
/srv/vhosts/skhsjs.edu.hk/httpdocs/protected/vendor/google/apiclient-services/src/Google/Service/Drive/Resource/Files.php(185): Google_Service_Resource->call("get", array(array("fileId" => "1d70pdr5kqM5im0mE7to7TDki1GsTxUL3")), "Google_Service_Drive_DriveFile") 180 */ 181 public function get($fileId, $optParams = array()) 182 { 183 $params = array('fileId' => $fileId); 184 $params = array_merge($params, $optParams); 185 return $this->call('get', array($params), "Google_Service_Drive_DriveFile"); 186 } 187 /** 188 * Lists or searches files. (files.listFiles) 189 * 190 * @param array $optParams Optional parameters. |
#6 |
+
–
/srv/vhosts/skhsjs.edu.hk/httpdocs/protected/components/GoogleQuery.php(120): Google_Service_Drive_Resource_Files->get("1d70pdr5kqM5im0mE7to7TDki1GsTxUL3") 115 /** 116 * @param $folderID 117 * @return Google_Service_Drive_DriveFile 118 */ 119 public function getFolder($folderID) { 120 return $this->service->files->get($folderID); 121 } 122 123 /** 124 * @param $folderID 125 * @param int $pageSize |
#7 |
+
–
/srv/vhosts/skhsjs.edu.hk/httpdocs/protected/components/GooglePhotoQuery.php(145): GoogleQuery->getFolder("1d70pdr5kqM5im0mE7to7TDki1GsTxUL3") 140 141 $albumData = $forceReload ? [] : Yii::app()->cache->get($cacheKey); 142 143 if (!$albumData) { 144 if ($folder == null) { 145 $folder = $this->getFolder($id); 146 $folder = [ 147 'id' => $folder->getId(), 148 'name' => $folder->getName(), 149 ]; 150 } |
#8 |
+
–
/srv/vhosts/skhsjs.edu.hk/httpdocs/protected/controllers/PhotoController.php(52): GooglePhotoQuery->getAlbum("1d70pdr5kqM5im0mE7to7TDki1GsTxUL3", null, 500) 47 48 public function actionView($id, $year=null) 49 { 50 $query = new GooglePhotoQuery(); 51 52 $data = $query->getAlbum($id, null, 500); 53 54 $dataProvider = new CArrayDataProvider($data['images'], [ 55 'id' => 'id', 56 'pagination' => [ 57 'pageSize' => 32, |
#9 |
unknown(0): PhotoController->actionView("1d70pdr5kqM5im0mE7to7TDki1GsTxUL3", null)
|
#10 |
+
–
/srv/vhosts/skhsjs.edu.hk/yii-1.1.21.733ac5/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(PhotoController, array("1d70pdr5kqM5im0mE7to7TDki1GsTxUL3", null)) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#11 |
+
–
/srv/vhosts/skhsjs.edu.hk/yii-1.1.21.733ac5/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(PhotoController, ReflectionMethod, array("id" => "1d70pdr5kqM5im0mE7to7TDki1GsTxUL3", "id_page" => "8", "lang" => "zh_tw")) 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 } |
#12 |
+
–
/srv/vhosts/skhsjs.edu.hk/yii-1.1.21.733ac5/framework/web/CController.php(308): CInlineAction->runWithParams(array("id" => "1d70pdr5kqM5im0mE7to7TDki1GsTxUL3", "id_page" => "8", "lang" => "zh_tw")) 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; |
#13 |
+
–
/srv/vhosts/skhsjs.edu.hk/yii-1.1.21.733ac5/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(); |
#14 |
+
–
/srv/vhosts/skhsjs.edu.hk/yii-1.1.21.733ac5/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); |
#15 |
+
–
/srv/vhosts/skhsjs.edu.hk/yii-1.1.21.733ac5/framework/web/CWebApplication.php(282): CController->run("view") 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))); |
#16 |
+
–
/srv/vhosts/skhsjs.edu.hk/yii-1.1.21.733ac5/framework/web/CWebApplication.php(141): CWebApplication->runController("photo/view") 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. |
#17 |
+
–
/srv/vhosts/skhsjs.edu.hk/yii-1.1.21.733ac5/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#18 |
+
–
/srv/vhosts/skhsjs.edu.hk/httpdocs/index.php(17): CApplication->run() 12 // specify how many levels of call stack should be shown in each log message 13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 14 15 require_once($autoload); 16 require_once($yii); 17 Yii::createWebApplication($config)->run(); |