Copied to clipboard

Flag this post as spam?

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


  • Paolo Dal Molin 2 posts 71 karma points
    Sep 29, 2020 @ 14:47
    Paolo Dal Molin
    0

    Tinifier 2.0 in Umbraco v8.7 Content: Cannot save a non-current version.

    The Tinifier package is installed correctly and works correctly with media.

    Instead it creates problems in the Content section, when trying to save a page the error appears: "Cannot save a non-current version".

    Uninstalling the Tinifier package the error no longer occurs.


    Below is the complete error:

    Server error: Contact administrator, see log for full details. Cannot save a non-current version. {"@t":"2020-09-28T14:58:31.3708839Z","@mt":"Unhandled controller exception occurred for request '{RequestUrl}'","@l":"Error","@x":"System.InvalidOperationException: Cannot save a non-current version.\r\n at Umbraco.Core.Persistence.Repositories.Implement.DocumentRepository.PersistUpdatedItem(IContent entity)\r\n at Umbraco.Core.Cache.DefaultRepositoryCachePolicy2.Update(TEntity entity, Action1 persistUpdated) in D:\a\1\s\src\Umbraco.Core\Cache\DefaultRepositoryCachePolicy.cs:line 128\r\n at Umbraco.Core.Services.Implement.ContentService.CommitDocumentChangesInternal(IScope scope, IContent content, ContentSavingEventArgs saveEventArgs, IReadOnlyCollection1 allLangs, Int32 userId, Boolean raiseEvents, Boolean branchOne, Boolean branchRoot) in D:\\a\\1\\s\\src\\Umbraco.Core\\Services\\Implement\\ContentService.cs:line 1234\r\n at Umbraco.Core.Services.Implement.ContentService.SaveAndPublish(IContent content, String[] cultures, Int32 userId, Boolean raiseEvents) in D:\\a\\1\\s\\src\\Umbraco.Core\\Services\\Implement\\ContentService.cs:line 953\r\n at Umbraco.Web.Editors.ContentController.PublishInternal(ContentItemSave contentItem, String defaultCulture, String cultureForInvariantErrors, Boolean& wasCancelled, String[]& successfulCultures) in D:\\a\\1\\s\\src\\Umbraco.Web\\Editors\\ContentController.cs:line 1302\r\n at Umbraco.Web.Editors.ContentController.PostSaveInternal(ContentItemSave contentItem, Func2 saveMethod, Func2 mapToDisplay) in D:\\a\\1\\s\\src\\Umbraco.Web\\Editors\\ContentController.cs:line 759\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.

  • Ifrahim Rasool 28 posts 84 karma points
    Oct 01, 2020 @ 14:18
    Ifrahim Rasool
    0

    Hey Paola, I am getting same error. Did you find any logical reason for this? I even tested it on v8.5.5 but same issue.

  • Paolo Dal Molin 2 posts 71 karma points
    Oct 01, 2020 @ 15:05
    Paolo Dal Molin
    0

    I haven't debugged in umbraco.core, I'm waiting for a solution from Tinifier developers, I hope they find a quick solution, so that I can reinstall the package

  • Ifrahim Rasool 28 posts 84 karma points
    Oct 01, 2020 @ 15:10
    Ifrahim Rasool
    0

    Its a great package, but this issue is quite annoying :)

  • John Winstanley 3 posts 73 karma points
    Oct 07, 2020 @ 13:42
    John Winstanley
    0

    Same issue

    Umbraco version 8.3 Tinifier version 2.0.2

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Dec 18, 2020 @ 14:38
    Alex Skrypnyk
    0

    Same issue

    Umbraco version 8.7 Tinifier version 2.0.2

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Dec 18, 2020 @ 14:39
    Alex Skrypnyk
    0

    Removing Tinifier solved the issue

  • Jeroen Vantroyen 54 posts 394 karma points c-trib
    Jan 09, 2021 @ 11:32
    Jeroen Vantroyen
    100

    This issue was solved in a new version of Tinifier.

    Warning: It's a different Nuget package.

    https://www.nuget.org/packages/Our.Umbraco.Tinifier

    Since it appears the Tinifier author is no longer responding, I've taken it upon myself to fork the project and release a new Nuget until the original author does come back and accepts the Pull Request.

Please Sign in or register to post replies

Write your reply to:

Draft