Error on checkout - confirmation page not shown

  • Posts: 2
  • Thank you received: 1
2 years 9 months ago #339463

-- HikaShop version -- : 4.4.5
-- Joomla version -- : 4.0.6 Just updated to 4.1.0 and the issue remained
-- PHP version -- : 8.0.15
-- Browser(s) name and version -- : Chrome 98.0.4758.82
-- Error-message(debug-mod must be tuned on) -- : 0 bccomp(): Argument #1 ($num1) is not well-formed
Call stack
# Function Location
1 () JROOT/media/com_hikashop/mail/order_creation_notification.text.php:36
2 bccomp() JROOT/media/com_hikashop/mail/order_creation_notification.text.php:36
3 require() JROOT/administrator/components/com_hikashop/classes/mail.php:192
4 hikashopMailClass->loadEmail() JROOT/administrator/components/com_hikashop/classes/mail.php:32
5 hikashopMailClass->get() JROOT/administrator/components/com_hikashop/classes/order.php:1963
6 hikashopOrderClass->loadOrderNotification() JROOT/administrator/components/com_hikashop/classes/order.php:441
7 hikashopOrderClass->save() JROOT/administrator/components/com_hikashop/classes/order.php:896
8 hikashopOrderClass->createFromCart() JROOT/components/com_hikashop/controllers/checkout.php:656
9 checkoutController->confirm() JROOT/libraries/src/MVC/Controller/BaseController.php:730
10 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2150
11 hikashopController->execute() JROOT/components/com_hikashop/hikashop.php:88
12 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:69
13 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
14 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389
15 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:206
16 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:245
17 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
18 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:63
19 require_once() JROOT/index.php:32

When checking out, a confirmation page should be shown, but isn't.

When customer signs up during ordering, the registration e-mail is sent (and arrived at customer)
After continuing the checkout procedure, the following error message is shown (0 bccomp(): Argument #1 ($num1) is not well-formed).
Besides that, also no order confirmation is sent to the customer.

In the system I can see the order which is placed and continue with it, but the confirmation is not sent to the customer.
Hope you can help out here?

I saw others having the same kind of error. In those topics it was mentioned to install the version from the website. hence I downloaded the latest version today and installed it, but this didn't help.

Last edit: 2 years 9 months ago by JdL_EL.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 9 months ago #339465

Hi,

There is apparently a conversion issue with the shipping fee on your end and PHP8 being strictier than previous versions.

Try changing the line:

if(bccomp($data->order_shipping_price,0,5)){
to:
if(bccomp(number_format($data->order_shipping_price,5),0,5)){
in the file /media/com_hikashop/mail/order_creation_notification.text.php
it should hopefully avoid the problem.

The following user(s) said Thank You: JdL_EL

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

  • Posts: 2
  • Thank you received: 1
2 years 9 months ago #339469

Thanks,
This works like a charm!

The following user(s) said Thank You: nicolas

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 9 months ago #339472

Hi,

Thank you.
We'll add the change on our end for the next version of HikaShop.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum