Err: EKF_CHECK-2 in GUIDED mode with optical flow and rangefinder

Have you read this : The copter does not takeoff in Guided mode and EKF_GPS_TYPE = 3 (optical flow)