Skip to Content Skip to Menu

CB Paid Subscriptions = update error

  • fdinkler
  • fdinkler
  • ONLINE
  • Posts: 232
  • Thanks: 28
  • Karma: 0
2 weeks 4 days ago - 2 weeks 4 days ago #340218 by fdinkler
Replied by fdinkler on topic CB Paid Subscriptions = update error
Kyle - 
Matching up the DDL for cbsubs_subscriptions, there's only one delta (ignoring collation, which is local db dependent)
In my table:  
next_event_params         varchar(255)     utf8mb4_0900_ai_ci  Yes   NULL
In your table, there's no DEFAULT=NULL for that column
[img
Link to screenshot


Fred

 
Last edit: 2 weeks 4 days ago by fdinkler. Reason: formatting

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48855
  • Thanks: 8347
  • Karma: 1449
2 weeks 4 days ago - 2 weeks 4 days ago #340219 by krileon
Replied by krileon on topic CB Paid Subscriptions = update error
next_event_params isn't NULL in the initial structure in CBSubs XML file so that shouldn't be null. That's probably what's causing your issue. Set it to not null with empty string default. That should fix your issue. Additionally set all the string columns collations to utf8mb4_unicode_ci or whatever the collation is for your Joomla 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.
Last edit: 2 weeks 4 days ago by krileon.

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

  • fdinkler
  • fdinkler
  • ONLINE
  • Posts: 232
  • Thanks: 28
  • Karma: 0
2 weeks 4 days ago - 2 weeks 4 days ago #340220 by fdinkler
Replied by fdinkler on topic CB Paid Subscriptions = update error
OK, I'll make the change
Last edit: 2 weeks 4 days ago by fdinkler. Reason: edits...

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

  • fdinkler
  • fdinkler
  • ONLINE
  • Posts: 232
  • Thanks: 28
  • Karma: 0
2 weeks 3 days ago #340241 by fdinkler
Replied by fdinkler on topic CB Paid Subscriptions = update error
I made the DDL change to #__cbsubs_subscriptions.next_event_params, and then changed all text fields to reflect the default database character set and collation.
Reinstalled CBSubs using the download package - same error:

Looks like cbsubs_history this time

I'll install a copy on a fresh J4 install and compare the tables... 

System Information
Joomla: 4.4.10
Community Builder: 2.10.0
PHP: 8.3.16
Database: mysql 8.0.41

Package
File: 004-002_cbplug_CBSubs_MAIN-4.8.0+build.2025.02.03.17.52.54.76d74952e.zip
Log:
Code:
Invalid use of NULL value #0 /home/fdinkler/public_html/libraries/vendor/joomla/database/src/DatabaseDriver.php(675): Joomla\Database\Mysqli\MysqliStatement->execute() #1 /home/fdinkler/public_html/libraries/CBLib/CBLib/Database/Driver/CmsDatabaseDriver.php(326): Joomla\Database\DatabaseDriver->execute() #2 /home/fdinkler/public_html/libraries/CBLib/CBLib/Database/DatabaseUpgrade.php(1980): CBLib\Database\Driver\CmsDatabaseDriver->query() #3 /home/fdinkler/public_html/libraries/CBLib/CBLib/Database/DatabaseUpgrade.php(1246): CBLib\Database\DatabaseUpgrade->doQuery('ALTER TABLE `#_...') #4 /home/fdinkler/public_html/libraries/CBLib/CBLib/Database/DatabaseUpgrade.php(324): CBLib\Database\DatabaseUpgrade->changeColumn('#__cbsubs_histo...', Array, Object(CBLib\Xml\SimpleXMLElement), 'cbpaidsubscript...', Object(CBLib\Xml\SimpleXMLElement)) #5 /home/fdinkler/public_html/libraries/CBLib/CBLib/Database/DatabaseUpgrade.php(254): CBLib\Database\DatabaseUpgrade->checkXmlTableDescription(Object(CBLib\Xml\SimpleXMLElement), 'cbpaidsubscript...', true, true, NULL, NULL) #6 /home/fdinkler/public_html/libraries/CBLib/CB/Legacy/cbInstallerPlugin.php(376): CBLib\Database\DatabaseUpgrade->checkXmlDatabaseDescription(Object(CBLib\Xml\SimpleXMLElement), 'cbpaidsubscript...', true) #7 /home/fdinkler/public_html/components/com_comprofiler/plugin/user/plug_cbpackageinstaller/admin.packageinstaller.php(404): cbInstallerPlugin->install() #8 /home/fdinkler/public_html/components/com_comprofiler/plugin/user/plug_cbpackageinstaller/admin.packageinstaller.php(158): packageinstallerInstall->installCBPlugin('004-002_cbplug_...', '/home/fdinkler/...') #9 /home/fdinkler/public_html/components/com_comprofiler/plugin/user/plug_cbpackageinstaller/admin.packageinstaller.php(90): packageinstallerInstall->prepare() #10 /home/fdinkler/public_html/components/com_comprofiler/plugin/user/plug_cbpackageinstaller/admin.packageinstaller.php(36): packageinstallerInstall->install() #11 /home/fdinkler/public_html/administrator/components/com_comprofiler/controller/controller.plugin.php(279): cbpackageinstallerAdmin->editPluginView(Object(CB\Database\Table\PluginTable), 'com_comprofiler', 'editPlugin', 265, 'installpkg', Object(CBLib\Xml\SimpleXMLElement), 'editPlugin', Object(CBLib\Registry\Registry)) #12 /home/fdinkler/public_html/administrator/components/com_comprofiler/controller/controller.plugin.php(208): CBController_plugin->editPluginView(Object(CB\Database\Table\PluginTable), 'com_comprofiler', 'editPlugin', 265, 'installpkg', Object(CBLib\Xml\SimpleXMLElement), 'editPlugin', Object(CBLib\Registry\Registry)) #13 /home/fdinkler/public_html/administrator/components/com_comprofiler/admin.comprofiler.controller.php(296): CBController_plugin->editPlugin('com_comprofiler', 'editPlugin', 265) #14 /home/fdinkler/public_html/administrator/components/com_comprofiler/comprofiler.php(14): require('/home/fdinkler/...') #15 /home/fdinkler/public_html/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require_once('/home/fdinkler/...') #16 /home/fdinkler/public_html/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}('/home/fdinkler/...') #17 /home/fdinkler/public_html/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() #18 /home/fdinkler/public_html/libraries/src/Application/AdministratorApplication.php(143): Joomla\CMS\Component\ComponentHelper::renderComponent('com_comprofiler') #19 /home/fdinkler/public_html/libraries/src/Application/AdministratorApplication.php(186): Joomla\CMS\Application\AdministratorApplication->dispatch() #20 /home/fdinkler/public_html/libraries/src/Application/CMSApplication.php(293): Joomla\CMS\Application\AdministratorApplication->doExecute() #21 /home/fdinkler/public_html/administrator/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute() #22 /home/fdinkler/public_html/administrator/index.php(32): require_once('/home/fdinkler/...') #23 {main}

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48855
  • Thanks: 8347
  • Karma: 1449
2 weeks 3 days ago - 2 weeks 3 days ago #340243 by krileon
Replied by krileon on topic CB Paid Subscriptions = update error
Looks like same issue with the history table. I've no idea how your database got some garbled. Was there any manual management of the database at any point? Some Akeeba Backup restore maybe as it sometimes alters table structure? Within CB > Tools try going through the database check tools and see if it can fix these for you.

Below is my _cbsubs_history table structure, which matches our XML definition of it.

 

If you get this error again you may want to compare to a fresh CBSubs install on a fresh Joomla + CB as something has messed with your table structure. The table definitions haven't changed recently.


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: 2 weeks 3 days ago by krileon.

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

  • fdinkler
  • fdinkler
  • ONLINE
  • Posts: 232
  • Thanks: 28
  • Karma: 0
2 weeks 3 days ago #340247 by fdinkler
Replied by fdinkler on topic CB Paid Subscriptions = update error
Ran CB Tools: Check CB plugins database:

Results attached...  looks like my install is seriously hosed...  no idea why...
I'll click through the repair links and see if it fixes everything.

QQ: Some of the fields are hard-coded to a different collation - is there a reason?

Fred
Attachments:

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

Moderators: beatnantkrileon
Powered by Kunena Forum