Tried to delete member from 7.2 members listview and member "Actions" menu on the member profile, receive the below error in both cases, doesnt matter if member is in groups or not.
Failed to delete item fcb0f25a96374cb381a2976708249d1e
Object reference not set to an instance of an object.
EXCEPTION DETAILS:
System.NullReferenceException: Object reference not set to an instance of an object.
STACKTRACE:
at Umbraco.Core.Persistence.Repositories.MemberRepository.PersistDeletedItem(IMember entity)
at Umbraco.Core.Persistence.Repositories.RepositoryBase 2.PersistDeletedItem(IEntity entity)
at Umbraco.Core.Persistence.UnitOfWork.PetaPocoUnitOfWork.Commit(Action`1 transactionCompleting)
at Umbraco.Core.Persistence.UnitOfWork.PetaPocoUnitOfWork.Commit()
at Umbraco.Core.Services.MemberService.Delete(IMember member)
at Umbraco.Web.Editors.MemberController.DeleteByKey(Guid key)
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>cDisplayClass13.c(Object instance, Object[] methodParameters)
Yup, it is members that are the troublesome aspect.
There is already an issue opened (http://issues.umbraco.org/issue/U4-6113) and it may be that 7.2.2 has already fixed this problem. I am waiting until it is officially released (hopefully soon!) and then I will try updating and seeing if the problem vanishes.
Along with using the controls on the backend as you tried, I also attempted to delete programatically using the MemberService API. No luck there either. I have my hopes pinned on the 7.2.2 update...
Anton, I have done some more digging and at least for me, the problem seems to be related to the upload datatype on my members. Could that be the problem for you too? I started a new thread on this topic https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/61681-Cannot-delete-member-with-Upload-datatype-in-722 with the additional information about the upload field. Hopefully one of the Umbraco Gurus out there will notice and find a fix quick!
Just had the same problem. I couldn't delete members with the upload datatype and no uploaded file. So I could upload a file to the members in question and then delete them.
Cannot delete member 7.2.1
As per issue http://issues.umbraco.org/issue/U4-6113
Please if anyone can help
Tried to delete member from 7.2 members listview and member "Actions" menu on the member profile, receive the below error in both cases, doesnt matter if member is in groups or not.
Failed to delete item fcb0f25a96374cb381a2976708249d1e
Object reference not set to an instance of an object.
EXCEPTION DETAILS:
System.NullReferenceException: Object reference not set to an instance of an object. STACKTRACE:
at Umbraco.Core.Persistence.Repositories.MemberRepository.PersistDeletedItem(IMember entity) at Umbraco.Core.Persistence.Repositories.RepositoryBase 2.PersistDeletedItem(IEntity entity)
at Umbraco.Core.Persistence.UnitOfWork.PetaPocoUnitOfWork.Commit(Action`1 transactionCompleting) at Umbraco.Core.Persistence.UnitOfWork.PetaPocoUnitOfWork.Commit() at Umbraco.Core.Services.MemberService.Delete(IMember member) at Umbraco.Web.Editors.MemberController.DeleteByKey(Guid key) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>cDisplayClass13.c(Object instance, Object[] methodParameters)
Anyone ?
Same question... anyone?
If it's a bug you can report it here: http://issues.umbraco.org/dashboard#newissue=yes
Jeroen
When you say delete a member do you mean, in the back office - Users?
If so have you tried to disable the umbraco account save it, then delete the user.
Stab in the dark.... give it a go,
might get lucky.
When looking at the stack trace I think they really try to delete a member and not a backoffice user.
Jeroen
Yup, it is members that are the troublesome aspect.
There is already an issue opened (http://issues.umbraco.org/issue/U4-6113) and it may be that 7.2.2 has already fixed this problem. I am waiting until it is officially released (hopefully soon!) and then I will try updating and seeing if the problem vanishes.
Cheers,
Josh
Hi Josh
I'm connecting to a SQLCE db and you ?
Regards
Hey Anton,
Plain old SQL Server.
Along with using the controls on the backend as you tried, I also attempted to delete programatically using the MemberService API. No luck there either. I have my hopes pinned on the 7.2.2 update...
Cheers!
Upgraded to 7.2.2 but still no luck. Anyone got any ideas?
Anton, I have done some more digging and at least for me, the problem seems to be related to the upload datatype on my members. Could that be the problem for you too? I started a new thread on this topic https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/61681-Cannot-delete-member-with-Upload-datatype-in-722 with the additional information about the upload field. Hopefully one of the Umbraco Gurus out there will notice and find a fix quick!
Hi Josh
Spot on. I removed the upload datatypes and I managed to delete.
At least we now know what is causing the problem
Hi,
Just had the same problem. I couldn't delete members with the upload datatype and no uploaded file. So I could upload a file to the members in question and then delete them.
Cheers
Bjørn Fridal
is working on a reply...