Download & Extend

make anonymous user activity work

Project:Activity
Version:6.x-1.x-dev
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

When i'm trying to post comment as anonymous user (not logged in) it posts, but above the comment pops up error table with this text:
"user warning: Duplicate entry '57-0' for key 'PRIMARY' query: INSERT INTO activity_targets (aid, uid, amid) VALUES (57, 0, 114) in www.mysite.com\includes\common.inc on line 3422."

I've got Activity module v 2.x dev installed.

Comments

#1

Version:6.x-1.x-dev» 6.x-2.x-dev

Oh, forgot most important part. This error popsup when ajax comment is enabled. So i think i need to repost this issue in ajax comments module.

#2

Title:Error when anonymous user posting comment» make anonymous user activity work
Category:bug report» feature request

ya Anon posting in general is going to cause issues. This is because the public message has uid = 0; Perhaps we need to examine anon activity and use -1 as the public message?

Any activity with an anon user will not work

#3

Status:active» fixed

Ok so I added this stuff in. It won't always behave nicely though. For instance, comments you need to enforce users to leave a name in order for the comment name token to work.

http://drupal.org/cvs?commit=225294

#4

Thanks a lot!

#5

Btw, check you path.
arg(1) should take node id from url, but only if your path's correct (http://api.drupal.org/api/function/arg/6).

?? Thats not part of that commit.

#6

That's why you should check all post which you make via cell phone :))

#7

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#8

Version:6.x-2.x-dev» 6.x-1.x-dev
Category:feature request» bug report
Status:closed (fixed)» patch (to be ported)

marked #522098: Every time anonymous user posts a comment there is error message. Is it safe to use? as a duplicate of this. re-opening for the 1.x branch since it looks like it's still a problem there.

#9

Status:patch (to be ported)» closed (won't fix)

closing. 1.x no longer supported.