[SOLVED] error when attempting Stripe subscription

1 year 2 weeks ago - 9 months 1 week ago #333133 by joomally
Hi,
I updated my community builder and all plugins to the most recent version, including the 'Paid subscription' plugin.

I am now getting the following error message when attempting a Stripe payment:
This is preventing users from registering, so I would apreciate a quick resolution.

WARNING: explode() expects parameter 2 to be string, array given in "/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/processors/stripe/cbpaidsubscriptions.stripe.php on line 377
Trace:called in class cbpaidErrorHandler::_error_handler_callable(2, "explode() expects parameter 2 to be string, array given", "/public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/processors/stripe/cbpaidsubscriptions.stripe.php", 377, array("user" => object(CB\Database\Table\UserTable), "paymentBasket" => object(cbpaidPaymentBasket), "redirectNow" => "redirect", "availableMethods" => array(1 => "stripe_recurring"), "currency" => "GBP", "v" => "stripe_recurring", "k" => 1, "recurring" => true, "checkout" => false, "paymentMethods" => array(0 => "card")))
called in function explode("|*|", array(0 => "card")) on line 377 in file cbpaidsubscriptions.stripe.php
called in class cbpaidstripeoem::getPaymentBasketProcess(object(CB\Database\Table\UserTable), object(cbpaidPaymentBasket), "redirect") on line 176 in file cbpaidControllerPaychoices.php
called in class cbpaidControllerPaychoices::getPaymentMethodsParams(object(CB\Database\Table\UserTable), object(cbpaidPaymentBasket), "", "redirect") on line 389 in file cbpaidControllerPaychoices.php
called in class cbpaidControllerPaychoices::getPaymentBasketPaymentForm(object(CB\Database\Table\UserTable), object(cbpaidPaymentBasket), "", false) on line 251 in file cbpaidControllerOrder.php
called in class cbpaidControllerOrder::showBasketForPayment(object(CB\Database\Table\UserTable), object(cbpaidPaymentBasket), "") on line 258 in file cbpaidControllerCBTab.php
called in class cbpaidControllerCBTab::getTabComponent(NULL, object(CB\Database\Table\UserTable), 1, array("cbpplanE" => array(0 => array("selected" => array(0 => "92"))), "cbpcbregUpgrade" => "Upgrade", "user" => "1737", "cbpact" => "upgrade", "68d4d0b410cb0da0316c675c59d09e1b" => "1")) on line 1155 in file cbpaidsubscriptions.php
called in class getcbpaidsubscriptionsTab::getTabComponent(NULL, object(CB\Database\Table\UserTable), 1, array("cbpplanE" => array(0 => array("selected" => array(0 => "92"))), "cbpcbregUpgrade" => "Upgrade", "user" => "1737", "cbpact" => "upgrade", "68d4d0b410cb0da0316c675c59d09e1b" => "1")) on line 92 in file cbpaidControllerCBComponent.php
called in class CBplug_cbpaidsubscriptions::getCBpluginComponent(NULL, object(CB\Database\Table\UserTable), 1, array("cbpplanE" => array(0 => array("selected" => array(0 => "92"))), "cbpcbregUpgrade" => "Upgrade", "user" => "1737", "cbpact" => "upgrade", "68d4d0b410cb0da0316c675c59d09e1b" => "1"), NULL) on line 880 in file cbPluginHandler.php
called in class cbPluginHandler::call(23, "getCBpluginComponent", "CBplug_cbpaidsubscriptions", array(0 => NULL, 1 => object(CB\Database\Table\UserTable), 2 => 1, 3 => array("cbpplanE" => array(0 => array("selected" => array(0 => "92"))), "cbpcbregUpgrade" => "Upgrade", "user" => "1737", "cbpact" => "upgrade", "68d4d0b410cb0da0316c675c59d09e1b" => "1"), 4 => NULL), NULL) on line 1611 in file cbTabs.php
called in class cbTabs::_callTabPlugin(NULL, object(CB\Database\Table\UserTable), "CBplug_cbpaidsubscriptions", "getCBpluginComponent", "23", array("cbpplanE" => array(0 => array("selected" => array(0 => "92"))), "cbpcbregUpgrade" => "Upgrade", "user" => "1737", "cbpact" => "upgrade", "68d4d0b410cb0da0316c675c59d09e1b" => "1")) on line 1725 in file cbTabs.php
called in class cbTabs::tabClassPluginTabs(object(CB\Database\Table\UserTable), array("cbpplanE" => array(0 => array("selected" => array(0 => "92"))), "cbpcbregUpgrade" => "Upgrade", "user" => "1737", "cbpact" => "upgrade", "68d4d0b410cb0da0316c675c59d09e1b" => "1"), "cbpaidsubscriptions", "CBplug_cbpaidsubscriptions", "getCBpluginComponent") on line 733 in file comprofiler.php
called in function tabClass("com_comprofiler", "pluginclass", 1737) on line 286 in file comprofiler.php
called in function require_once("/home2/xxx/public_html/components/com_comprofiler/comprofiler.php") on line 402 in file ComponentHelper.php
called in class Joomla\CMS\Component\ComponentHelper::executeComponent("/home2/xxx/public_html/components/com_comprofiler/comprofiler.php") on line 377 in file ComponentHelper.php
called in class Joomla\CMS\Component\ComponentHelper::renderComponent("com_comprofiler") on line 194 in file SiteApplication.php
called in class Joomla\CMS\Application\SiteApplication::dispatch() on line 233 in file SiteApplication.php
called in class Joomla\CMS\Application\SiteApplication::doExecute() on line 225 in file CMSApplication.php
called in class Joomla\CMS\Application\CMSApplication::execute() on line 49 in file index.php
$_GET = array (
  'user' => '1737',
  'option' => 'com_comprofiler',
  'Itemid' => NULL,
  'view' => 'pluginclass',
  'plugin' => 'cbpaidsubscriptions',
  'task' => 'pluginclass',
)
$_POST = array (
  'cbpplanE' =>
  array (
    0 =>
    array (
      'selected' =>
      array (
        0 => '92',
      ),
    ),
  ),
  'cbpcbregUpgrade' => 'Upgrade',
  'user' => '1737',
  'cbpact' => 'upgrade',
  '68d4d0b410cb0da0316c675c59d09e1b' => '1',
)




Call trace:
called in class cbpaidHistory::logError() on line 279 in file cbpaidErrorHandler.php
called in class cbpaidErrorHandler::_error_handler_callable()
called in function explode() on line 377 in file cbpaidsubscriptions.stripe.php
called in class cbpaidstripeoem::getPaymentBasketProcess() on line 176 in file cbpaidControllerPaychoices.php
called in class cbpaidControllerPaychoices::getPaymentMethodsParams() on line 389 in file cbpaidControllerPaychoices.php
called in class cbpaidControllerPaychoices::getPaymentBasketPaymentForm() on line 251 in file cbpaidControllerOrder.php
called in class cbpaidControllerOrder::showBasketForPayment() on line 258 in file cbpaidControllerCBTab.php
called in class cbpaidControllerCBTab::getTabComponent() on line 1155 in file cbpaidsubscriptions.php
called in class getcbpaidsubscriptionsTab::getTabComponent() on line 92 in file cbpaidControllerCBComponent.php
called in class CBplug_cbpaidsubscriptions::getCBpluginComponent() on line 880 in file cbPluginHandler.php
called in class cbPluginHandler::call() on line 1611 in file cbTabs.php
called in class cbTabs::_callTabPlugin() on line 1725 in file cbTabs.php
...

Please Log in to join the conversation.

1 year 2 weeks ago #333134 by krileon
Replied by krileon on topic error when attempting Stripe subscription
Looks like a param was stored as an array instead of string and missed that case. A fix has now been released in latest build release. Thank you for letting us know!


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 to join the conversation.

1 year 2 weeks ago #333135 by joomally
Replied by joomally on topic error when attempting Stripe subscription
thanks for the quick reply.
That seems to be working, now.

Please Log in to join the conversation.

1 year 2 weeks ago #333137 by joomally
Replied by joomally on topic error when attempting Stripe subscription
In case its relevent (or helpful to someone reading the post), I just wanted to add that I also went into the settings page for the Stripe Gateway and saved it without making any changes. I don't know if this was needed to resolve the issue.
The following user(s) said Thank You: krileon

Please Log in to join the conversation.

1 year 2 weeks ago #333169 by joomally
Replied by joomally on topic error when attempting Stripe subscription
Although I am now able to get to the payment page, the pay button is not displaying correctly.
When I click the button that I am assuming is the pay button, I get the message:
'Submitted payment without pressing pay or subscribe button"



I have changed the template to be the protostar template to eliminate the possibility of template issues.

 
Attachments:

Please Log in to join the conversation.

1 year 2 weeks ago - 1 year 2 weeks ago #333170 by krileon
Replied by krileon on topic error when attempting Stripe subscription
That can only happen if the gateway can't accept single or recurring payments. Something doesn't seam configured correctly. What type of plan are you trying to purchase (e.g. Single Payment, Recurring Subscription, Donation, or Merchandise)? Are you using a custom template for CBSubs? If so switch back to default or rounded.

Please PM backend super user login credentials and will take a look. Note support is not available on weekends. So I will not be able to investigate this further until Monday. If this is urgent switch to Hosted Checkout mode to move the payment to Stripe instead of on-site.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.213 seconds

Facebook Twitter LinkedIn