> Forums > Active Forums > General Discussion > Deleting Users - Object reference not set to an instance of an object
Last Post 28 Feb 2012 08:25 AM by Adam Jones. 4 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Adam Jones
Customers
Adam Jones
Post Count:406

--
18 Feb 2012 10:56 AM
    When you have a member that decides to have there account deleted, I have seen that all of their posts end up with :

    Object reference not set to an instance of an object.



    I just wonder if there is a way that AF could handle this a little better in the future, and to possibly have something that replaces this text with "This member is no longer apart of this website."

    I dont want to remove the users posts.  Sure there are scripts I could run to remove all of that USERID's posts, but thats not the point.

    I am just trying to display the profile box in a more professional manner.
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1644

    --
    20 Feb 2012 01:45 PM
    What do you have in the PostInfo template?
    Adam Jones
    Customers
    Adam Jones
    Post Count:406

    --
    23 Feb 2012 11:03 AM
    <p align="center">[AF:PROFILE:DISPLAYNAME]<br>
    [AF:PROFILE:AVATAR]</p>
    &amp;nbsp<b>Send PM:</b>&amp;nbsp&amp;nbsp[AF:PROFILE:PMLINK]<br>
    &amp;nbsp<b>Location:</b><br>
    &amp;nbsp[DNN:PROFILE:City]<br>
    &amp;nbsp<b>JB Bucks:</b>[AF:PROFILE:TOTALPOINTS]
    <br>
    &amp;nbsp<b>Member Since:</b><br>
    &amp;nbsp[MEMBERSINCE] 
    Adam Jones
    Customers
    Adam Jones
    Post Count:406

    --
    25 Feb 2012 04:10 PM
    Is it because I am referencing profile properties that its showing up this way?
    Adam Jones
    Customers
    Adam Jones
    Post Count:406

    --
    28 Feb 2012 08:25 AM
    I have tried just testing and removing a few things from the profile data, and its still showing the user: Object reference not set to an instance of an object.

    This happens anytime I delete a user from the site after they have made a post.

    I set up a test user, and tried it, and it happened again with that user.
    You are not authorized to post a reply.
    > Forums > Active Forums > General Discussion > Deleting Users - Object reference not set to an instance of an object
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy