Page URL showing as http://MySite/Contents/Item/Display/15 not http://MySite/Programme

Topics: Troubleshooting
Sep 3 at 7:17 PM
When I look in the Orchard logs I get this error

2016-09-03 18:17:44,690 [40] Orchard.ContentManagement.DefaultContentManager - Default - IdentifierGenerationException thrown from IContentHandler by Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator
http://MySite/Comments/Comment/Create?ReturnUrl=http:%2F%2Fwww.MySite%2FContents%2FItem%2FDisplay%2F1827
NHibernate.Id.IdentifierGenerationException: attempted to assign id from null one-to-one property: ContentItemRecord

If you open the site in a new browser it wont load at all. However my active session does allow me to navigate the site.
I've republished the main page and the site has reappeared. If I republish the other page they also start showing the correct url not a /Contents/Item/Display/15 url

I'm assuming that this is something to do with the relations in the database being out of sync?.

The site has only just gone live and has very little traffic as yet.

I believe that this happend when I created a new menu item, but cant prove it.

any ideas ?