Just a heads up, the VHS covers, letter T, page 8 is giving a PHP warning
the contents of said warning:
[SPOILER:36a34fed2a]PHP warning
imagecreatefromjpeg() [
function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file
/home/vaporman/public_html/protected/views/site/vhsCover.php(112)
100 $path= getcwd();
101 $src = getcwd() . $vids['image'];
102 // echo $src; echo '
';
103 $path= getcwd();
104 // echo $path; die("herer");
105 $dest = $path."/images/thumbnail/".$name;
106 // echo $dest;
107 // Genrating the image from there extension
108 $size=getimagesize($src);
109 // echo '
';print_r($size); die("herer");
110 switch($size["mime"]){
111 case "image/jpeg":
112 $source_image = imagecreatefromjpeg($src); //jpeg file
113 break;
114 case "image/gif":
115 $source_image = imagecreatefromgif($src); //gif file
116 break;
117 case "image/png":
118 $source_image = imagecreatefrompng($src); //png file
119 break;
120 default:
121 $source_image=false;
122 break;
123 }
124 $width = imagesx($source_image);
Stack Trace
#0
–
/home/vaporman/public_html/protected/views/site/vhsCover.php(112): imagecreatefromjpeg("/home/vaporman/public_html/ActionAndChildren/Action/T/THUNDERGRO...")
107 // Genrating the image from there extension
108 $size=getimagesize($src);
109 // echo '';print_r($size); die("herer");
110 switch($size["mime"]){
111 case "image/jpeg":
112 $source_image = imagecreatefromjpeg($src); //jpeg file
113 break;
114 case "image/gif":
115 $source_image = imagecreatefromgif($src); //gif file
116 break;
117 case "image/png":
#1
+
/home/vaporman/public_html/yii/framework/web/CBaseController.php(127): require("/home/vaporman/public_html/protected/views/site/vhsCover.php")
#2
+
/home/vaporman/public_html/yii/framework/web/CBaseController.php(96): CBaseController->renderInternal("/home/vaporman/public_html/protected/views/site/vhsCover.php", array("cover" => VhsCovers, "comments" => array(), "commentCount" => "0", "allCovers" => array(VhsCovers, VhsCovers, VhsCovers, VhsCovers, ...), ...), true)
#3
+
/home/vaporman/public_html/yii/framework/web/CController.php(870): CBaseController->renderFile("/home/vaporman/public_html/protected/views/site/vhsCover.php", array("cover" => VhsCovers, "comments" => array(), "commentCount" => "0", "allCovers" => array(VhsCovers, VhsCovers, VhsCovers, VhsCovers, ...), ...), true)
#4
+
/home/vaporman/public_html/yii/framework/web/CController.php(783): CController->renderPartial("vhsCover", array("cover" => VhsCovers, "comments" => array(), "commentCount" => "0", "allCovers" => array(VhsCovers, VhsCovers, VhsCovers, VhsCovers, ...), ...), true)
#5
–
/home/vaporman/public_html/protected/controllers/SiteController.php(2504): CController->render("vhsCover", array("cover" => VhsCovers, "comments" => array(), "commentCount" => "0", "allCovers" => array(VhsCovers, VhsCovers, VhsCovers, VhsCovers, ...), ...))
2499 $pages->pageSize=12;
2500 $pages->applyLimit($criteriaVid);
2501
2502 $allCovers = VhsCovers::model()->findAll($criteriaVid);
2503
2504 $this->render('vhsCover',array('cover'=>$cover, 'comments'=>$comments, 'commentCount'=>$commentCount, 'allCovers'=>$allCovers, 'catSel'=>intval($_GET['cat']), 'pages' => $pages));
2505 }
2506
2507 public function actionVHSComment()
2508 {
2509 if(isset($_POST['id']) && isset($_POST['comment']))
#6
+
/home/vaporman/public_html/yii/framework/web/actions/CInlineAction.php(50): SiteController->actionvhsCover()
#7
+
/home/vaporman/public_html/yii/framework/web/CController.php(309): CInlineAction->runWithParams(array("chr" => "T", "page" => "8", "id" => "853"))
#8
+
/home/vaporman/public_html/yii/framework/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction)
#9
+
/home/vaporman/public_html/yii/framework/web/filters/CFilter.php(41): CFilterChain->run()
#10
+
/home/vaporman/public_html/yii/framework/web/CController.php(1146): CFilter->filter(CFilterChain)
#11
+
/home/vaporman/public_html/yii/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(CFilterChain)
#12
+
/home/vaporman/public_html/yii/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain)
#13
+
/home/vaporman/public_html/yii/framework/web/CController.php(292): CFilterChain->run()
#14
+
/home/vaporman/public_html/yii/framework/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array("accessControl"))
#15
+
/home/vaporman/public_html/yii/framework/web/CWebApplication.php(283): CController->run("vhsCover")
#16
+
/home/vaporman/public_html/yii/framework/web/CWebApplication.php(142): CWebApplication->runController("site/vhsCover")
#17
+
/home/vaporman/public_html/yii/framework/base/CApplication.php(162): CWebApplication->processRequest()
#18
–
/home/vaporman/public_html/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2014-06-22 21:11:00 Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 Yii Framework/1.1.11
[/SPOILER:36a34fed2a]