When I created the new custom island it gave an error mentioned in OP
I edited the file portal_box_52.php direct in the ftp program via view/edit in that software
but beware I cannot change any file not even Control Panel >>Portal & Islands>> Portal and no islands either it gives same error message