Error after upgrade to EPi 7

Vote:
 

Hello

I'm trying to upgrade a site to EPi 7 from EPi 6.

I have upgraded with the deployment center and fixed all errors in the solution.
It works fine to surf to the site and go to the edit and admin UI.

But in some situations in the edit/admin UI I get an error.

 


For example when pressing some of the page types in admin in the page type tab. Then i get the following

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.Editor.TinyMCE.PlugInAssembler.AddSettings(TinyMCESettings settings) +80
   EPiServer.UI.Admin.EditContentType.AppendPageDefenitionWarningMessage(TinyMCESettings settings, PropertyDefinition definition, StringBuilder warningMessage) +98
   EPiServer.UI.Admin.EditContentType.CheckTinyMCEPluginConflicts() +266
   EPiServer.UI.Admin.EditContentType.OnLoad(EventArgs e) +712
   System.Web.UI.Control.LoadRecursive() +70
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3063

 

 

 

And another place when somethings goes wrong is when pressing the forms-edit button in the edit mode for some pages but not for all. Then i receive this error

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.Editor.TinyMCE.PlugInAssembler.AddSettings(TinyMCESettings settings) +80
EPiServer.Editor.TinyMCE.TinyMCEInitOptions..ctor(InitType initType, IDictionary`2 options, TinyMCESettings settings, IContent content) +91
EPiServer.Editor.TinyMCE.TinyMCEInitOptions..ctor(InitType initType, TinyMCESettings settings, IContent content) +46
EPiServer.Cms.Shell.UI.ObjectEditing.EditorDescriptors.XhtmlStringEditorDescriptor.ModifyMetadata(ExtendedMetadata metadata, IEnumerable`1 attributes) +321
EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider.ApplyExtendersToMetadata(ExtendedMetadata metadata, IEnumerable`1 attributes, IEnumerable`1 metadataHandlers) +121
EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider.GetMetadataForProperties(ExtendedMetadata parent, Object container, Type containerType, IMetadataProvider customProvider) +289
EPiServer.Shell.ObjectEditing.ExtendedMetadata.get_Properties() +235
EPiServer.Cms.Shell.UI.ObjectEditing.SettingsPanelMetadataExtender.ModifyMetadata(ExtendedMetadata metadata, IEnumerable`1 attributes) +43
EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider.ApplyExtendersToMetadata(ExtendedMetadata metadata, IEnumerable`1 attributes, IEnumerable`1 metadataHandlers) +121
EPiServer.Shell.ObjectEditing.ExtensibleMetadataProvider.CreateMetadata(IEnumerable`1 attributes, Type containerType, Func`1 modelAccessor, Type modelType, String propertyName) +461
System.Web.Mvc.AssociatedMetadataProvider.GetMetadataForType(Func`1 modelAccessor, Type modelType) +129
EPiServer.Shell.UI.Rest.MetadataStore.Get(String type, String modelAccessor) +73
lambda_method(Closure , ControllerBase , Object[] ) +178
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +260
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +38
System.Web.Mvc.<>c__DisplayClass13.<InvokeActionMethodWithFilters>b__10() +128
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +313
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +978528
EPiServer.Shell.Services.Rest.RestControllerBase.ExecuteCore() +242
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +335
EPiServer.Shell.Services.Rest.RestHttpHandler.ProcessRequest(HttpContextBase httpContext) +274
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270

 

 


Perhaps some issue with TinyMCE by looking at the stack trace?

Anyone got any ideas?

#71979
Jun 03, 2013 17:11
Vote:
 

It's a bug in the upgrade tool.

Check this post in my blog: http://talk.alfnilsson.se/2013/03/06/nullreferenceexception-from-tinymcesettings-inputtinyoptions-getactivetoolshtml-and-toolbarrow/

#71980
Jun 03, 2013 18:56
Vote:
 

Thanks, that solved my issues.

#71988
Jun 04, 2013 12:53
Vote:
 

Alf Nilsson solution works, thanks!

#86427
May 21, 2014 12:28
Vote:
 

Still a bug in upgrade script 2015 and this solved it! Great!

#117330
Feb 18, 2015 8:59
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.