WordPress Post ID overwritten when I create a new post?

The reason for this was because we had (oddly) two certificates. One was loaded on the server whilst the other was with CloudFlare.

When one cert expired it caused mayhem

So. Now you know.

error code: 523