ErrorException [ Warning ]: getimagesize(/home/k/kurskcity/newauto46.ru/public_html/media/uploads/newsimage/2018/08/08/aoqjus21itf738rk.jpg): failed to open stream: No such file or directory

APPPATH/classes/Controller/Index/News.php [ 120 ]

115 			preg_match_all("/\[img([0-9]+)\]/", $news->text, $matches);
116 			if(count($matches[0])>0) {
117 				foreach($txtimages as $oneimage){
118 					if(in_array($oneimage->id,$matches[1])){
119 						$image=$_SERVER['DOCUMENT_ROOT'].'/media/uploads/newsimage/'.$xyear.'/'.$xmonth.'/'.$xday.'/'.$oneimage->name;
120 						$imagesize=getimagesize($image);
121 						if($imagesize[0]>600){
122 							$imgurl='/imagefly/w600/media/uploads/newsimage/'.$xyear.'/'.$xmonth.'/'.$xday.'/'.$oneimage->name;
123 						}
124 						else $imgurl='/media/uploads/newsimage/'.$xyear.'/'.$xmonth.'/'.$xday.'/'.$oneimage->name;
125 						$blockimg='
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/Controller/Index/News.php [ 120 ] » getimagesize(arguments)

  3. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Index_News->action_index()

  4. {PHP internal call} » Kohana_Controller->execute()

  5. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  6. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  7. SYSPATH/classes/Kohana/Request.php [ 986 ] » Kohana_Request_Client->execute(arguments)

  8. DOCROOT/index.php [ 118 ] » Kohana_Request->execute()

Environment