I'm Using Razor Mediator and when I publishing i'm getting unable to get template type with id:8 while publishing.
-
2Hi Abdulla, This question is a bit light on detail and doesn't really meet our quality standards in its current form. Do you think you could update it please with more information and what you tried already to solve your issue?– Rob Stevenson-LeggettCommented Oct 30, 2014 at 11:24
-
+1 to Rob - Abdulla - what have you tried... can you publish anything (SGs, Components, Pages). Can you preview pages? Is this for specific pages/content types?– Dylan .. Mark SaundersCommented Oct 30, 2014 at 21:37
-
Nearly identical to this SE question.– Alvin ReyesCommented Oct 31, 2014 at 2:22
-
any update Abdulla?– Raj KumarCommented Oct 31, 2014 at 5:12
-
I have already installed Razor Mediator V1.2.2 in my Content Manager Server which is separated from Publisher Server. In my cms servers Publishing Services are Stopped. And I have Seperate Publishing Servers. I'm able to preview the razor mediator value which is nothing but just @Page.Title in preview mode but when I publish I got the error message : "Unable to get the Template Type with Id : 8"– Abdulla KalifullahCommented Nov 2, 2014 at 4:48
2 Answers
Razor seems to be registered with different id or its not installed at your CMS server, but template expecting it with Id:8
Check your Tridion.ContentManager.config,
it should be like below:
<add id="8" name="RazorTemplate" mimeType="text/x-tcm-cshtml"
hasBinaryContent="false"
contentHandler="Tridion.Extensions.Mediators.Razor.RazorContentHandler,
Tridion.Extensions.Mediators.Razor, Version=1.3.3.1, Culture=neutral,
PublicKeyToken=5eeceedb34d9dfd7">
<webDavFileExtensions>
<add itemType="TemplateBuildingBlock" fileExtension="cshtml" />
</webDavFileExtensions> </add>
-
-
Is razor installed(properly)? try restarting the com service if its installed. Commented Oct 30, 2014 at 9:26
-
Com+ Services, IIS and Application Pool and even CMS Servers are also restarted Commented Nov 2, 2014 at 5:08
-
Is Razor installed on your all Publishing Servers? because while rendering on specific server razor would be required. Commented Nov 2, 2014 at 8:19
-
I have had this error before and the Razor Mediator was not installed on the server, and therefore the CMS did not recognize the 'template type' of the Razor template. My advice would be to uninstall the Razor Mediator, restart, install the Razor Mediator, and finally restart again. I would then test it by creating a new Razor TBB and doing as you did previously, @Page.Title in a Page Template TBB, and preview in Template Builder.– robrtcCommented Nov 4, 2014 at 6:01
If your Publisher is out-scaled to another server (separate to your Content Manager server), then you will also need to install, and configure, the Razor Mediator on that server too.
It is also worth noting that you have to restart the Tridion Publisher
Windows Service after installing (or making any configuration changes to) the Razor Mediator.