Auto Actions - has something changed? Not firing any more

7 years 2 months ago - 7 years 2 months ago #290452 by krileon
There were several releases since then. Please continue to upgrade until it stops working. When it does please turn on Reload User and see if that solves it. This will give me an idea of what's going on. It used to just use the user objects gids array, but that was unreliable and now uses the API call to grab their usergroups, but I guess that may not be working reliably.


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 to join the conversation.

7 years 2 months ago #290455 by poml
Ok, so the
last working version was 22. Dec 2017
the first NOT working version is 30. Dec 2017.

Ok, I can try to turn on the reload user, but do I have to do this for all those many actions???

Please Log in to join the conversation.

7 years 2 months ago #290457 by krileon

Ok, I can try to turn on the reload user, but do I have to do this for all those many actions???

Just try it for one that isn't working that normally would be.


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 to join the conversation.

7 years 2 months ago #290463 by poml
I turned Reload User on for all Auto Actions that reference to my plan with ID 1.

But the behaviour did not change. It still does not work.

Please Log in to join the conversation.

7 years 2 months ago #290466 by krileon
Ok, install the latest release then make the following change. There's probably a caching issue.

IN: components/com_comprofiler/plugin/user/plug_cbautoactions/models/usergroup.php
ON: Line 38
FROM:
		$myGroups									=	Application::User( $user->get( 'id', 0, GetterInterface::INT ) )->getAuthorisedGroups( false );
TO:
		$myUser										=	Application::User( $user->get( 'id', 0, GetterInterface::INT ) );

		$myUser->resetCache();

		$myGroups									=	$myUser->getAuthorisedGroups( false );

Once done retest and see if that fixes it.


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 to join the conversation.

7 years 2 months ago #290470 by poml
No, that does not fix it.
I have left the Reload User on. Would I need to switch it off again?

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.228 seconds

Facebook Twitter LinkedIn