U4-3417 - Can't create member in back-office

Created by Andy Butland 06 Nov 2013, 08:46:29 Updated by Claus Jensen 14 Apr 2016, 08:47:56

Relates to: U4-3317

Note: having read the description, although the title is similar, I don't think this is a duplicate of U4-3337

Saving a member leads to this error in the console:

POST http://umbraco7rc.local/umbraco/UmbracoApi/Member/PostSave 500 (Internal Server Error) angular.min.js:106 TypeError: Cannot read property 'length' of undefined at Object.getAllProps (http://umbraco7rc.local/umbraco/js/umbraco.services.js:360:45) at http://umbraco7rc.local/umbraco/js/umbraco.controllers.js:2590:59 at o (http://umbraco7rc.local/umbraco/lib/angular/1.1.5/angular.min.js:80:3) at http://umbraco7rc.local/umbraco/lib/angular/1.1.5/angular.min.js:81:80 at Object.e.$eval (http://umbraco7rc.local/umbraco/lib/angular/1.1.5/angular.min.js:92:272) at Object.e.$digest (http://umbraco7rc.local/umbraco/lib/angular/1.1.5/angular.min.js:90:142) at Object.e.$apply (http://umbraco7rc.local/umbraco/lib/angular/1.1.5/angular.min.js:92:431) at j (http://umbraco7rc.local/umbraco/lib/angular/1.1.5/angular.min.js:101:80) at r (http://umbraco7rc.local/umbraco/lib/angular/1.1.5/angular.min.js:104:449) at XMLHttpRequest.v.onreadystatechange (http://umbraco7rc.local/umbraco/lib/angular/1.1.5/angular.min.js:106:90)

The response from /Member/PostSave is:

{"Message":"An error has occurred.","ExceptionMessage":"Data at the root level is invalid. Line 1, position 1.","ExceptionType":"System.Xml.XmlException","StackTrace":" at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)\r\n at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()\r\n at System.Xml.XmlTextReaderImpl.ParseDocumentContent()\r\n at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)\r\n at System.Xml.XmlDocument.Load(XmlReader reader)\r\n at System.Xml.XmlDocument.LoadXml(String xml)\r\n at umbraco.editorControls.imagecropper.DataTypeData.ToXMl(XmlDocument data)\r\n at umbraco.cms.businesslogic.property.Property.ToXml(XmlDocument xd)\r\n at umbraco.cms.businesslogic.Content.XmlPopulate(XmlDocument xd, XmlNode& x, Boolean Deep)\r\n at umbraco.cms.businesslogic.member.Member.generateXmlWithoutSaving(XmlDocument xd)\r\n at umbraco.cms.businesslogic.Content.XmlGenerate(XmlDocument xd)\r\n at umbraco.cms.businesslogic.member.Member.Save()\r\n at umbraco.providers.members.UmbracoMembershipProvider.CreateUser(String memberTypeAlias, String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status)\r\n at Umbraco.Web.Editors.MemberController.CreateWithUmbracoProvider(MemberSave contentItem, MembershipCreateStatus& status)\r\n at Umbraco.Web.Editors.MemberController.PostSave(MemberSave contentItem)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.b__c(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"}


Andy Butland 06 Nov 2013, 08:49:58

Should add the member does seem to be saved OK, and subsequent editing of the member record is fine.

Per Ploug 11 Nov 2013, 12:48:16

Do you have any packages installed? I've seen this error on my machine, but we have not been able to replicate, the strange thing is that it seems the image cropper tries to perform cropping all of a sudden, from the stacktrace:

umbraco.editorControls.imagecropper.DataTypeData.ToXMl(XmlDocument data)\r\n at

Andy Butland 11 Nov 2013, 13:06:50

I'm fairly sure it was a clean install of v7 rc... but yes, that does look odd. It's possible I've confused something by pointing it to another test installations database. I'll try to set up from scratch again and update.

Shannon Deminick 12 Nov 2013, 06:42:09

I've fixed this issue - which might be the cause of this issue: U4-3485 - this fix directly affects the ToXMl logic of some legacy stuff. still not sure why Per you were getting image cropper showing up in the stack trace though. I've tested today and can create/update/delete members just fine with no errors with custom properties.

Shannon Deminick 12 Nov 2013, 06:48:27

@Andy - pretty sure this is a duplicate of U4-3317

Andy Butland 12 Nov 2013, 08:13:01

Yes, looks the same to me from the description and stack trace.

Claus Jensen 14 Apr 2016, 08:47:51

Cleaning up a bit and closing this one. I'm able to work with members in the backoffice without issues and this is from a while ago. If you're still having issues, please feel free to reopen :)

Priority: Normal

Type: Bug

State: Closed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.0.0

Due in version:


Story Points: