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] Auto Action not firing from Frontend

8 years 2 months ago - 8 years 2 months ago #284255 by danielwilsonch
[SOLVED] Auto Action not firing from Frontend was created by danielwilsonch
Hi,

I'm having some trouble with an auto action not firing from the frontend. The auto action I have checks to see if a field is empty or not ( on profile save) and sets another field to 0/1 respectively, and have checked that this does work from the backend. I have attached and image of my settings, I figured that it was a permissions issue but I have tried every user group the user is part of together and individually and still no luck.

Any help with this would be great, thanks.
Attachments:
Last edit: 8 years 2 months ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 2 months ago #284258 by krileon
Replied by krileon on topic Auto Action not firing from Frontend
For frontend and backend usage you should only need to use the following triggers.

onAfterUserUpdate
onAfterUpdateUser

Most likely it's failing at the condition. Please provide what conditions you're using. Also note you can debug an action by enabling debug mode and maximum error reporting in Joomla global configuration. Once done enable debug under the parameters tab of your 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.

8 years 2 months ago #284282 by danielwilsonch
Replied by danielwilsonch on topic Auto Action not firing from Frontend
Hi,

Thanks for the reply, here are the images for the rest of my settings. Perhaps I have just made a mistake with my condition, I do also have an opposite auto action to this where if the field is Empty it sets the field to 0, same settings just a reversed condition. I enabled debugging and there was nothing that appeared to display any issues.
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 2 months ago #284300 by krileon
Replied by krileon on topic Auto Action not firing from Frontend
You need to enable debug mode and maximum error reporting in Joomla as well. This will allow the profile save redirect to be interrupted so debug output can be displayed.

Most likely the condition is failing. Try removing it and see if it works ok. What type of field is cb_question05 as it's sometimes possible for a field to just not be empty.


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.

8 years 2 months ago #284331 by danielwilsonch
Replied by danielwilsonch on topic Auto Action not firing from Frontend
Hey,

Just for anyone with a similar issue I have managed to find the very simple solution to this, due to my Empty/Not Empty criteria at least one of the conditions should fail yet the error was not displaying on the frontend. I have a redirect on save and it turns out this was simply an ordering issue where the auto actions were not firing due to being ordered lower.

It's easy to skip the simple things sometimes I guess!
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum