Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

[Notice] getimagesize(): Read error!


Go to End


3300 Views

Avatar
ravik

Community Member, 10 Posts

4 July 2012 at 6:24pm

hi uncleCheese,

I am a big fan of u, because i red almost all your posts.

Here the problem is , i am using silverstripe v2.4.7 and it is working fine, i want to integrate video in my website.
but i am getting error below like this,

[Notice] getimagesize(): Read error!
GET /sripplenew/index.php/videoss/

Line 29 in /var/www/sripplenew/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(/var/www/sripplenew/assets/video_thumbnails/bus.jpg)
Line 29 of GD.php
GD->__construct(/var/www/sripplenew/assets/video_thumbnails/bus.jpg)
Line 293 of Image.php
Image->generateFormattedImage(croppedimage,width,height)
Line 257 of Image.php
Image->getFormattedImage(croppedimage,width,height)
call_user_func_array(Array,Array)
Line 711 of Object.php
Object->__call(CroppedImage,Array)
Line 319 of FLV.php
Image->CroppedImage(width,height)
Line 319 of FLV.php
FLV->VideoPopup(width,height)
call_user_func_array(Array,Array)
Line 369 of ViewableData.php
ViewableData->obj(VideoPopup,Array,,1)
Line 446 of ViewableData.php
ViewableData->XML_val(VideoPopup,Array,1)
Line 49 of .cache.themes.blackcandy.templates.Layout.VideoPage.ss
include(/tmp/silverstripe-cache-var-www-sripplenew/.cache.themes.blackcandy.templates.Layout.VideoPage.ss)
Line 429 of SSViewer.php
SSViewer->process(VideoPage_Controller,Zend_Cache_Frontend_Output)
Line 420 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 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(videoss/)
Line 127 of main.php
require_once(/var/www/sripplenew/sapphire/main.php)
Line 63 of index.php