I’ve narrowed down the issue to a conflict with the “metabox” plugin. I’m not actually using it as a plugin but have it included as part of my theme.
I also used the metabox plugin on the other site where things were working fine. The metabox plugin is probably an earlier version there.
Any idea why there could be a conflict with a plugin like metabox?