Thanks Robert! That worked. I thought I had removed that code already on my live copy of the site but apparently not. Cheers.
I’m also having this same problem. It’s very frustrating. I always have to edit it in the database under wp_posts. Any ideas?