Copied to clipboard

Flag this post as spam?

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


  • Wesley Herpoelaert 52 posts 123 karma points
    Feb 07, 2018 @ 16:36
    Wesley Herpoelaert
    0

    Error: System.ArgumentNullException: Value cannot be null

    Hi,

    When I save an image I receive the following error message:

    System.ArgumentNullException: Value cannot be null.
    Parameter name: httpContext
    

    Stacktrace:

    at System.Web.HttpContextWrapper..ctor(HttpContext httpContext)
    at Umbraco.Web.SingletonHttpContextAccessor.get_Value()
       at Umbraco.Web.RequestLifespanMessagesFactory.Get()
       at Umbraco.Core.Services.MediaService.Umbraco.Core.Services.IMediaServiceOperations.Save(IMedia media, Int32 userId, Boolean raiseEvents)
       at Umbraco.Core.Services.MediaService.Save(IMedia media, Int32 userId, Boolean raiseEvents)
       at Tinifier.Core.Repository.Image.TImageRepository.Update(Int32 id, Int32 actualSize)
       at Tinifier.Core.Services.Media.ImageService.UpdateImageAfterSuccessfullRequest(TinyResponse tinyResponse, TImage image, IFileSystem fs)
       at Tinifier.Core.Services.Media.ImageService.<OptimizeImageAsync>d__13.MoveNext()
    

    I'm using the latest version of TInifier and Umbraco v. 7.5.9.

  • SSA Backend 108 posts 640 karma points
    Feb 08, 2018 @ 12:31
    SSA Backend
    0

    Thanks, we will check it.

  • SSA Backend 108 posts 640 karma points
    Feb 09, 2018 @ 11:20
    SSA Backend
    1

    Hi, Wesley.

    Your issue fixed. Please, update your Tinifier version to 1.4.1 and check it. If everything OK, please, write here.

    Thanks for your topic.

    BackendDevs

  • Wesley Herpoelaert 52 posts 123 karma points
    Feb 09, 2018 @ 12:42
    Wesley Herpoelaert
    0

    Hi,

    It works fine now.

    Thanks for the quick fix!

    Best Regards, Wesley

Please Sign in or register to post replies

Write your reply to:

Draft