Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vincent Baaij 95 posts 344 karma points c-trib
    Aug 08, 2011 @ 14:28
    Vincent Baaij
    0

    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?

  • Per Ploug 865 posts 3491 karma points MVP admin
    Aug 09, 2011 @ 22:51
    Per Ploug
    0

    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?

  • Vincent Baaij 95 posts 344 karma points c-trib
    Aug 09, 2011 @ 23:40
    Vincent Baaij
    0

    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>

  • William Chang 6 posts 26 karma points
    Aug 10, 2011 @ 05:20
    William Chang
    0

    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>
    

     

    Please fix this bug. Thank you.
  • Per Ploug 865 posts 3491 karma points MVP admin
    Aug 10, 2011 @ 20:13
    Per Ploug
    0

    Thanks for reporting it, will make sure to get this fixed for the next release

Please Sign in or register to post replies

Write your reply to:

Draft