TPhpErrorException

Description

[Warning] fopen(http://2.42.228.103:8080/fedora/get/shoah:41177/PREVIEW): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error (@line 151 in file /var/www/protected/Services/ImageService.php).

Source File

/var/www/protected/Services/ImageService.php (151)

0140:     $debug = $this->Request['debug'];
0141:     
0142:     $response = $this->getResponse();
0143:     
0144:     $response->setContentType('image/jpeg');    
0145:     
0146:     $fedora = $this->Application->getModule($this->_fedoraModuleId);
0147:     
0148:     if ($action== 'view' && $opt == 'raw')
0149:     {
0150:       $url = $fedora->getObjectDataStreamUrl($PID, $dsID);
0151: $h = fopen($url, 'rb');
0152: fpassthru($h); 0153: fclose($h); 0154: return; 0155: } 0156: 0157: $stream = $fedora->getObjectDataStream($PID, $dsID); 0158: if ($stream == null) 0159: throw new THttpException(404, 'image not found', $id); 0160: 0161: $image = imagecreatefromstring($stream); 0162: $imageWidth = imagesx($image); 0163: $imageHeight = imagesy($image);

Stack Trace

#0 [internal function]: PradoBase::phpErrorHandler(2, 'fopen(http://2....', '/var/www/protec...', 151, Array)
#1 /var/www/protected/Services/ImageService.php(151): fopen('http://2.42.228...', 'rb')
#2 /var/www/prado-3.1.10.r3017/framework/TApplication.php(1095): ImageService->run()
#3 /var/www/prado-3.1.10.r3017/framework/TApplication.php(382): TApplication->runService()
#4 /var/www/index.php(23): TApplication->run()
#5 {main}
2024-11-24 10:51 Apache PRADO/3.1.10