Copied to clipboard

Flag this post as spam?

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


  • Sören Deger 733 posts 2844 karma points c-trib
    May 09, 2014 @ 10:51
    Sören Deger
    0

    Richtext Editor doesn't render macros after upgrade to Umbraco 6.2

    Hello,

    I have a lot of macros, which I use in Richtext Editor. This works great in Umbraco 6.1.6. We have upgrade to Umbraco 6.2.0 now and all macros show an "Error loading MacroEngine script" Message in Richtext Editor, but works great in Frontend.

    I have insert macros again, save and publish the nodes again, republish entire site and checks if in Macro-Settings "Use in Editor" and "Render Content in Editor" is true. But nothing works...

    Is this an issue in 6.2?

     

    Best regards

    Sören

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    May 09, 2014 @ 11:19
    Jan Skovgaard
    0

    Hi Sören

    Not sure if it's an issue in 6.2.0 or not...but have you tried to see if the /app_data/logs file reveals any useful error information? Are there any entries marked with "ERROR" ?

    /Jan

  • Sören Deger 733 posts 2844 karma points c-trib
    May 09, 2014 @ 13:02
    Sören Deger
    0

    Hi Jan,

    yes, I have found this:

    2014-05-09 10:27:12,003 [7] WARN  umbraco.macro - [Thread 69] Error loading MacroEngine script (file: Moduleinfügen.cshtml, Type: ''. Exception: System.InvalidCastException: Specified cast is not valid.
      at umbraco.NodeFactory.Node.getCurrentNodeId()
      at umbraco.macro.GetCurrentNode()
      at umbraco.macro.loadMacroScript(MacroModel macro)
      at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)

     

    Sören

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    May 09, 2014 @ 13:20
    Jan Skovgaard
    0

    Hi Sören

    Hmm, Could you show the code from that file in particular? Perhaps something has changed that requires some changes to your code.

    /Jan

  • Sören Deger 733 posts 2844 karma points c-trib
    May 09, 2014 @ 13:29
    Sören Deger
    0

    Hi Jan,

    I have tested with different macros. This is the simplest Scripting File, which I have created new and does not even work:

    @inherits umbraco.MacroEngines.DynamicNodeContext
    
    @{
        <h1>Hello World!</h1>
    }
    


    If I created an Partial View Macro File, it doesn't not even work:

    @inherits Umbraco.Web.Macros.PartialViewMacroPage
    <h1>Hello World 2 !</h1>

     

    Sören

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    May 09, 2014 @ 13:41
    Jan Skovgaard
    0

    Hi Sören

    Smells like a serious bug to me - I've seen others having issues using @Umbraco.Field("")...

    Might be a good idea to file an issue

    However it might be worth taking a long shot before doing so.

    Try this

    1: Go to the /app_data/TEMP/ folder and delete all the files in the folders beneath this. Don't delete any folders though.

    2: Go to /config/ClientDependency.config and increment the version number

    3: Recycle the app pool

    Any luck? If not I think it's a bug...unless you're missing something in the upgrade...but it should be a fairly straight upgrade, right?

    /Jan

  • Sören Deger 733 posts 2844 karma points c-trib
    May 09, 2014 @ 14:00
    Sören Deger
    1

    Hi Jan,

    thank you. But I had no luck.  And yes, the upgrade is fairly straight. 

    I've created an Issue:
    http://issues.umbraco.org/issue/U4-4853

     

    Sören

  • Shannon Deminick 1524 posts 5269 karma points MVP 2x
    May 13, 2014 @ 07:20
    Shannon Deminick
    2

    Have replied to and fixed that issue

  • Sören Deger 733 posts 2844 karma points c-trib
    May 14, 2014 @ 09:00
    Sören Deger
    0

    Thank you! I will test it as soon as the new release is published.

Please Sign in or register to post replies

Write your reply to:

Draft