Hi,
Just tried using that little bit of code (inserted into a different plugin), but am still getting the error – generally on saving fields in a Pod.
Just to check, does it make any difference where it goes? I’ve tried inserting it into one of my own plugins, but not sure whether it would be better off in EM, Pods, or functions.php