Copied to clipboard

Flag this post as spam?

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


  • Paul de Quant 403 posts 1520 karma points
    Nov 07, 2017 @ 09:50
    Paul de Quant
    0

    404 on lazyload.js during upgrade process

    Hello,

    I'm in the process of upgrading an umbraco site from 7.5.10 to 7.7.4. My issue is that the upgrade page isn't loading correctly because it can't find the script - lib/rgrove-lazyload/lazyload.js

    I've checked the path in question and that file does exist. Even if I go directly to it, it returns a 404 error. I've tried other scripts as well and it's the same issue.

    Has anyone experienced this before and can they provide any help.

    Many thanks

    Paul

  • Paul de Quant 403 posts 1520 karma points
    Nov 07, 2017 @ 10:15
    Paul de Quant
    0

    UPDATE:

    After trying Firefox instead of Chrome I can see I'm getting the error:-

    /umbraco/lib/rgrove-lazyload/lazyload.js” was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff).

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Nov 07, 2017 @ 16:32
    Sebastiaan Janssen
    0

    Looks like you need to negate the nosniff header for the /umbraco route, find the location node in your web.config and update it accordingly:

      <location path="umbraco">
        <system.webServer>
          <urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" />
          <httpProtocol>
            <customHeaders>
              <remove name="X-Frame-Options" />
              <add name="X-Frame-Options" value="SAMEORIGIN" />
              <remove name="X-Content-Type-Options" />
            </customHeaders>
          </httpProtocol>
        </system.webServer>
      </location>
    
  • Paul de Quant 403 posts 1520 karma points
    Nov 07, 2017 @ 16:41
    Paul de Quant
    100

    Hi Sebastiaan,

    Thanks for the suggestion, I managed to get it working. Looks like NUGET wasn't playing ball. I ended up downloading the Umbraco and Umbraco_Client folders from the our site and copied them directly over.

    Problem went away :)

    Thanks

    Paul

Please Sign in or register to post replies

Write your reply to:

Draft