/home/virtwww/w_moscow-city-f89_d31f84c3/http/application/classes/rest.php

ErrorException [ Warning ]: file_get_contents(https://xn----7sbf0aahnq1aem.xn--80aswg/assets/catalog/product/400/5dc945563a9e7.jpg): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error

APPPATH/classes/rest.php [ 43 ]

38 			
39 			foreach($img_array as $img){
40 				
41 				$loc_url = $local_image_url . $img;
42 				if(!file_exists($loc_url)){
43 					$image = file_get_contents( $img_url . $img );
44 					file_put_contents($loc_url, $image);
45 				}
46 			}		
47 		}
48 	}
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/rest.php [ 43 ] » file_get_contents(arguments)

  3. APPPATH/classes/rest.php [ 24 ] » Rest::download_images(arguments)

  4. APPPATH/classes/controller/catalog/product.php [ 7 ] » Rest::get_product(arguments)

  5. {PHP internal call} » Controller_Catalog_Product->action_index(arguments)

  6. SYSPATH/classes/kohana/request.php [ 1111 ] » ReflectionMethod->invokeArgs(arguments)

  7. APPPATH/bootstrap.php [ 175 ] » Kohana_Request->execute()

  8. DOCROOT/index.php [ 104 ] » require(arguments)

Environment