ErrorException [ Warning ]: getimagesize(https://yahlla.com/data/news/2019/02/19/thumbs/hlq7ecyl6x.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

APPPATH/views/site/news/showArticle.php [ 154 ]

149                         if ($file_headers[0] == 'HTTP/1.0 404 Not Found') {
150                             echo "The file does not exist";
151                         } else if ($file_headers[0] == 'HTTP/1.0 302 Found' && $file_headers[7] == 'HTTP/1.0 404 Not Found') {
152                             echo "The file does not exist, and I got redirected to a custom 404 page..";
153                         } else {
154                             list($widthimg, $heightimg) = getimagesize($Master_Base . $value->img_thumb);
155 
156                             $ratio = $widthimg / $heightimg;
157 
158                             if ($ratio > 1) {
159                                 $need_width = $max_width;
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)