Skip to Content Skip to Menu

[SOLVED] Some transactions completed and some not

8 years 3 months ago - 8 years 3 months ago #284319 by richbrundage
Using PayPal gateway, getting notifications from PayPal of completed transactions but sometimes CB Subs creates the subscription and sometimes not, for transactions within a day of each other. Found events in the history log related to the uncreated subscriptions but only error is

NOTICE: Constant _swcorners_defined already defined in ...

which also occurs when subscriptions are created. Don't know where to get started tracking this down as I don't see any difference between the subscriptions that are created and the ones that aren't.

CB Subs 4.1.0.
Community Builder 2.0.14.
Joomla 3.6.0.
PHP Version 5.6.20

Richard Brundage
Last edit: 8 years 3 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: 48548
  • Thanks: 8290
  • Karma: 1445
8 years 3 months ago #284361 by krileon
Replied by krileon on topic Some transactions completed and some not
We have no define called "_swcorners_defined" anywhere in CB or CBSubs. Appears to be from something you've installed or manually defined somewhere. Review the path after "in ..." to see where it's being redefined.


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: richbrundage

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

8 years 3 months ago #284363 by richbrundage
Replied by richbrundage on topic Some transactions completed and some not
swcorners is defined by a menu component swmenupro, but as I said that error is generated whether the subscription is created or not, I don't think it is the issue. I was hoping you could point me towards some other diagnostic, for example there are events in the history log about saving the payment basket but there is no corresponding entry in the payment basket table.

Richard Brundage

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
8 years 3 months ago #284397 by krileon
Replied by krileon on topic Some transactions completed and some not
It has nothing to do with CBSubs. Your issue is with that extension trying to define a constant that is already defined, which is impossible in PHP. Contact the developer of your extension or review the notice closely as it gives you where it's trying to define it again. It's also just a notice so it's not going to break CBSubs.


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 3 months ago #284400 by richbrundage
Replied by richbrundage on topic Some transactions completed and some not
Forget about swcorners I'm sorry I mentioned it!

Look at the subject line - the problem is that some transactions result in subscriptions being created and some do not! I have to go in and create them manually.

I am trying to troubleshoot this but cannot find anything different between the transactions that result in a subscription created and those that don't. I see events in the history log for the transactions that do not result in a subscription being created, such as

2016-07-30 15:40:46 Change log Store payment basket Payment baskets 64 update ...

but there is no item in the payment basket table. The first item in the history log for a transaction that fails to create a subscription is

2016-07-30 15:37:13 Change log User subscription record created with status: R User subscriptions 787 insert

but when I look at the table there is no record with ID 787, it skips from 785 to 788.

Richard Brundage

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
8 years 3 months ago #284466 by krileon
Replied by krileon on topic Some transactions completed and some not
Within CBSubs > Notifications do you see IPNs for those purchases? If you only see PDT then you don't have IPNs configured and if a user closes the window or browses away without returning to CBSubs it can't record their payment as PDT are return notifications.


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