Skip to Content Skip to Menu

CB Auto actions type connection

  • dimcel
  • dimcel
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
10 years 3 weeks ago #250737 by dimcel
CB Auto actions type connection was created by dimcel
Hi ,
I'm using the CB Auto actions to automate connection between the new user and the admin.
To directly have them connected. But I have this error message.

Duplicate entry '1114-1114' for key 'PRIMARY' SQL=INSERT INTO pla_comprofiler_members (referenceid, memberid, accepted, pending, membersince, reason) VALUES (1114, 1114, 0, 0, CURDATE(), '832')

The admin is 932 and the user is the 1114 , it seems that the sql request is not correctly build by the plugin.

Could you help ?

Thanks

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48480
  • Thanks: 8283
  • Karma: 1443
10 years 3 weeks ago #250746 by krileon
Replied by krileon on topic CB Auto actions type connection
You're trying to connect a user to themselves, which you can't do. Please provide a screenshot of your auto action configuration.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • dimcel
  • dimcel
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
10 years 3 weeks ago #250750 by dimcel
Replied by dimcel on topic CB Auto actions type connection
In fact is the system that is trying to do that.

The problem is that user 832 is placed in the reason field.

You will see here the print screen .
This happen after first login with user 832

Regards
Attachments:

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48480
  • Thanks: 8283
  • Karma: 1443
10 years 3 weeks ago #250785 by krileon
Replied by krileon on topic CB Auto actions type connection
Ok, I see the issue. The below quickfix should solve your issue. We'll prepare a new nightly with the fix.

IN: components/com_comprofiler/plugin/user/plug_cbautoactions/models/connection.php
ON: Line 61
FROM:
Code:
$connections->addConnection( $userId, $user->get( 'id' ), $message, $notify );
TO:
Code:
$connections->addConnection( $user->get( 'id' ), $message, $notify );
ON: Line 71
FROM:
Code:
$connections->addConnection( $user->get( 'id' ), $userId, $message, $notify );
TO:
Code:
$connections->addConnection( $userId, $message, $notify );


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum