I’ve removed the custom_meta_boxes. I don’t have to have them and it solves the problem. I still don’t understand why they were a problem, but if I can do without them I will.
I appreciate everyone’s efforts.
Note: rolling back to 4.7 made no difference.