Internal Server Error when removing port on panel

Hi, I followed the instruction here bout removing the port but I’m getting an internal server error.

I’m using v1.9 btw