Copied to clipboard

Flag this post as spam?

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


  • Michael Nielsen 99 posts 619 karma points
    Nov 04, 2015 @ 13:22
    Michael Nielsen
    0

    Umbraco 7.3, cannot compile LESS files

    When saving LESS files in the backend, the file is saved, but not compiled. We just get the following error.

    Error Compiling: There was an error compiling your file.
    
    Object reference not set to an instance of an object.
    

    There is nothing in the tracelog.

    It happens both on Umbraco 7.3.0 and 7.3.1. Optimus Core 1.4.0 Less.Provider 1.3.0

  • Tim Geyssens 6419 posts 15052 karma points MVP 2x c-trib
    Nov 04, 2015 @ 14:34
    Tim Geyssens
    0

    Ok thanks for reporting, will give it a go and see if I can reproduce

  • Tim Geyssens 6419 posts 15052 karma points MVP 2x c-trib
    Nov 04, 2015 @ 14:39
    Tim Geyssens
    0

    Just tried with a fresh install and it works fine... does this happen with all less files, what happens if you try the following snippet

    @base: #f938ab;
    
    .box-shadow(@style, @c) when (iscolor(@c)) {
      -webkit-box-shadow: @style @c;
      box-shadow:         @style @c;
    }
    .box-shadow(@style, @alpha: 50%) when (isnumber(@alpha)) {
      .box-shadow(@style, rgba(0, 0, 0, @alpha));
    }
    .box {
      color: saturate(@base, 5%);
      border-color: lighten(@base, 30%);
      div { .box-shadow(0 0 5px, 30%) }
    }
    
  • Tim Geyssens 6419 posts 15052 karma points MVP 2x c-trib
    Nov 04, 2015 @ 14:41
    Tim Geyssens
    0

    So I think there might be an error in you less file , but running that example snippet should give us an idea of that (if that works it is ...)

  • Michael Nielsen 99 posts 619 karma points
    Nov 04, 2015 @ 14:46
    Michael Nielsen
    0

    It's all Less files, also one containing only your snippet.

    Maybe it's something related to folder permissions, but I would not know what as it's been possible to install Umbraco with packages.

  • Michael Nielsen 99 posts 619 karma points
    Nov 04, 2015 @ 15:00
    Michael Nielsen
    0

    This is what we are seeing

    http://prntscr.com/8yy712

    There is no entries in the trace log at save time, and no new entries is added after saving the Less files and getting that message.

  • Tim Geyssens 6419 posts 15052 karma points MVP 2x c-trib
    Nov 04, 2015 @ 15:06
    Tim Geyssens
    0

    Yeah unfortunately the error message doesn't give us that much information, any chance you can send a copy of the site and db? Then I can debug locally... you can send to tim at nibble dot be

  • Tim Geyssens 6419 posts 15052 karma points MVP 2x c-trib
    Nov 04, 2015 @ 15:15
    Tim Geyssens
    100

    Any chance this is an upgraded site? maybe some entries are missing form the web.config, you could do a fresh install and compare the configs to see if they match

  • Michael Nielsen 99 posts 619 karma points
    Nov 04, 2015 @ 18:49
    Michael Nielsen
    0

    enter image description here

    $@&%*!

    Looked in web.config, and several sections and entries was missing.

    We did upgrade from 7.3.0 to 7.3.1, to fix the error where you were not able to save save Partial Views more than once without having to refresh.

    But the error was present before the upgrade, so something must have happened in the initial install.

    I added the missing sections and entries, and now it works!

    Thanks for your help, probably would not have spotted it without your suggestion.

  • Tim Geyssens 6419 posts 15052 karma points MVP 2x c-trib
    Nov 04, 2015 @ 19:28
    Tim Geyssens
    0

    Great, glad it's solved! :)

Please Sign in or register to post replies

Write your reply to:

Draft