Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

CB auto action: Problems with change of ACL

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
7 years 11 months ago - 7 years 11 months ago #290807 by timstohr
Hi Kyle,
I have a quite big problem with the change of ACL using CB subs and with CB Auto Action. Neither one works anymore.

I need to move the user upon subscription to the ACL advertisers and it first didnt work using CB subs and then it stopped working via CB Auto action as well... All of my autoactions on onCPayUserStateChange have stopped working!

Last edit: 7 years 11 months ago by timstohr.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48711
  • Thanks: 8320
  • Karma: 1447
7 years 11 months ago #290834 by krileon
Replied by krileon on topic CB auto action: Problems with change of ACL
Please ensure CB, CBSubs, and CB Auto Actions are all up to date. Some changes were made to the usergroup action where it wouldn't pull usergroups from the user object and instead was replaced with API call, but that also wasn't reliable so now it pulls from user object with fallback to API call in latest build.

All of my autoactions on onCPayUserStateChange have stopped working!

Are all of them usergroup actions? Is your plan a free lifetime plan? If so ensure free lifetime plans are configured to create subscriptions in CBSubs > Settings > Global. Do not use CBSubs to set usergroups at the same time as CB Auto Actions. They will overlap one another. Use either CB Auto Actions or CBSubs to control usergroup assignment.


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.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
7 years 11 months ago - 7 years 11 months ago #290881 by timstohr
Replied by timstohr on topic CB auto action: Problems with change of ACL
Hi Kyle,
I have updated to the latest nightly auto action and it did not solve much. The problem is CB Auto action. Here are the reason why.

1) When I switch off all onCUserPay Auto-actions and leave CB Subs to do its work, the users are switched user groups as it should do.
2) When I switch on all Auto-actions and take out all CB subs usergroup promotions, it does not work anymore.
3) My Queries that are supposed to be firing on CPayUserState are not firing or at least not making changes in the db as they used to be doing.
4) When I switch on CB Subs user groups promotion, and switch on the Auto Action that takes the user out of "REGISTERED" and "REGISTERED WITHOUT ADVERTISERS" the users do get promoted to their new usergroup but remain in the two groups that I have set the auto action to take them out of.

Are all of them usergroup actions?


Nope they are not.

EDIT: It gets worse. All "onCPayUserState" triggers make the changing of user groups by CB Subs completely fail...
Last edit: 7 years 11 months ago by timstohr.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48711
  • Thanks: 8320
  • Karma: 1447
7 years 11 months ago #290891 by krileon
Replied by krileon on topic CB auto action: Problems with change of ACL
Do not let CBSubs AND CB Auto Actions control usergroups at the same time. One of them will save overriding the other. You most likely will have to enable Reload User under Parameters of your auto action if you want to use both then ensure CB Auto Actions is ordered after CBSubs within CB > Plugin Management or simply use one of them and not both.

Enable debug mode and maximum error reporting in Joomla global configuration. Next under Parameters of your auto action enable Debug. Now test your usage and it'll output var_dumps if a condition fails or if there was an error in any of the store processes. I don't know what else to tell you. This is working perfectly fine on our demo site below.

demo.cbdemosites.com/


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.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
7 years 11 months ago - 7 years 11 months ago #290894 by timstohr
Replied by timstohr on topic CB auto action: Problems with change of ACL
I would love to only let CB Auto Action control my users... but it does not work. When I switch off CB subs controlling the user group, there is nothing happening at all...

Also, there is a big problem. I need to REMOVE the user from the REGISTERED WITHOUT ADVERTISERS usergroup and CB Subs does not allow this.
Last edit: 7 years 11 months ago by timstohr.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48711
  • Thanks: 8320
  • Karma: 1447
7 years 11 months ago #290898 by krileon
Replied by krileon on topic CB auto action: Problems with change of ACL
I've tested it working fine locally and directly on our demo site. I've no idea what you've configured to result in it not working. You need to enable debugging as instructed to see what is failing. It could be a space in one of the conditions for example causing the comparison to simply fail. If you choose to use both then as explained you need to likely use reload user.


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