Skip to Content Skip to Menu

CBSubs IPN error after upgrade to joomla 4.2.5

  • activha
  • activha
  • ONLINE
  • Posts: 2334
  • Thanks: 117
  • Karma: 13
1 year 11 months ago #331908 by activha
Hi
We moved yesterday to joomla 4 and I have an error that I cannot find, maybe that you could help ?

The stack trace is :
Code:
A PHP Exception occurred on your site. Here you can find the stack trace:Exception Type: [code]Joomla\Database\Exception\ExecutionFailureException
File: /var/www/html/libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php
Line: 435
Message: Incorrect integer value: '' for column 'test_ipn' at row 1 #0 /var/www/html/libraries/vendor/joomla/database/src/DatabaseDriver.php(675): Joomla\Database\Mysqli\MysqliStatement->execute()
#1 /var/www/html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php(776): Joomla\Database\DatabaseDriver->execute()
#2 /var/www/html/libraries/CBLib/CBLib/Database/Driver/CmsDatabaseDriver.php(531): Joomla\Database\Mysqli\MysqliDriver->insertObject()
#3 /var/www/html/libraries/CBLib/CBLib/Database/Table/Table.php(161): CBLib\Database\Driver\CmsDatabaseDriver->insertObject()
#4 /var/www/html/libraries/CBLib/CBLib/Database/Table/OrderedTable.php(69): CBLib\Database\Table\Table->store()
#5 /var/www/html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/models/table/cbpaidTable.php(176): CBLib\Database\Table\OrderedTable->store()
#6 /var/www/html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/models/payment/cbpaidPaymentBaseEntries.php(141): cbpaidTable->store()
#7 /var/www/html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/models/payment/cbpaidPayment.php(86): cbpaidPaymentBaseEntries->store()
#8 /var/www/html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/controllers/cbpaidPayHandler.php(695): cbpaidPayment->store()
#9 /var/www/html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/controllers/cbpaidPayHandler.php(815): cbpaidPayHandler->_storePaymentOnce()
#10 /var/www/html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/processors/stripe/cbpaidsubscriptions.stripe.php(2827): cbpaidPayHandler->updatePaymentStatus()
#11 /var/www/html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/controllers/cbpaidCreditCardsPayHandler.php(126): cbpaidstripeoem->handleNotify()
#12 /var/www/html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/processors/stripe/cbpaidsubscriptions.stripe.php(1076): cbpaidCreditCardsPayHandler->resultNotification()
#13 /var/www/html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/controllers/cbpaidControllerCBTab.php(679): cbpaidstripeoem->resultNotification()
#14 /var/www/html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/cbpaidsubscriptions.php(1155): cbpaidControllerCBTab->getTabComponent()
#15 /var/www/html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/controllers/cbpaidControllerCBComponent.php(92): getcbpaidsubscriptionsTab->getTabComponent()
#16 /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php(880): CBplug_cbpaidsubscriptions->getCBpluginComponent()
#17 /var/www/html/libraries/CBLib/CB/Legacy/cbTabs.php(1492): cbPluginHandler->call()
#18 /var/www/html/libraries/CBLib/CB/Legacy/cbTabs.php(1606): cbTabs->_callTabPlugin()
#19 /var/www/html/components/com_comprofiler/comprofiler.php(733): cbTabs->tabClassPluginTabs()
#20 /var/www/html/components/com_comprofiler/comprofiler.php(286): tabClass()
#21 /var/www/html/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require_once('/var/www/html/c...')
#22 /var/www/html/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()
#23 /var/www/html/libraries/src/Component/ComponentHelper.php(355): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()
#24 /var/www/html/libraries/src/Application/SiteApplication.php(200): Joomla\CMS\Component\ComponentHelper::renderComponent()
#25 /var/www/html/libraries/src/Application/SiteApplication.php(241): Joomla\CMS\Application\SiteApplication->dispatch()
#26 /var/www/html/libraries/src/Application/CMSApplication.php(294): Joomla\CMS\Application\SiteApplication->doExecute()
#27 /var/www/html/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()
#28 /var/www/html/index.php(32): require_once('/var/www/html/i...')
#29 {main}Request informationGET variablesArray
(
[option] => com_comprofiler
[view] => pluginclass
[plugin] => cbpaidsubscriptions
[cbpgacctno] => 12
[do] => gw
[result] => notify
[format] => raw
[id] => 16
[Itemid] => 2154
[task] => pluginclass
)
POST variablesArray
(
)
COOKIE variablesArray
(
)

[/code]

Gateway id 12 is Stripe

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48534
  • Thanks: 8290
  • Karma: 1445
1 year 11 months ago #331912 by krileon
test_ipn is trying to store as an empty string or boolean. Try the below quickfix.

IN: components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/processors/stripe/cbpaidsubscriptions.stripe.php
ON: Line 2732
FROM:
Code:
$ipn->set( 'test_ipn', ( ! Get::get( $postdata, 'livemode', true, GetterInterface::BOOLEAN ) ) );
TO:
Code:
$ipn->set( 'test_ipn', (int) ( ! Get::get( $postdata, 'livemode', true, GetterInterface::BOOLEAN ) ) );


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.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48534
  • Thanks: 8290
  • Karma: 1445
1 year 11 months ago #331913 by krileon
Have also created a bug ticket for this to be fixed in next build release.

forge.joomlapolis.com/issues/9085


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

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48534
  • Thanks: 8290
  • Karma: 1445
1 year 11 months ago #331929 by krileon
This should now be fixed in latest CBSubs build release. The above quickfix has been applied to core.


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