We have moved to GitHub Issues
Created by Mirko Matytschak 26 Nov 2014, 17:12:56 Updated by Nicholas Westby 10 May 2016, 20:35:05
I get the following log message:
2014-11-26 17:14:28,633  ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 187] An unhandled exception occurred System.Exception: ContentTypeService failed to find a content type with alias "Infokasten-1-3".
The Name of the content type is "Infokasten 1/3", the alias is "Infokasten13". If I look at the umbraco.config, the elements of the according document type have the name <Infokasten-1-3 ...
As far as I know, the element name should be the document type alias, so it should read <Infokasten13 ... in the umbraco.config
The message appears in the same situation as reported here:
but I don't think that there is a relationship between these two issues.
Could please somebody have a look at this issue? It breaks our customer's site. I see the exception as shown on the attached picture. The exception occurs, if i try to get an existing document with Umbraco.TypedContent(int id). The document has a document type name "Infokasten 1/3" and an alias "Infokasten13". The umbraco.config file shows an element name of "Infokasten_1_3" which is exactly the name appearing in the exception. I'm sorry that I've posted this comment in the wrong issue report first...
Update: I renamed the content type to be the same as the alias (which is Infokasten13). Now a new phenomen starts to appear: If I click at the node in the content section I get a 404 error message instead of the content editor page. I can publish the node with the right mouse button, but can't change any properties, since the editor doesn't appear. The log doesn't show anything interesting.
I was experiencing this issue too after an upgrade from Umbraco 6.1.6 to Umbraco 7.4.3. The problem seems to be related to the fact that hyphens/dashes are no longer allowed as document type aliases. On upgrade, the hyphens are removed in some places.
I was able to fix the issue by renaming the document type a couple times (e.g., from "subFolder" to "subFolder2" and back to "subFolder). In this example, my original document type had an alias of "sub-Folder").
Difficulty: Very Easy
Backwards Compatible: True
Affected versions: 6.1.6, 7.4.3
Due in version: