Image editing: “Edit Original” and “Replace” buttons missing on old posts

Experienced the same issue, but not for all images. The issue was migration related. The problem presented itself only for images that were not uploaded via the WordPress media interface, but were uploaded to the new server via FTP.

To fix this issue, I repeated my migration then re-applied theme and design changes.