Getting 404.php instead of single-.php [duplicate]

Nevermind. For some reason, I had to go to my permalinks page and click ‘Save Changes’ for this to show up. It is bewildering.