Picasa_Exception

An unknown error has occured.

D:\Mail\Luteranie\plock\Picasa.php(1587)

1575             if (strcmp($buf, "Connection: Close\r\n") == 0) {
1576                 @fgets($fp);
1577                 @fgets($fp);
1578                 $buf = @fgets($fp);
1579                 $break = true;
1580             } else {
1581                 $buf="";
1582             }
1583         }
1584         fclose($fp);
1585 
1586         if (strcmp($buf, "") == 0) {
1587             return new Picasa_Exception("An unknown error has occured.", null, $url);
1588         } else {
1589             return new Picasa_Exception_BadRequestException($buf, null, $url);
1590         }
1591     }
1592 
1593     /**
1594      * Matches the supplied $buf contents against several different HTTP response codes to determine what kind of Picasa_Exception to return.  
1595      * Note that this does not actually throw an exception, it just determines what
1596      * kind of exception could be thrown based on the response.  It's up to the caller to actually throw the exception.
1597      *
1598      * The name of this method is a little misleading; the response does not need to be from a POST, it can be a response
1599      * from any kind of request.

Stack Trace

#0
+
 D:\Mail\Luteranie\plock\Picasa\Account.php(203): Picasa::getExceptionFromInvalidQuery("http://picasaweb.google.com/data/feed/api/user/plock.luteranie?k...", array("http" => array("method" => "GET", "header" => "Content-Type: application/x-www-form-urlencoded Content-Length:...")))
198                     $context = stream_context_create($contextArray);
199             }
200             // Get the XML document from Picasa's server based on the query in the URL
201             $accountXml = @file_get_contents($url, false, $context);
202             if ($accountXml == false) {
203                 throw Picasa::getExceptionFromInvalidQuery($url, $contextArray);    
204             }
205         }
206         try {
207             // Load the XML file into a SimpleXMLElement
208             $xml = new SimpleXMLElement($accountXml);
#1
+
 D:\Mail\Luteranie\plock\Picasa.php(623): Picasa_Account->__construct("http://picasaweb.google.com/data/feed/api/user/plock.luteranie?k...", false, array("http" => array("method" => "GET", "header" => "Content-Type: application/x-www-form-urlencoded Content-Length:...")))
618     public function getAlbumsByUsername($username, $maxResults=null, $startIndex=null, $visibility="public", $thumbsize=null, $imgmax=null) {
619         $query = Picasa::$BASE_QUERY_URL.'/user/'.$username.'?kind=album';
620         $query.=Picasa::buildQueryParams($maxResults, $startIndex, null, null, $visibility, $thumbsize, $imgmax);
621         $account = null;
622         try {
623             $account = new Picasa_Account($query, null, $this->contextArray);
624         } catch (Picasa_Exception $e) {    
625             throw $e;
626         }
627         return $account;
628     }
#2
+
 D:\Mail\Luteranie\plock\albums.php(4): Picasa->getAlbumsByUsername("plock.luteranie")
1 <?php 
2     include("Picasa.php");
3     $pic = new Picasa();
4     $account = $pic->getAlbumsByUsername('plock.luteranie');
5     $albums = $account->getAlbums();
6 ?>
7 <div class="main">
8         <div class="main_top">
9             <div class="main_top1"></div>
2019-01-19 10:06:51 Microsoft-IIS/8.5 Yii Framework/1.1.12