Copied to clipboard

Flag this post as spam?

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


  • Mark Wyatt 3 posts 83 karma points
    Aug 12, 2020 @ 16:19
    Mark Wyatt
    0

    Cannot save a non-current version.

    I am getting the following error on everypage when I try and click "Save and Publish" on all pages of my site... Any Suggestions?

    Received an error from the server An error occured Cannot save a non-current version.

    Exception Details System.InvalidOperationException: Cannot save a non-current version. Stacktrace at Umbraco.Core.Persistence.Repositories.Implement.DocumentRepository.PersistUpdatedItem(IContent entity) at Umbraco.Core.Cache.DefaultRepositoryCachePolicy2.Update(TEntity entity, Action1 persistUpdated) in D:\a\1\s\src\Umbraco.Core\Cache\DefaultRepositoryCachePolicy.cs:line 128 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 1230 at Umbraco.Core.Services.Implement.ContentService.SaveAndPublish(IContent content, String culture, Int32 userId, Boolean raiseEvents) in D:\a\1\s\src\Umbraco.Core\Services\Implement\ContentService.cs:line 903 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 1217 at Umbraco.Web.Editors.ContentController.PostSaveInternal(ContentItemSave contentItem, Func2 saveMethod, Func2 mapToDisplay) in D:\a\1\s\src\Umbraco.Web\Editors\ContentController.cs:line 728 at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary2 arguments, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.

  • Mark Wyatt 3 posts 83 karma points
    Aug 12, 2020 @ 17:39
    Mark Wyatt
    0

    Have resolved the issue. Uninstalled Usync and Tinifier packages

  • Rodolphe Toots 34 posts 145 karma points
    Oct 14, 2020 @ 15:57
    Rodolphe Toots
    100

    The problem is not uSync, but Tinifier. You should be able to re-install usync with no problems.

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

    Uninstalling Tinifier solves this issue.

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

    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