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\Album.php(659): Picasa::getExceptionFromInvalidQuery()
654             if ($contextArray != null) {
655                     $context = stream_context_create($contextArray);
656             }
657             $xmldata = @file_get_contents($url, false, $context);
658             if ($xmldata == false) {
659                 throw Picasa::getExceptionFromInvalidQuery($url, $contextArray);    
660             }
661             try { 
662                 // Load the XML file into a SimpleXMLElement
663                 $albums = new SimpleXMLElement($xmldata);
664             } catch (Exception $e) {
#1
+
 D:\Mail\Luteranie\plock\Picasa.php(725): Picasa_Album->__construct()
720     public function getAlbumById($username, $albumid, $maxResults=null, $startIndex=null, $keywords=null, $tags=null, $thumbsize="48,200,800", $imgmax=null) {
721         $query = Picasa::$BASE_QUERY_URL . '/user/'.$username . '/albumid/'.$albumid;
722         $query.='?kind=photo'.Picasa::buildQueryParams($maxResults, $startIndex, $keywords, $tags, null, $thumbsize, $imgmax);
723         $album = null;
724         try {
725             $album = new Picasa_Album($query, null, $this->contextArray); 
726         } catch (Picasa_Exception $e) {    
727             throw $e;
728         }
729         return $album;
730     }
#2
+
 D:\Mail\Luteranie\plock\album.php(27): Picasa->getAlbumById()
22     $username = 'plock.luteranie';
23     $albumid = $_GET["albumid"];
24     $pic = new Picasa();
25     if($albumid)
26     {
27         $album = $pic->getAlbumById($username, $albumid);
28         $images = $album->getImages();
29     ?>
30     <div class="main">
31         <div class="main_top">
32             <div class="main_top1"></div>
2024-03-28 12:22:00 Microsoft-IIS/10.0 Yii Framework/1.1.12