Error-Can not render headers after they are sent to the client

error can't render headers after they are sent to the client