Skip to Content Skip to Menu

Subscriptions import: "Error 1048: Parent plan cannot be null"

  • krileon
  • krileon
  • ONLINE
  • Posts: 48883
  • Thanks: 8356
  • Karma: 1450
17 hours 49 minutes ago #340487 by krileon
Was able to confirm that if you attempt to import a user into a child plan without first importing into the parent plan it will error. Example as follows.

Errors:
Code:
237,1,A,2020-01-01 01:00:00 238,2,A,2020-01-01 01:00:00

Works:
Code:
237,1,A,2020-01-01 01:00:00 238,1,A,2020-01-01 01:00:00 238,2,A,2020-01-01 01:00:00

Plan 1 is the parent while Plan 2 is the child. Does doing this resolve your issue or are all your plans parent plans?


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

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

  • e6003
  • e6003
  • ONLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
17 hours 39 minutes ago #340488 by e6003
Thanks, but all my plans are parent plans (i.e. with parent plan set to "Top" in the Edit Plan page).

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48883
  • Thanks: 8356
  • Karma: 1450
17 hours ago #340489 by krileon
Ok, looks like a possible table structure issue. For some reason those tables aren't marked as being nullable, but internally they're used as if they can be null. Am working on a fix to allow null values which should solve this.

forge.joomlapolis.com/issues/9625


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.

  • beat
  • beat
  • ONLINE
  • Posts: 2177
  • Thanks: 463
  • Karma: 352
13 hours 35 minutes ago - 13 hours 34 minutes ago #340492 by beat
Kyle has already made the fix, which is now released as nightly release, available for update. Try it out, and let us know if it fixes your issue!

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
Last edit: 13 hours 34 minutes ago by beat.

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

Moderators: beatnantkrileon
Powered by Kunena Forum