PHP warning

imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file

/home/topseti_user/web/topseti.ru/public_html/protected/modules/media/vendors/EPhpThumb/lib/phpThumb/src/GdThumb.inc.php(111)

099         
100         if ($this->isDataStream === false)
101         {
102             $this->verifyFormatCompatiblity();
103         }
104         
105         switch ($this->format)
106         {
107             case 'GIF':
108                 $this->oldImage = imagecreatefromgif($this->fileName);
109                 break;
110             case 'JPG':
111                 $this->oldImage = imagecreatefromjpeg($this->fileName);
112                 break;
113             case 'PNG':
114                 $this->oldImage = imagecreatefrompng($this->fileName);
115                 break;
116             case 'STRING':
117                 $this->oldImage = imagecreatefromstring($this->fileName);
118                 break;
119         }
120     
121         $this->currentDimensions = array
122         (
123             'width'     => imagesx($this->oldImage),

Stack Trace

#0
+
 /home/topseti_user/web/topseti.ru/public_html/protected/modules/media/vendors/EPhpThumb/lib/phpThumb/src/GdThumb.inc.php(111): imagecreatefromjpeg("/home/topseti_user/web/topseti.ru/public_html/media/app_models_P...")
106         {
107             case 'GIF':
108                 $this->oldImage = imagecreatefromgif($this->fileName);
109                 break;
110             case 'JPG':
111                 $this->oldImage = imagecreatefromjpeg($this->fileName);
112                 break;
113             case 'PNG':
114                 $this->oldImage = imagecreatefrompng($this->fileName);
115                 break;
116             case 'STRING':
#1
+
 /home/topseti_user/web/topseti.ru/public_html/protected/modules/media/vendors/EPhpThumb/lib/phpThumb/src/ThumbLib.inc.php(130): GdThumb->__construct("/home/topseti_user/web/topseti.ru/public_html/media/app_models_P...", array("resizeUp" => true), false)
125         
126         // attempt to load the default implementation
127         if ($pt->isValidImplementation(self::$defaultImplemenation))
128         {
129             $imp = $implementationMap[self::$defaultImplemenation];
130             $toReturn = new $imp($filename, $options, $isDataStream);
131         }
132         // load the gd implementation if default failed
133         else if ($pt->isValidImplementation('gd'))
134         {
135             $imp = $implementationMap['gd'];
#2
+
 /home/topseti_user/web/topseti.ru/public_html/protected/modules/media/vendors/EPhpThumb/EPhpThumb.php(56): PhpThumbFactory::create("/home/topseti_user/web/topseti.ru/public_html/media/app_models_P...", array("resizeUp" => true))
51      * @return PhpThumb object
52      */
53     protected static function thumbFactory($filePath)
54     {
55         try{
56             return PhpThumbFactory::create($filePath,self::$_phpThumbOptions);
57         }
58         catch (Exception $e)
59         {
60             throw new CException($e->getMessage(),$e->getCode());
61         }
2024-03-28 11:34:35 nginx/1.19.2 Yii Framework/1.1.13