Skip to Content Skip to Menu

Multiple CB Auto-Actions on same Trigger do not process

  • 3by400Inc
  • 3by400Inc
  • OFFLINE
  • Posts: 119
  • Thanks: 11
  • Karma: 0
10 years 7 months ago #242214 by 3by400Inc
PHP 5.4.25
Joomla 2.5.17
CB 1.9.1
CB Auto-Actions 5.1.3

We have multiple auto-actions assigned to the same trigger. It seems when more than one auto-action is enabled to run on the same trigger only one auto-action will process. We must re-run the 'trigger' for the second and third auto-actions to process. Sample actions attached.
Attachments:

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

  • 3by400Inc
  • 3by400Inc
  • OFFLINE
  • Posts: 119
  • Thanks: 11
  • Karma: 0
10 years 7 months ago #242215 by 3by400Inc
Here are two additional auto-actions that run at registration. We're having the same issue on the 'registration' trigger as well.
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 7 months ago #242232 by krileon
Actions need to be ordered correctly for them to work well together. For example your profile update actions 1 is a Usergroup action and another is a Query action. Usergroup actions have to do a user store and update the user session for the change to take affect. If you do a database query to _users or _comprofiler then do a Usergroup action your changes from the query action may not take affect because the user store from the Usergroup action is using data from the trigger, which does not have your database changes. Be sure to order the usergroup action first then do the query action.


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.

  • 3by400Inc
  • 3by400Inc
  • OFFLINE
  • Posts: 119
  • Thanks: 11
  • Karma: 0
10 years 7 months ago #242260 by 3by400Inc
Thank you! That resolved the Usergroup and Query action combination. What would the case be when doing two field actions on the same trigger? Is there a particular order that is needed or other detail?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 7 months ago #242298 by krileon
A field action is a database query. It doesn't do a direct user store so you don't need to worry about user store issues with it. Usergroup actions however must do a user store (there's no other way, sorry) so it should always be executed first.


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.

  • 3by400Inc
  • 3by400Inc
  • OFFLINE
  • Posts: 119
  • Thanks: 11
  • Karma: 0
10 years 7 months ago #242308 by 3by400Inc
Yes, I understand that Usergroup actions must be executed first, but I'm asking about two field actions. I have two field actions that are suppose to execute at registration, different trigger from the Usergroup action, but both field actions are not executing.

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

Moderators: beatnantkrileon
Powered by Kunena Forum