WideImage_InvalidImageSourceException

File '/home/roshankashmir/public_html/uploads/epaper/2022-02/61fae8767bb09.jpg' appears to be an invalid image source.

/home/roshankashmir/public_html/protected/extensions/wideimage/WideImage.php(226)

214                     $custom_mappers = WideImage_MapperFactory::getCustomMappers();
215                     foreach ($custom_mappers as $mime_type => $mapper_class)
216                     {
217                         $mapper = WideImage_MapperFactory::selectMapper(null, $mime_type);
218                         $handle = $mapper->loadFromString($data);
219                         if (self::isValidImageHandle($handle))
220                             break;
221                     }
222                 }
223             }
224             
225             if (!self::isValidImageHandle($handle))
226                 throw new WideImage_InvalidImageSourceException("File '{$uri}' appears to be an invalid image source.");
227             
228             return self::loadFromHandle($handle);
229         }
230         
231         /**
232          * Create and load an image from a string. Format is auto-detected.
233          * 
234          * @param string $string Binary data, i.e. from BLOB field in the database
235          * @return WideImage_Image WideImage_PaletteImage or WideImage_TrueColorImage instance
236          */
237         static function loadFromString($string)
238         {

Stack Trace

#0
+
 /home/roshankashmir/public_html/themes/press/views/epaper/default/show_thumb.php(6): WideImage::loadFromFile("/home/roshankashmir/public_html/uploads/epaper/2022-02/61fae8767...")
01 <?php Yii::import("webroot.themes.press.ThemeFunctions"); ?>
02 <?php 
03 $epaper_config = ModuleLoader::getConfig("epaper");
04 $epaper_mediadir = Yii::app()->getBaseUrl(true) . Yii::app()->params['uploadDir'] . $epaper_config["mediaDir"];
05 
06 $wideimage = WideImage::loadFromFile(Yii::getPathOfAlias("webroot") . Yii::app()->params['uploadDir'] . $epaper_config["mediaDir"] . $current_page_model->pg_file);
07 $img_height = $wideimage->getHeight();
08 $img_width = $wideimage->getWidth();
09 $ratio =  $img_height /$img_width;
10 $sidenav_height = ( $containerWidth * $ratio ) + 100;
11 
#1
+
 /home/roshankashmir/public_html/themes/press/views/epaper/default/show.php(70): include("/home/roshankashmir/public_html/themes/press/views/epaper/defaul...")
65  
66  $containerWidth = 945;
67         ?>        
68 
69         <div class="hidden-xs hidden-sm col-md-3 col-lg-2"> 
70                  <?php include "show_thumb.php" ?> 
71         </div>
72 
73         <div class="col-xs-12 col-sm-12 col-md-9 col-lg-10">
74             <div class="page_area" id="page_area">
75 
#6
+
 /home/roshankashmir/public_html/protected/modules/epaper/controllers/DefaultController.php(599): CController->render("show", array("id" => "152", "alias" => "roshan-kashmir", "page" => "8", "spid" => 0, ...))
594             $data["page"] = $page;
595             $data["title"] = HeadComponent::i()->generateTitle();
596             $data["pagetitle"] = $pagetitle;
597             AjaxOutput::i()->setData($data)->display();
598         } else {        
599             $this->render("show", $paramData);
600         }
601     }
602     
603     public function _actionShow() {
604          
2024-03-28 19:49:56 LiteSpeed Yii Framework/1.1.28