Copied to clipboard

Flag this post as spam?

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


  • ... 20 posts 41 karma points
    Jun 12, 2013 @ 11:43
    ...
    0

    Error loading all MacroEngine scripts

    Hi there,

    Hope someone can help, I'm new to Umbraco. I've recently created a local install of Umbraco and after unpacking the uBootstrap package, every Macro Engine fails to load.

    Some like Navigation.cshtml and Sidenavigation.cshtml have fixes whereby adding a space before @Html.Raw in those files forces them to work, but this isn't consistent across all the Macro Engine files.

    I can see other users are encountering this issue, but wondered if there was a root cause or fix.

    I'm using the default Web Matrix install of Umbraco, version 6.0.6.

    Any help much appreciated.

  • J 150 posts 489 karma points
    Jun 12, 2013 @ 12:46
    J
    0

    Hi Duncan,

    I'm afraid the current version of the uBootstrap package does not play nicely with Umbraco 6 due to some fundamental changes on the razor view engine on ASP.NET MVC 4. You can read more on http://our.umbraco.org/projects/starter-kits/ubootstrap/help-using-ubootstrap/38557-Umbraco-6-coupled-with-uBootstrap

    Cheers,

    Jorge

  • ... 20 posts 41 karma points
    Jun 12, 2013 @ 14:54
    ...
    0

    Hi Jorge,

    Thanks for this. I was wondering, in the thread you link to, someone mentions a branch called 1.1.1 which resolves issues, but they haven't linked to this and I can't find it either on the official page or the github page.

    Can you shed some light?

     

    Cheers again,

     

    Duncan

     

  • ... 20 posts 41 karma points
    Aug 13, 2013 @ 15:16
    ...
    0

    Hi Jorge,

     

    Has there been an update to this?

     

    Thanks,

     

    D

     

     

  • Amir Khan 1287 posts 2744 karma points
    Aug 13, 2013 @ 16:03
    Amir Khan
    0

    Hi Duncan,

    Here's the branch with 1.1.1: https://github.com/DrewGarratt/ubootstrap/tree/Umbraco6

    Hope that works for ya!

    -Amir

  • ... 20 posts 41 karma points
    Aug 13, 2013 @ 16:26
    ...
    0

    Hi Amir,

    Thanks for the link, unfortunately the 1.1.1 version completely destroyed my Umbraco installation and wiped it from the server.

    D

     

     

     

  • J 150 posts 489 karma points
    Aug 13, 2013 @ 16:39
    J
    0

    Hi Duncan,

    There is a unfinished version of Uboostrap MVC on https://github.com/jorgelusar/ubootstrap/tree/mvc, just in case it might help. I'm afraid I do not have the time for now to fix this issue.

    Thanks,

    Jorge

  • Amir Khan 1287 posts 2744 karma points
    Aug 13, 2013 @ 16:42
    Amir Khan
    0

    Duncan, that's terrible. What did it "do" exactly, I've never had a package actually break an installation before...Did you have a backup?

    -Amir

  • ... 20 posts 41 karma points
    Aug 13, 2013 @ 16:51
    ...
    0

    Hi Amir,

    It was a fresh install of Umbraco, so I didn't lose much other than time, thankfully.

    Attempted to install the package twice and got a page which stated that 'The resource could not be found'.

    On the third attempt the site went down completely, and all pages showed an error page starting with:

    Could not load file or assembly 'Umbraco.Forms.References, Version=1.0.10920.32880, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

     

    D

     

  • ... 20 posts 41 karma points
    Aug 14, 2013 @ 12:06
    ...
    0

    Hi guys,

    So I didn't have much luck with the v6 package.
    For some reason it kept 404'ing, and the back office kept saying the resource could not be found.

    I noticed that the package modifies web.config on install, but doesn't modify it on uninstall, and this left .dll files which the system attempted to reference after Bootstrap was gone, causing everything to fail. Pushing web.config back to an earlier version of the file allowed the back office to load again.

    I decided to install v1.1.0 again and try to get the Macro packages working with various bits of info from this forum. So:

    RelatedLinks.chtml - This will render once a footer link has been set in the back end
    Navigation.chtml & SideNavigation.chtml - These will render once a space has been placed in front of every instance of 

    @Html.Raw

    PageTitle.chtml - This one requires a code change, posted in http://our.umbraco.org/projects/starter-kits/ubootstrap/help-using-ubootstrap/38557-Umbraco-6-coupled-with-uBootstrap by Drew Garret.

    This is the new code:

    @inherits umbraco.MacroEngines.DynamicNodeContext
    @{
       
    @Model.AncestorsOrSelf().First().SiteName
       
    if(@Model.Level>1)
       
    {
           
    foreach(var name inModel.AncestorsOrSelf().Where("Visible").Where("Level > 1").Pluck("Name"))
           
    {
               
    @Html.Raw(" - ");
               
    @name;
           
    }
       
    }
    }

    Once I put these changes in place, everything, with the exception of search, started working as expected.

    Still trying to work out how to make NewsList and PhotoPager play nice, but there *must* be a way.

     

    Hope this helps, and thanks for everyone's advice!!!

    For everyone's reference: Neither version of the package linked to from this thread, the v6 package OR the mvc package, will work.
    Backoffice simply refuses to install either of them.

     

    Duncan

     

     

     


Please Sign in or register to post replies

Write your reply to:

Draft