A novel electrochemical sensor based on 2D CuTCPP nanosheets and platelet ordered mesoporous carbon composites for hydroxylamine and chlorogenic acid.