Skip to Content Skip to Menu

CBSubs subscription not automatically activated after successful payment

  • Wortmann
  • Wortmann
  • OFFLINE
  • Posts: 64
  • Thanks: 3
  • Karma: 0
2 days 9 hours ago #343504 by Wortmann
I am experiencing an issue with CBSubs where a paid subscription is not being automatically activated after a successful payment.Environment:
  • Joomla (latest 5.4.3)
  • CBSubs (latest version)
  • PHP 8.2 (HostEurope, only 8.2/8.3 available)
  • Community Builder (latest)
  • AcyMailing installed (including regacymailing system plugin)
Problem description:A user completes a payment (Stripe / PayPal), and from the user’s perspective the payment appears successful. However:
  • The subscription is not properly activated in Community Builder.
  • The user does not consistently receive the expected access/permissions tied to the subscription.
When manually saving the user in the backend, the subscription (plan ID 6) gets assigned correctly and the ACL group is updated, which suggests that CBSubs activation logic itself is working in principle. Debug / Error behavior:With debug enabled, the following issues appear extensively:
  1. PHP 8.2 deprecation warnings (dynamic properties), e.g.:
    • Creation of dynamic property ... is deprecated
    • affecting multiple AcyMailing classes and plugins:
      • plgSystemRegacymailing
      • subscriberClass, acyuserHelper, filterClass, etc.
      • various AcyMailing plugins (tagsubscription, tagcontent, calltoaction, stats, etc.)
  2. Additional warning:
    • explode(): Passing null to parameter #2 ($string) of type string is deprecated
    • in plugins/system/regacymailing/regacymailing.php
  3. These messages appear during the CBSubs order and subscription processing flow, including:
    • cbpaidControllerOrder::createSubscriptionsAndPayment
    • cbpaidUsersubscriptionRecord::activate
    • user save events (onBeforeStoreUser, onAfterStoreUser, etc.)
Observations:
  • CBSubs does attempt to activate the subscription (seen in stack traces).
  • The user and ACL group are correctly updated when saving manually in the backend.
  • The issue seems to occur during or immediately after the payment completion workflow.
  • The AcyMailing regacymailing plugin is heavily involved in the user save process and produces multiple PHP 8.2 warnings.
Questions:
  1. Could the subscription activation failure be related to interruptions in the payment callback / IPN / webhook handling?
  2. Is CBSubs sensitive to PHP 8.2 deprecation warnings in third-party plugins during the activation process?
  3. Are there known compatibility issues between CBSubs and AcyMailing (especially regacymailing) under PHP 8.2?
  4. Is there a recommended way to isolate or bypass third-party plugin interference during subscription activation?
Temporary workaround:
  • Manually saving the user in the backend correctly assigns the subscription and ACL group.
  • Disabling debug output hides the messages but does not address the root cause.
Any guidance on how to reliably ensure automatic subscription activation after payment would be greatly appreciated.Best regardsJens.
(Written with ChatGPT - sorry...)

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50243
  • Thanks: 8598
  • Karma: 1470
1 day 16 hours ago #343507 by krileon
Are there any errors in the CBSubs > History Log for their basket?

When this happens it's usually 1 of 2 things. Webhooks aren't configured properly and aren't being received by CBSubs or something is interrupting the payment processing behavior (frequently this is a 3rd party plugin and yes AcyMailing has caused something like this in the past).

Webhooks typically aren't a problem unless the payment goes into a pending state though since Stripe will report back credit card success generally immediately. Are payments going into a pending state? You'd be notified of this on the payment complete page.

Manually saving the user in the backend correctly assigns the subscription and ACL group.

What do you mean by this? You just edit and save them without changing anything in CB > User Management?

Disabling debug output hides the messages but does not address the root cause.

If AcyMailing is causing your issue then I suggest completely turning off AcyMailing and seeing if your issue resolves.


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