When I try to transfer a DocType, the changes do not show up on the other side. In the log.txt file, the following message shows up:
Debug Resouces: 1
Error System.Exception: Could not load the macro that is called in the template Global Textpage at Umbraco.Courier.DataResolvers.MacroParameters.TransformMacroTag(String tag, Boolean toUnique, Item item) in d:\TeamCity6\buildAgent\work\10d13058beb058ea\Umbraco.Courier.DataResolvers\DataResolvers\MacroParameters.cs:line 210 at Umbraco.Courier.DataResolvers.MacroParameters.ReplaceMacrosInstring(String str, Boolean toUnique, Item item) in d:\TeamCity6\buildAgent\work\10d13058beb058ea\Umbraco.Courier.DataResolvers\DataResolvers\MacroParameters.cs:line 176
I managed to get a bit more info by looking at the DataResolvers source. The error should also include the alias of the macro. I added an alias to all the macro's in the template and it turns out Courier chockes on the first macro, which is a simple inline razor script:
I'm having the same issue too. This is a known issue since I started using Courier 2.1.1 and Umbraco 4.7.0. I didn't get chance to report it as a bug until now.
Similar errors reported from log.txt file:
Error
System.Exception: Could not load the macro that is called in the template Eos Ordering Detail
at Umbraco.Courier.DataResolvers.MacroParameters.TransformMacroTag(String tag, Boolean toUnique, Item item) in d:\TeamCity6\buildAgent\work\10d13058beb058ea\Umbraco.Courier.DataResolvers\DataResolvers\MacroParameters.cs:line 210
at Umbraco.Courier.DataResolvers.MacroParameters.ReplaceMacrosInstring(String str, Boolean toUnique, Item item) in d:\TeamCity6\buildAgent\work\10d13058beb058ea\Umbraco.Courier.DataResolvers\DataResolvers\MacroParameters.cs:line 174
Error
System.Exception: Could not load the macro that is called in the template Eos Job List
at Umbraco.Courier.DataResolvers.MacroParameters.TransformMacroTag(String tag, Boolean toUnique, Item item) in d:\TeamCity6\buildAgent\work\10d13058beb058ea\Umbraco.Courier.DataResolvers\DataResolvers\MacroParameters.cs:line 210
at Umbraco.Courier.DataResolvers.MacroParameters.ReplaceMacrosInstring(String str, Boolean toUnique, Item item) in d:\TeamCity6\buildAgent\work\10d13058beb058ea\Umbraco.Courier.DataResolvers\DataResolvers\MacroParameters.cs:line 174
I'm using the <umbraco:macro> server control tags to embed C# Razor code inside my EosJobList.master file:
<umbraco:macro language="cshtml" runat="server">
@* Do something here. *@
</umbraco:macro>
Courier not working; errors in log.txt
When I try to transfer a DocType, the changes do not show up on the other side. In the log.txt file, the following message shows up:
Debug
Resouces: 1
Error
System.Exception: Could not load the macro that is called in the template Global Textpage
at Umbraco.Courier.DataResolvers.MacroParameters.TransformMacroTag(String tag, Boolean toUnique, Item item) in d:\TeamCity6\buildAgent\work\10d13058beb058ea\Umbraco.Courier.DataResolvers\DataResolvers\MacroParameters.cs:line 210
at Umbraco.Courier.DataResolvers.MacroParameters.ReplaceMacrosInstring(String str, Boolean toUnique, Item item) in d:\TeamCity6\buildAgent\work\10d13058beb058ea\Umbraco.Courier.DataResolvers\DataResolvers\MacroParameters.cs:line 176
(There are messages for other templates as well)
How can I solve this?
From the error message it seems that courier cannot detect the macro alias, based on your macro tags in the template
could you post the macro mark-up from the template Global Textpage?
Per,
I managed to get a bit more info by looking at the DataResolvers source. The error should also include the alias of the macro. I added an alias to all the macro's in the template and it turns out Courier chockes on the first macro, which is a simple inline razor script:
<umbraco:Macro Alias="inline1" runat="server" language="cshtml">
@if (Model.Media("menuImage","umbracoFile") != null) {
<img class="navimage" src='@Model.Media("menuImage","umbracoFile")' alt="@Model.Name" />
}
</umbraco:Macro>
I'm having the same issue too. This is a known issue since I started using Courier 2.1.1 and Umbraco 4.7.0. I didn't get chance to report it as a bug until now.
Similar errors reported from log.txt file:
I'm using the <umbraco:macro> server control tags to embed C# Razor code inside my EosJobList.master file:
Thanks for reporting it, will make sure to get this fixed for the next release
is working on a reply...