[#8968] Basket reimbursed issues error

4 months 3 days ago - 4 months 3 days ago #329598 by activha
Just an info to let you know that reimbursing a payment this morning issued an error.
The basket was correctly reimbursed though.

I though that this could be of some interest to you.
A PHP Exception occurred on your site. Here you can find the stack trace:

Exception Type: TypeError
File: /var/www/html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/plugin/cbsubsoptions/library/Trigger/BasketTrigger.php
Line: 201
Message: Argument 6 passed to CB\Plugin\PlanOptions\Trigger\BasketTrigger::onCPayBeforePaymentStatusUpdateEvent() must be of the type string, null given, called in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 880

#0 /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php(880): CB\Plugin\PlanOptions\Trigger\BasketTrigger->onCPayBeforePaymentStatusUpdateEvent()
#1 /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php(1293): cbPluginHandler->call()
#2 /var/www/html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/controllers/cbpaidPayHandler.php(768): cbPluginHandler->trigger()
#3 /var/www/html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/processors/stripe/cbpaidsubscriptions.stripe.php(1319): cbpaidPayHandler->updatePaymentStatus()
#4 /var/www/html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/admin.cbpaidsubscriptions.php(425): cbpaidstripeoem->refundPayment()
#5 /var/www/html/libraries/CBLib/CBLib/AhaWow/Controller/ActionController.php(835): cbpaidPaymentManualRefund->store()
#6 /var/www/html/libraries/CBLib/CBLib/AhaWow/Controller/ActionController.php(607): CBLib\AhaWow\Controller\ActionController->savePluginView()
#7 /var/www/html/administrator/components/com_comprofiler/controller/controller.plugin.php(258): CBLib\AhaWow\Controller\ActionController->drawView()
#8 /var/www/html/administrator/components/com_comprofiler/controller/controller.plugin.php(64): CBController_plugin->editPluginView()
#9 /var/www/html/administrator/components/com_comprofiler/admin.comprofiler.controller.php(299): CBController_plugin->savePlugin()
#10 /var/www/html/administrator/components/com_comprofiler/comprofiler.php(14): require('/var/www/html/a...')
#11 /var/www/html/libraries/src/Component/ComponentHelper.php(402): require_once('/var/www/html/a...')
#12 /var/www/html/libraries/src/Component/ComponentHelper.php(377): Joomla\CMS\Component\ComponentHelper::executeComponent()
#13 /var/www/html/libraries/src/Application/AdministratorApplication.php(101): Joomla\CMS\Component\ComponentHelper::renderComponent()
#14 /var/www/html/libraries/src/Application/AdministratorApplication.php(159): Joomla\CMS\Application\AdministratorApplication->dispatch()
#15 /var/www/html/libraries/src/Application/CMSApplication.php(225): Joomla\CMS\Application\AdministratorApplication->doExecute()
#16 /var/www/html/administrator/index.php(51): Joomla\CMS\Application\CMSApplication->execute()
#17 {main}
Request information

GET variables

Array
(
)
POST variables

Array
(
    [refund_gross] => 432
    [refund_is_last] => 1
    [refund_reason] => 
    [option] => com_comprofiler
    [cid] => 538
    [cbprevstate] => b3B0aW9uPWNvbV9jb21wcm9maWxlciZ2aWV3PWVkaXRQbHVnaW4mcGx1Z2luaWQ9NTM4JmFjdGlvbj1zaG93dGFibGUmdGFibGU9cGF5bWVudHM=
    [action] => refundpayment
    [table] => paymentsbrowser
    [view] => savePlugin
    [tid] => 16276
    [cbsecuritym3] => cbm_3b5d10f8_7d3a8fb6_0e8e0eb9f10aa675c205d07582d9bbd3
    [task] => savePlugin
)
COOKIE variables

Array
(
    [rl_modals] => 423
    [userID] => 1444
    [_fbp] => fb.1.1654072628013.1079788291
    [cpnb_cookiesSettings] => {"required-cookies":1,"analytical-cookies":1,"social-media-cookies":1}
    [f53160c6e948435c1c1775cb6450968e] => kmj39n6s2he787028aoqv9ck41
    [1d014b3efc2b8d7c962ad8fc2ecdc284] => lcj1n8t3srofb490g5fjkce0t7
    [joomla_remember_me_9612ea2a35b0ba7fbac69aa113f8e1ac] => T2fvDeLbCFH8fCIWZ1O782amR94vY9fS.f1OJwQRLMNzHXwczV68c
    [joomla_user_state] => logged_in
    [cookiesDirective] => 1
    [atid] => YToxOntzOjQ6ImF0aWQiO2k6Njt9
    [gpf_language] => fr
)
REQUEST variables

Array
(
    [refund_gross] => 432
    [refund_is_last] => 1
    [refund_reason] => 
    [option] => com_comprofiler
    [cid] => 538
    [cbprevstate] => b3B0aW9uPWNvbV9jb21wcm9maWxlciZ2aWV3PWVkaXRQbHVnaW4mcGx1Z2luaWQ9NTM4JmFjdGlvbj1zaG93dGFibGUmdGFibGU9cGF5bWVudHM=
    [action] => refundpayment
    [table] => paymentsbrowser
    [view] => savePlugin
    [tid] => 16276
    [cbsecuritym3] => cbm_3b5d10f8_7d3a8fb6_0e8e0eb9f10aa675c205d07582d9bbd3
    [helix_id] => 9
    [task] => editPlugin
)
SERVER variables

Array
(
    [USER] => apache
    [HOME] => /usr/share/httpd
    [SCRIPT_NAME] => /administrator/index.php
    [REQUEST_URI] => /administrator/index.php
    [QUERY_STRING] => 
    [REQUEST_METHOD] => POST
    [SERVER_PROTOCOL] => HTTP/1.0
    [GATEWAY_INTERFACE] => CGI/1.1
    [REMOTE_PORT] => 55196
    [SCRIPT_FILENAME] => /var/www/html/administrator/index.php
    [SERVER_ADMIN] => admin@activ-ha.com
    [CONTEXT_DOCUMENT_ROOT] => /var/www/html
    [CONTEXT_PREFIX] => 
    [REQUEST_SCHEME] => https
    [DOCUMENT_ROOT] => /var/www/html
    [REMOTE_ADDR] => 93.7.XXX
    [SERVER_PORT] => 443
    [SERVER_ADDR] => 127.0.0.1
    [SERVER_NAME] => activ-ha.com
    [SERVER_SOFTWARE] => Apache
    [SERVER_SIGNATURE] => 
    [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
    [HTTP_COOKIE] => rl_modals=423; userID=1444; _fbp=fb.1.1654072628013.1079788291; cpnb_cookiesSettings=%7B%22required-cookies%22%3A1%2C%22analytical-cookies%22%3A1%2C%22social-media-cookies%22%3A1%7D; f53160c6e948435c1c1775cb6450968e=kmj39n6s2he787028aoqv9ck41; 1d014b3efc2b8d7c962ad8fc2ecdc284=lcj1n8t3srofb490g5fjkce0t7; joomla_remember_me_9612ea2a35b0ba7fbac69aa113f8e1ac=T2fvDeLbCFH8fCIWZ1O782amR94vY9fS.f1OJwQRLMNzHXwczV68c; joomla_user_state=logged_in; cookiesDirective=1; atid=YToxOntzOjQ6ImF0aWQiO2k6Njt9; gpf_language=fr
    [HTTP_ACCEPT_ENCODING] => gzip, deflate, br
    [HTTP_REFERER] => https://activ-ha.com/administrator/index.php?option=com_comprofiler&view=editPlugin&cid=538&action=refundpayment&table=paymentsbrowser&tid=16276&cbprevstate=b3B0aW9uPWNvbV9jb21wcm9maWxlciZ2aWV3PWVkaXRQbHVnaW4mcGx1Z2luaWQ9NTM4JmFjdGlvbj1zaG93dGFibGUmdGFibGU9cGF5bWVudHM%3D
    [HTTP_USER_AGENT] => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15
    [HTTP_ACCEPT_LANGUAGE] => fr-FR,fr;q=0.9
    [HTTP_ORIGIN] => https://activ-ha.com
    [CONTENT_TYPE] => multipart/form-data; boundary=----WebKitFormBoundaryVO0VyiyrSK4ozJjp
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [CONTENT_LENGTH] => 1321
    [HTTP_CONNECTION] => close
    [HTTP_X_ORIGINATING_IP] => 93.7.XXX
    [HTTP_X_FORWARDED_FOR] => 93.7.XXX
    [HTTP_HOST] => activ-ha.com
    [proxy-nokeepalive] => 1
    [HTTPS] => on
    [HTTP_AUTHORIZATION] => 
    [UNIQUE_ID] => YpnE0r994-YrmHlr3FSc6AAAAAk
    [FCGI_ROLE] => RESPONDER
    [PHP_SELF] => /administrator/index.php
    [REQUEST_TIME_FLOAT] => 1654244562.6921
    [REQUEST_TIME] => 1654244562
)

Please Log in to join the conversation.

4 months 3 days ago #329603 by krileon
Replied by krileon on topic Basket reimbursed issues error
CBSubs Options is strict typed. Looked like it received a value it didn't expect. Fixing to support NULL for next build. Thank you for letting us know!

forge.joomlapolis.com/issues/8968


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

Moderators: beatnantkrileon
Time to create page: 0.180 seconds

Facebook Twitter LinkedIn