U4-4504 - Value cannot be null for parameter 'refresher' when publishing or sorting in 7.1.0-RC

Created by Jakub Hromadík 23 Mar 2014, 12:07:11 Updated by David Wandar 28 May 2015, 12:56:47

After updating from 7.0.4 to 7.1.0-RC I was getting errors when saving document types - turns out there is an issue with Nuget updates ([U4-4500|http://issues.umbraco.org/issue/U4-4500]) which I was able to fix using the provided solution. Now I'm getting errors (not YSOD, these are shown in the popup area at the bottom) when publishing or sorting content.

When publishing content - this is a response taken from Firefox developer tools, this does not show in the log - dev tools even show an error complaining about illegal character at line 1 position 1 in the JSON response:


)]}', {"Message":"An error has occurred.","ExceptionMessage":"Value cannot be null. Parameter name: refresher","ExceptionType":"System.ArgumentNullException","StackTrace":" at Umbraco.Core.Sync.DefaultServerMessenger.PerformRefresh[T](IEnumerable1 servers, ICacheRefresher refresher, Func2 getNumericId, T[] instances) at Umbraco.Web.Cache.DistributedCache.Refresh[T](Guid factoryGuid, Func2 getNumericId, T[] instances) at Umbraco.Web.Cache.DistributedCacheExtensions.RefreshUnpublishedPageCache(DistributedCache dc, IContent[] content) at Umbraco.Web.Cache.CacheRefresherEventHandler.ContentServiceSaved(IContentService sender, SaveEventArgs1 e) at Umbraco.Core.Events.TypedEventHandler2.Invoke(TSender sender, TEventArgs e) at Umbraco.Core.Events.EventExtensions.RaiseEvent[TSender,TArgs](TypedEventHandler2 eventHandler, TArgs args, TSender sender) at Umbraco.Core.Services.ContentService.SaveAndPublishDo(IContent content, Int32 userId, Boolean raiseEvents) at Umbraco.Core.Services.ContentService.SaveAndPublishWithStatus(IContent content, Int32 userId, Boolean raiseEvents) at Umbraco.Web.Editors.ContentController.PostSave(ContentItemSave contentItem) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.b__c(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.<>c__DisplayClass5.b__4() at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"}


When sorting - this does show in the log:


2014-03-23 12:28:07,505 [6] ERROR umbraco.presentation.webservices.nodeSorter - [Thread 112] Could not update content sort order System.ArgumentNullException: Value cannot be null. Parameter name: refresher at Umbraco.Core.Sync.DefaultServerMessenger.PerformRefresh[T](IEnumerable1 servers, ICacheRefresher refresher, Func2 getNumericId, T[] instances) at Umbraco.Web.Cache.DistributedCache.Refresh[T](Guid factoryGuid, Func2 getNumericId, T[] instances) at Umbraco.Web.Cache.DistributedCacheExtensions.RefreshUnpublishedPageCache(DistributedCache dc, IContent[] content) at Umbraco.Web.Cache.CacheRefresherEventHandler.ContentServiceSaved(IContentService sender, SaveEventArgs1 e) at Umbraco.Core.Events.TypedEventHandler2.Invoke(TSender sender, TEventArgs e) at Umbraco.Core.Events.EventExtensions.RaiseEvent[TSender,TArgs](TypedEventHandler2 eventHandler, TArgs args, TSender sender) at Umbraco.Core.Services.ContentService.Sort(IEnumerable`1 items, Int32 userId, Boolean raiseEvents) at umbraco.presentation.webservices.nodeSorter.SortContent(String[] ids, Int32 parentId)


I think this started happening after I emptied the recycle bin, but I'm not sure about that.

'''I was able to fix both issues by shutting down Visual Studio + IIS Express, removing all temporary files from App_Data (access.config, umbraco.config, TEMP folder, preview folder) and then reloading the solution and restarting the site.'''

Comments

Sebastiaan Janssen 23 Mar 2014, 15:15:10

I would love to have a look at this but I tried emptying the recycle bin and then doing a sort and couldn't get it to fail. For now I'll assume it's due to the slightly awkward upgrade path. If you have this happen again then please re-open the issue.


Arjan 25 Mar 2014, 11:31:51

I had the the exact same issue but I'm not using nuget. Just the release version of umbraco in Visual Studio. And indeed after deleting the umbraco cache and restarting VS (and IIS) the error is not occurring anymore.


Tom Fulton 31 Mar 2014, 02:33:45

Same issue here, also fixed by clearing App_Data and restarting the site. Site was installed using NuGet and upgraded from 7.0.2 -> 7.0.4. The upgrade happened on another machine, so guessing something old was still cached locally.


Kevin Giszewski 03 Apr 2014, 13:46:31

Same issue here today on 6.1.6. @tomnf suggestion worked for me.


firepol 24 Apr 2014, 06:09:50

Same happened to me with umbraco 6.2-RC. Had several files under app_data: justDelete_*.udt @tomnf suggestion worked for me too.


Laurence Gillian 15 May 2014, 10:26:52

I'm seeing this on 6.2 (upgraded from 6.1.6) @tomnf solution worked for me.


David Dimmer 18 May 2014, 17:29:53

I just had the same issue going from Umbraco 6.1.6 to 6.2. I deleted the umbraco.config, Umbraco, bin and Umbraco_Client folder. That fixed it for me. The issue I had was after redeployment, locally 6.2 ran fine post upgrade.


Sebastiaan Janssen 19 May 2014, 07:15:02

@dd@fyin.com Yours sounds like a different issue, which we fixed for 7.1.3 and also 6.2.1. See: http://issues.umbraco.org/issue/U4-4930


Sunshine Lewis 22 May 2014, 16:31:24

Thanks. I also got this after upgrading from 7.0.4 to 7.1.2. I upgraded locally with no problems and then published my upgraded site from local to production (via Visual Studio). Either something from production disagreed with the new dlls or I accidentally published a temp file I shouldn't have.

I also fixed it by clearing things from app_data. Specifically:

  • access.config
  • umbraco.config
  • temp/clientDependency
  • temp/pluginCache

I'm using azurewebsites so I didn't want to restart the site but bumping the web.config to restart the application worked just as well.


David Wandar 28 May 2015, 12:56:47

I just got this error on a site on Azure websites. Might be related to the fact that my 1GB file storage had run out. Restarting the site resulted in a System.IO error (no space on disk). It went back up after clearing some app_data-stuff. And the above mentioned "refresher"-error disappeared.


Priority: Normal

Type: Bug

State: Can't Reproduce

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.1.0

Due in version:

Sprint:

Story Points:

Cycle: