The problem is as follows to make it happen:
- You are having a custom document library created
- You are using a feature to assign a custom content type
- The library where the feature is assigning the content type has a redirection rule
If the above are true then what happened in my case was that the document library suddenly had in the New and Edit form content types which where not assigned to the document library but used in the redirection rules for the record center.
The only solution I found was to temporarily disable(delete) the redirection rules and re-activate my feature, well the library was a mess so I had to re-create it again.