ErrorException [ Warning ]: preg_match(): Unknown modifier '8'

MODPATH/coffee/classes/Marlin/Coffee.php [ 486 ]

481 			'Search engine or robot' => '(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(msnbot)|(Ask Jeeves/Teoma)|(ia_archiver)'
482 		);
483 
484 
485 		foreach($oses as $os=>$pattern){
486 			if(preg_match("/$pattern/i", $userAgent)) {
487 				return $os;
488 			}
489 		}
490 		return 'Unknown';
491 	}
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. MODPATH/coffee/classes/Marlin/Coffee.php [ 486 ] » preg_match(arguments)

  3. MODPATH/coffee/classes/Marlin/Coffee.php [ 503 ] » Marlin_Coffee::getOS(arguments)

  4. APPPATH/classes/Media/Image.php [ 44 ] » Marlin_Coffee::isMobile()

  5. APPPATH/views/corporate/layout/first/inc/banner.php [ 8 ] » Media_Image::get_image(arguments)

  6. APPPATH/views/corporate/layout/first/area_central.php [ 1 ] » include(arguments)

  7. APPPATH/views/corporate/layout/first/template.php [ 33 ] » include(arguments)

  8. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  9. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  10. APPPATH/classes/Controller/Base.php [ 241 ] » Kohana_View->render()

  11. APPPATH/classes/Controller/Base.php [ 161 ] » Controller_Base->after()

  12. {PHP internal call} » Controller_Base->execute()

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

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

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

  16. DOCROOT/index.php [ 126 ] » Kohana_Request->execute()

Environment