I am trying to create a video gallery using the information given by unclecheese re the youtube vids 1 and 2 about the filedataobjectmanager which is fine. I have everything working and ffmpeg running. Issue is I don't get any thumbnails these are not being made correctly, they are ending up as blank files in the thumbnail_folder. When debuggin it comes up with the following error which I think is generated because it cannot correctly find the height or the width of image as it ain't really there filenames fine file size is 0. Any ideas???
[Notice] getimagesize(): Read error!
GET /bottom-menu-items/videopage/?stage=Live
Line 29 in /srv/www/vhosts/*****/httpdocs/sapphire/filesystem/GD.php
Source
20 }
21 }
22
23 function __construct($filename = null) {
24 // If we're working with image resampling, things could take a while. Bump up the time-limit
25 increase_time_limit_to(300);
26
27 if($filename) {
28 // We use getimagesize instead of extension checking, because sometimes extensions are wrong.
29 list($width, $height, $type, $attr) = getimagesize($filename);
30 switch($type) {
31 case 1: if(function_exists('imagecreatefromgif')) $this->setGD(imagecreatefromgif($filename)); break;
32 case 2: if(function_exists('imagecreatefromjpeg')) $this->setGD(imagecreatefromjpeg($filename)); break;
33 case 3: if(function_exists('imagecreatefrompng')) $this->setGD(imagecreatefrompng($filename)); break;
34 }
35 }
Trace
* getimagesize(/srv/www/vhosts/*****/httpdocs/assets/video_thumbnails/000007589085sdflashvideo2.jpg)
Line 29 of GD.php
* GD->__construct(/srv/www/vhosts/******/httpdocs/assets/video_thumbnails/000007589085sdflashvideo2.jpg)
Line 293 of Image.php
* Image->generateFormattedImage(croppedimage,50,50)
Line 257 of Image.php
* Image->getFormattedImage(croppedimage,50,50)
* call_user_func_array(Array,Array)
Line 711 of Object.php
* Object->__call(CroppedImage,Array)
* Image->CroppedImage(50,50)
* call_user_func_array(Array,Array)
Line 369 of ViewableData.php
* ViewableData->obj(CroppedImage,Array,,1)
Line 446 of ViewableData.php
* ViewableData->XML_val(CroppedImage,Array,1)
Line 36 of .cache.themes.tutorial.templates.Layout.VideoPage.ss
* include(/tmp/silverstripe-cache-srv-www-vhosts-*****-httpdocs/.cache.themes.tutorial.templates.Layout.VideoPage.ss)
Line 420 of SSViewer.php
* SSViewer->process(VideoPage_Controller,Zend_Cache_Frontend_Output)
Line 411 of SSViewer.php
* SSViewer->process(VideoPage_Controller)
Line 202 of Controller.php
* Controller->handleAction(SS_HTTPRequest)
Line 143 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
* Controller->handleRequest(SS_HTTPRequest)
Line 199 of ContentController.php
* ContentController->handleRequest(SS_HTTPRequest)
Line 184 of ContentController.php
* ContentController->handleRequest(SS_HTTPRequest)
Line 67 of ModelAsController.php
* ModelAsController->handleRequest(SS_HTTPRequest)
Line 282 of Director.php
* Director::handleRequest(SS_HTTPRequest,Session)
Line 125 of Director.php
* Director::direct(/bottom-menu-items/videopage/)
Line 127 of main.php