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.
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
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.
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.DefaultRepositoryCachePolicy
2.Update(TEntity entity, Action
1 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, Func
2 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, IDictionary
2 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.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.
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
Its a great package, but this issue is quite annoying :)
Same issue
Umbraco version 8.3 Tinifier version 2.0.2
Same issue
Umbraco version 8.7 Tinifier version 2.0.2
Removing Tinifier solved the issue
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.
is working on a reply...