November Happy Hour will be moved to Thursday December 5th.

LinkItemCollection crashes the javascripts in edit mode

Vote:
 

Hi!

Im not very familier with EPiServer 7.5 but I have done a few sites using v5 and 6.. anyway

For some reason the LinkItemCollection property-type keeps crashing the "internal" javascripts within the EpiServer page editor.

_317: Unable to load /EPiServer/cms/Stores/contentdata/10_10 status: 500 {message: "Unable to load /EPiServer/cms/Stores/contentdata/10_10 status: 500", response: Object, status: 500, responseText: "
↵
↵    
↵        ", xhr: XMLHttpRequest…}message: "Unable to load /EPiServer/cms/Stores/contentdata/10_10 status: 500"

If I expand the responseText it gives me the following exception:

Server Error in '/' Application.

↵ ↵
Object reference not set to an instance of an object.

↵ ↵ ↵ ↵ Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. ↵ ↵ 

↵ ↵ Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

↵ ↵ Source Error: 

↵ ↵ ↵ ↵ ↵ ↵
↵ ↵ ↵An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. ↵ ↵
↵ ↵ 
↵ ↵ Stack Trace: 

↵ ↵ ↵ ↵ ↵ ↵
↵
↵
↵[NullReferenceException: Object reference not set to an instance of an object.]
↵   EPiServer.UriSupport.AbsoluteUrlBySettings(String path) +53
↵   EPiServer.Cms.Shell.UI.ObjectEditing.InternalMetadata.LinkModel.ModifyIContentProperties(LinkItem serverModel, LinkModel clientModel) +371
↵   EPiServer.Cms.Shell.UI.ObjectEditing.InternalMetadata.LinkModel.ToClientModel(Object serverModel) +509
↵   EPiServer.Cms.Shell.Json.LinkItemCollectionConverter.WriteJson(JsonWriter writer, Object value, JsonSerializer serializer) +77
↵   Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeConvertable(JsonWriter writer, JsonConverter converter, Object value, JsonContract contract, JsonContainerContract collectionContract, JsonProperty containerProperty) +399
↵   Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty) +364
↵   Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty) +634
↵   Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty) +573
↵   Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeDictionary(JsonWriter writer, IDictionary values, JsonDictionaryContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty) +1306
↵   Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty) +960
↵   Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty) +492
↵   Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty) +466
↵   Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType) +216
↵   Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType) +2078
↵   Newtonsoft.Json.JsonSerializer.Serialize(JsonWriter jsonWriter, Object value) +44
↵   Newtonsoft.Json.JsonSerializer.Serialize(TextWriter textWriter, Object value) +70
↵   EPiServer.Framework.Serialization.Json.JsonObjectSerializer.Serialize(TextWriter textWriter, Object value) +56
↵   EPiServer.Shell.Services.Rest.RestResultBase.ExecuteResult(ControllerContext context) +471
↵   EPiServer.Shell.Services.Rest.RestResult.ExecuteResult(ControllerContext context) +55
↵   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
↵   System.Web.Mvc.<>c__DisplayClass1a.b__17() +23
↵   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +242
↵   System.Web.Mvc.<>c__DisplayClass1c.b__19() +21
↵   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +242
↵   System.Web.Mvc.<>c__DisplayClass1c.b__19() +21
↵   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +175
↵   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +324
↵   EPiServer.Shell.Services.Rest.RestControllerBase.ExecuteCore() +252
↵   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +90
↵   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
↵   EPiServer.Shell.Services.Rest.RestHttpHandler.ProcessRequest(HttpContextBase httpContext) +450
↵   EPiServer.Shell.Services.Rest.RestHttpHandler.ProcessRequest(HttpContext context) +68
↵   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
↵   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
↵

This javascript error is ONLY thrown when using and populating a ListItemCollection property with a link, if I leave the property blank(Dont add any links) then all works fine.. but as soon as I add a link the editor stops working.

Is this any known problem with the LinkItemCollection in EpiServer 7.5+?

#113045
Nov 11, 2014 15:43
Vote:
 

How are you site definitions configured? Found in Admin -> config

#113064
Nov 12, 2014 9:21
Vote:
 

I am getting the same error. advive pls

#141766
Nov 19, 2015 18:36
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.