New all-photonic error control system