Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

BUG: Deleting hidden posts changes the "last write IP"

+2 votes
287 views
asked May 14, 2013 in Q2A Core by Scott

I found that I was still getting the issue described here - http://www.question2answer.org/qa/16886/strange-issue-with-ip-addresses

Some users' last write IP shows my IP address. The approve/reject thing was fixed but it was still occurring. I've just figured out that it occurs when I run the "Delete hidden posts" in Admin > Stats.

It just deleted about 100 comments, 50 answers and 50 questions and now there are 8 users with my IP as the "writeip" and with the "written" field as the time I deleted the posts. That can't be all the users who had deleted posts. Maybe it's just users who recently had posts rejected?

Q2A version: 1.5.4
commented May 25, 2013 by gidgreen
Thanks - will check into this for Q2A 1.6.

1 Answer

+1 vote
answered May 30, 2013 by gidgreen
selected Jul 16, 2013 by Scott
 
Best answer

This was a straightforward bug in function qa_answer_delete(...) in qa-app-post-update.php where the $userid variable was overriden by a loop. It will be fixed in Q2A 1.6.

...