If the comment has a file attached, the comment content was being displayedusing the attachement's mime type. Well, the script tried to, typicallyit would cause the script to bomb.
you need to flush the package id to package_key map on update otherwise parameter updates and other things depending on package key fail until server restart. no attempt made to fix teh xotcl-core cached version. also misnamed query fixed