ErrorException [ Warning ]: imagecreatefromjpeg() [<a href='function.imagecreatefromjpeg'>function.imagecreatefromjpeg</a>]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file

MODPATH/image/classes/kohana/image/gd.php [ 146 ]

141 		{
142 			// Gets create function
143 			$create = $this->_create_function;
144 
145 			// Open the temporary image
146 			$this->_image = $create($this->file);
147 
148 			// Preserve transparency when saving
149 			imagesavealpha($this->_image, TRUE);
150 		}
151 	}
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. MODPATH/image/classes/kohana/image/gd.php [ 146 ] » imagecreatefromjpeg(arguments)

  3. MODPATH/image/classes/kohana/image/gd.php [ 160 ] » Kohana_Image_GD->_load_image()

  4. MODPATH/image/classes/kohana/image.php [ 256 ] » Kohana_Image_GD->_do_resize(arguments)

  5. APPPATH/classes/image.php [ 11 ] » Kohana_Image->resize(arguments)

  6. APPPATH/classes/model/photo.php [ 59 ] » Image->crop_resize(arguments)

  7. APPPATH/classes/model/photo.php [ 96 ] » Model_Photo->get_thumbs()

  8. APPPATH/views/template_st/view_profile_data.php [ 40 ] » Model_Photo->init()

  9. SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)

  10. SYSPATH/classes/kohana/view.php [ 343 ] » Kohana_View::capture(arguments)

  11. SYSPATH/classes/kohana/view.php [ 228 ] » Kohana_View->render()

  12. APPPATH/views/view_main.php [ 3 ] » Kohana_View->__toString()

  13. SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)

  14. SYSPATH/classes/kohana/view.php [ 343 ] » Kohana_View::capture(arguments)

  15. SYSPATH/classes/kohana/controller/template.php [ 44 ] » Kohana_View->render()

  16. APPPATH/classes/controller/tpl/default.php [ 228 ] » Kohana_Controller_Template->after()

  17. {PHP internal call} » Controller_Tpl_Default->after()

  18. SYSPATH/classes/kohana/request/client/internal.php [ 121 ] » ReflectionMethod->invoke(arguments)

  19. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  20. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)

  21. DOCROOT/index.php [ 109 ] » Kohana_Request->execute()

Environment