Skip to Content Skip to Menu

[SOLVED] Problem with 'auto action' user trigger

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
8 years 8 months ago - 8 years 8 months ago #289014 by fribse2011
I have a crontab on my cpanel hosting set up to run daily, it activates this URL:
/usr/bin/wget -O - -q -t 1 " www.dkdb.dk/index.php?option=com_comprofiler&view=pluginclass&plugin=cbautoactions&action=users&token=xyz&Itemid=2178&format=raw "

I have these conditions set:
[cb_type] is REGEX /(Familie|Støtte|Junior|Senior)/
[cb_betalt] Does not contain [cb:parse function="math"][cb:date format="Y" /] + 1[/cb:parse]
[cb_rykker] Not equal to 1
[cb:parse function="time"][cb:date format="Y-m-d" /][/cb:parse] Equal to [cb:parse function="time"][cb:date format="Y-11-30" /][/cb:parse]

The idea is that if the type contains one of the above member types it is started.
If the 'betalt' field does not contain 'next year'
The the 'rykker' is not ticked
and finally
it's only run on the last day of november.

But for some reason it wasn't run?
If I remove the 'date constraint' and run it manually it works as it should.

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.
Last edit: 8 years 8 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: 49447
  • Thanks: 8467
  • Karma: 1465
8 years 8 months ago #289044 by krileon
Replied by krileon on topic Problem with 'auto action' user trigger
Your last condition isn't valid. Y-11-30 is not a valid PHP Datetime format usage. You need to use the below instead.

[cb:date format="Y" /]-11-30

That should output the current year with November 30th. Note you can debug your conditions by enabling debug under the Parameters tab of your action then ensure debug mode and maximum error reporting are enabled in Joomla global configuration; it'll then output what conditions failed and what values it tried to compare.


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.
The following user(s) said Thank You: fribse2011

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

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
8 years 8 months ago #289075 by fribse2011
Replied by fribse2011 on topic Problem with 'auto action' user trigger
Oh Darned, thankyou for spotting it, I've made a LOT of these date triggers, and this is the only one that didn't work, and also the only one I wrote the date wrong :-)

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.
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