Skip to Content Skip to Menu

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

CBAutoAction doesn't always fire

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 7 months ago #279867 by ricco1
CBAutoAction doesn't always fire was created by ricco1
Hi,

We have a CBAutoAction which is set to fire every time a payment is received, like so:

Type: Query
User: Automatic
Access: Everybody
Trigger: onCPayAfterPaymentStatusUpdateEvent
Condition: [var6] Is REGEX /subscr_payment|web_accept/
Action: our query

It works OK for all other payments we receive(single and recurring) but for one specific recurring payment we receive every month the action is not executed.

Could you give us any suggestions where to look for an answer please?

Thank you.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 7 months ago - 8 years 7 months ago #279885 by krileon
Replied by krileon on topic CBAutoAction doesn't always fire
Check the IPN for the recurring payment and see what the "Type" is under "Payment Method and Transaction details" as that's what var6 will be set to and conditioned against.

Also ensure you've latest CB 2.x and CBSubs 4.x nightlies installed. CBSubs had some issues with plugins not loading resulting in trigger not working as the plugins acting on the trigger weren't loaded.


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.
Last edit: 8 years 7 months ago by krileon.

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

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 7 months ago #279920 by ricco1
Replied by ricco1 on topic CBAutoAction doesn't always fire
Hi Kyle,

Thank you for answering.

CB and CBSubs are the latest.

Everything is as it should be:

Payment method: instant

Transaction type: subscr_payment

I don't know what to do.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 7 months ago #279956 by krileon
Replied by krileon on topic CBAutoAction doesn't always fire
Ok, looks like this maybe suffering from the same loading issues. Please apply the below quickfix and see if it fixes it for you.

IN: components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/controllers/cbpaidPayHandler.php
ON: Line 873
FROM:
Code:
$_PLUGINS->loadPluginGroup( 'user', 'cbsubs.' );
TO:
Code:
$_PLUGINS->loadPluginGroup( '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.

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 7 months ago #279969 by ricco1
Replied by ricco1 on topic CBAutoAction doesn't always fire
OK, I've applied the quickfix you've suggested, but unfortunately I can't test it. The problem is only for one specific payment we receive each month and the next payment is due on 26.04.2016. We will wait until then and will get back here to report if it's fixed.

Thank you very much.
The following user(s) said Thank You: krileon

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

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 6 months ago #280962 by ricco1
Replied by ricco1 on topic CBAutoAction doesn't always fire
CB and CBSubs are the latest again, the fix above is applied, let's see what will happen tomorrow.

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

Moderators: beatnantkrileon
Powered by Kunena Forum