Skip to Content Skip to Menu

CB Paid Subscriptions = update error

  • fdinkler
  • fdinkler
  • ONLINE
  • Posts: 231
  • Thanks: 28
  • Karma: 0
13 hours 28 minutes ago - 13 hours 26 minutes ago #340248 by fdinkler
Replied by fdinkler on topic CB Paid Subscriptions = update error
Clicked the first link to repair the database - got the same error...
An error has occurred.

1138 Invalid use of NULL value


Recommendations on best way to recover?...
Export, reinstall, import?
Last edit: 13 hours 26 minutes ago by fdinkler. Reason: addl info

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48783
  • Thanks: 8329
  • Karma: 1449
13 hours 19 minutes ago #340249 by krileon
Replied by krileon on topic CB Paid Subscriptions = update error
Strange your entire table structure seams to be completely out of date somehow. I think the best solution is a clean install then compare the structures and update your table structure manually. I've no clue what could've done that to your database. The only issues we're had reported in the past is some problems with Akeeba Backup restores altering structure sometimes, but aside from that I'm not sure what else would mess with the tables.


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.

  • fdinkler
  • fdinkler
  • ONLINE
  • Posts: 231
  • Thanks: 28
  • Karma: 0
12 hours 47 minutes ago #340251 by fdinkler
Replied by fdinkler on topic CB Paid Subscriptions = update error
ok - I've got nothing better to do today...
I may go into my backups and see when the structure changed...
Thanks for the help
Fred

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

  • fdinkler
  • fdinkler
  • ONLINE
  • Posts: 231
  • Thanks: 28
  • Karma: 0
12 hours 41 minutes ago #340252 by fdinkler
Replied by fdinkler on topic CB Paid Subscriptions = update error
I'm not seeing errors from the Plugin Check in the actual DDL...

Example: first red entry in the Check report is
Table # cbsubs_promotions Column name NULL attribute is YES instead of NO

but when I check the database, here's that same column
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',

Am I reading this wrong?
Fred

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48783
  • Thanks: 8329
  • Karma: 1449
12 hours 40 minutes ago - 12 hours 39 minutes ago #340253 by krileon
Replied by krileon on topic CB Paid Subscriptions = update error
Stepped through the changes to the CBSubs database structure and the only changes found were the following.

Aug 02, 2023
payment_date: varchar(255) => varchar(64)
payment_type: varchar(32) => varchar(64)

Feb 01, 2023
auction_buyer_id: removed
auction_closing_date: removed
auction_multi_item: removed
for_auction: removed
option_name1: removed
option_selection1: removed
option_name2: removed
option_selection2: removed

Aug 30, 2022
first_validity: null=true

I just don't see realistically CBSubs being the cause here. Something else must've altered the table structure somehow.

It's unfortunate this happened, but I've no clue what did it. CB can't really fix table structure issues that happened outside of our APIs limitations.


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: 12 hours 39 minutes ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48783
  • Thanks: 8329
  • Karma: 1449
12 hours 37 minutes ago #340254 by krileon
Replied by krileon on topic CB Paid Subscriptions = update error

Example: first red entry in the Check report is
Table # cbsubs_promotions Column name NULL attribute is YES instead of NO

but when I check the database, here's that same column
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',

I wouldn't rely on the tools check. When CB fails to install a plugin its files don't transfer over so CBSubs maybe in a non-functional state right now. I suggest comparing to a clean install of CBSubs and changing the table structure to match the clean install. Then install CBSubs again and you should be good to go.


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