Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] CB auto action redirect not working

11 years 1 month ago - 11 years 1 month ago #234303 by iytworldwide
[SOLVED] CB auto action redirect not working was created by iytworldwide
Hi Kyle,

I have added 5 auto actions. 3 actions are for adding user(3 different types of user) to different groups and 2 action triggers are for redirection.screenshot attached

Trigger related to adding user to group is working where as the other 2 redirect trigger are not working. Triggers are published as well as CB auto action plugin. What could be the reason for redirection trigger not working?


latest auto action version 5.1.3

Type: redirect
Trigger: onAfterLogin
Access: Everybody
user: automatic

url:index.php?option=com_rsform&formId=3

conditional field does not matter as it is not working with or without any condition.

Thanks,
Amit
Attachments:
Last edit: 11 years 1 month ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #234304 by krileon
Replied by krileon on topic CB auto action redirect not working
Your conditional probably isn't matching. Enable debug mode and maximum error reporting in Joomla global configuration. Then enable debugging (last parameter) in your redirect actions. Now retest them with a user you know should match and it'll output if access and conditional checks failed and exactly what it was trying to match against.


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.

11 years 1 month ago #234319 by iytworldwide
Replied by iytworldwide on topic CB auto action redirect not working
Hi Kyle,

I have enabled the debug on joomla and debug on auto action trigger level.
After enabling debug still nothing being shown as part of debug for CB auto actions. I am getting a feel that CB auto action itself is not getting fired up on login. I removed the conditions too to test this but nothing happened. The triggers which are working are on registration and the one which are not working are on after login. I have verified that Joomla login is unpublished and cb login is published and in use.


Warm Regards,
Amit Dangwal
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #234328 by krileon
Replied by krileon on topic CB auto action redirect not working
Ensure CB Auto Actions is published within CB > Plugin Management. Aside from that I don't know what more to advise as it's working fine across 3 test installs. Perhaps you've something else causing a redirect preventing CB Auto Actions from doing one.


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.

11 years 1 month ago #234345 by iytworldwide
Replied by iytworldwide on topic CB auto action redirect not working
Thanks Kyle for your inputs. It is working on my local system too but not on the media temple dedicated server. The plug-in is published only. I further performed some code debugging through netbeans and print_r and I found that some issue in below user login code as that is causing non execution of the after login trigger. The login function further calls multiple files for joomla authentication and it is becoming difficult to debug.

file:..\administrator\components\com_comprofiler\library\cb\cb.authentication.php
Code:
if ( ! $loggedIn ) { $_CB_framework->login( $username, $password, $rememberMe ); $loggedIn = true; } //The below line is not getting executed as $_CB_framework->login() is not coming out // $_PLUGINS->trigger( 'onAfterLogin', array( &$row, $loggedIn ) );

anything after below line is not getting executed
$_CB_framework->login( $username, $password, $rememberMe );

Regards,
Amit

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 1 month ago #234354 by krileon
Replied by krileon on topic CB auto action redirect not working
Then you have something installed that's acting on Joomlas login. That fires Joomla login API which triggers Joomlas login triggers. You likely have something installed acting on that Joomla trigger and redirecting before CB can. Check your Joomla system, user, and authentication plugins for anything that could be doing this.


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