- Posts: 2
- Thank you received: 1
Error on checkout - confirmation page not shown
4 years 7 months ago - 4 years 7 months ago #339463
by JdL_EL
Error on checkout - confirmation page not shown was created by JdL_EL
-- 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.
-- 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: 4 years 7 months ago by JdL_EL.
Please Log in or Create an account to join the conversation.
4 years 7 months ago #339465
by nicolas
Replied by nicolas on topic Error on checkout - confirmation page not shown
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:
to:
in the file /media/com_hikashop/mail/order_creation_notification.text.php
it should hopefully avoid the problem.
There is apparently a conversion issue with the shipping fee on your end and PHP8 being strictier than previous versions.
Try changing the line:
Code:
if(bccomp($data->order_shipping_price,0,5)){
Code:
if(bccomp(number_format($data->order_shipping_price,5),0,5)){
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.
4 years 7 months ago #339469
by JdL_EL
Replied by JdL_EL on topic Error on checkout - confirmation page not shown
Thanks,
This works like a charm!
This works like a charm!
The following user(s) said Thank You: nicolas
Please Log in or Create an account to join the conversation.
4 years 7 months ago #339472
by nicolas
Replied by nicolas on topic Error on checkout - confirmation page not shown
Hi,
Thank you.
We'll add the change on our end for the next version of HikaShop.
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.196 seconds