Anybody have a clue what could be causing this error? I get it while trying to visit my videos page.
[Notice] getimagesize() [function.getimagesize]: Read error!
GET /videos/
Line 19 in /var/www/vhosts/domain.com/subdomains/subsite/httpdocs/sapphire/filesystem/GD.php
Source
10
11 protected static $default_quality = 75;
12
13 function __construct($filename = null) {
14 // If we're working with image resampling, things could take a while. Bump up the time-limit
15 increase_time_limit_to(300);
16
17 if($filename) {
18 // We use getimagesize instead of extension checking, because sometimes extensions are wrong.
19 list($width, $height, $type, $attr) = getimagesize($filename);
20 switch($type) {
21 case 1: if(function_exists('imagecreatefromgif')) $this->setGD(imagecreatefromgif($filename)); break;
22 case 2: if(function_exists('imagecreatefromjpeg')) $this->setGD(imagecreatefromjpeg($filename)); break;
23 case 3: if(function_exists('imagecreatefrompng')) $this->setGD(imagecreatefrompng($filename)); break;
24 }
25 }
Trace
getimagesize(../assets/video_thumbnails/sswcutout20100508043506aia171n43w8620100508043505m.jpg)
Line 19 of GD.php
GD->__construct(../assets/video_thumbnails/sswcutout20100508043506aia171n43w8620100508043505m.jpg)
Line 297 of Image.php
Image->generateFormattedImage(croppedimage,158,124)
Line 264 of Image.php
Image->getFormattedImage(croppedimage,158,124)
call_user_func_array(Array,Array)
Line 565 of Object.php
Object->__call(CroppedImage,Array)
Image->CroppedImage(158,124)
call_user_func_array(Array,Array)
Line 408 of ViewableData.php
ViewableData->XML_val(CroppedImage,Array,1)
Line 69 of .cache.var.www.vhosts.domain.com.subdomains.subsite.httpdocs.themes.theme.templates.Layout.VideoGallery.ss
include(/tmp/silverstripe-cache-var-www-vhosts-domain.com-subdomains-subsite-httpdocs/.cache.var.www.vhosts.domain.com.subdomains.subsite.httpdocs.themes.theme.templates.Layout.VideoGallery.ss)
Line 357 of SSViewer.php
SSViewer->process(VideoGallery_Controller)
Line 349 of SSViewer.php
SSViewer->process(VideoGallery_Controller)
Line 172 of Controller.php
Controller->handleAction(HTTPRequest)
Line 129 of RequestHandler.php
RequestHandler->handleRequest(HTTPRequest)
Line 119 of Controller.php
Controller->handleRequest(HTTPRequest)
Line 29 of ModelAsController.php
ModelAsController->handleRequest(HTTPRequest)
Line 280 of Director.php
Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
Director::direct(/videos/)
Line 118 of main.php
I checked, file and dir perms are OK. The generated thumb image is saved to the assets directory OK. What gives???
[SOLVED]:
No idea how it got fixed. It just started working... If anybody has any insight into this error in order to prevent it again in the future, much appreciated!