Skip to Content Skip to Menu

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

[#3978] Call to a member function getPlanVarName() on a non-object in cbsubs.promotion.php on line 881

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225286 by krileon
It appears to be due to the "Override plans display:" parameter on the Display tab of your Promotion. Appears to be something wrong with your plans perhaps. Your lifetime plan seams to work fine though. Please create a new plan matching the settings of your other plans (don't use Copy) and see if the new plan does this too (note you may need to delete your Basket to get the error to go away to test the new plan as it'll load your old basket).


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

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

11 years 6 months ago #225291 by gerrygerry
New plan ("Test Membership") has the same problem :(

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225313 by krileon
Please PM FTP login credentials so may begin debugging CBSubs source as am out of configuration ideas (your configuration seams fine). The alternative is to just not alter the Display of the plan using the promotion and setting "Override plans display:" to no.


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

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

11 years 6 months ago #225363 by gerrygerry

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago - 11 years 6 months ago #225412 by krileon
Ok, this appears to be a bug. I've implemented the below quickfix for you to bandaid the issue. We'll be reviewing CBSubs source further for next release to see how exactly this is happening. Everything appears to be working fine now with the quickfix. Please also confirm is working fine now.

IN: /components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/plugin/cbsubspromotion/cbsubs.promotion.php
ON: Line 1919
FROM:
Code:
$cache_idx = $plan->id . $reason . $occurrence . '-' . $startTime;
TO:
Code:
if ( isset( $plan->plan_id ) ) { $plansMgr =& cbpaidPlansMgr::getInstance(); $plan =& $plansMgr->loadPlan( (int) $plan->plan_id ); } $cache_idx = $plan->id . $reason . $occurrence . '-' . $startTime;

Note you do not need to apply the quickfix as I've already done it for you. The above is for other users experiencing same issue.

#3978


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: 11 years 6 months ago by krileon.
The following user(s) said Thank You: gerrygerry

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

11 years 6 months ago #225429 by gerrygerry
Works for me now! Thank you for your efforts!
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