Gift Voucher - Checkout Ends with Error: "Call to undefined method TablePhocacartCoupon::getErrorMsg()". Stack trace: #0
Posted: 09 Jan 2024, 08:39
Hi, my name is Michael from Germany.
I tried since a couple of days, to get the "Gift-Voucher" buying running.
I watched your Video for Setting Up a Product as a Gift-Voucher.
Everything works (Selecting the Voucher Amount, and put the Voucher in the Basket).
But if i try to checkout the Voucher i get an Error Message:
Call to undefined method TablePhocacartCoupon::getErrorMsg()
In the /administrator/logs/everything.php i found this Text:
2024-01-09T04:49:47+00:00 CRITICAL 84.149.132.26 error Uncaught Throwable of type Error thrown with message "Call to undefined method TablePhocacartCoupon::getErrorMsg()". Stack trace: #0 [ROOT]/administrator/components/com_phocacart/libraries/phocacart/order/order.php(672): PhocacartOrder->saveOrderGiftCoupons()
#1 [ROOT]/components/com_phocacart/controllers/checkout.php(943): PhocacartOrder->saveOrderMain()
#2 [ROOT]/libraries/src/MVC/Controller/BaseController.php(693): PhocaCartControllerCheckout->order()
#3 [ROOT]/components/com_phocacart/phocacart.php(18): Joomla\CMS\MVC\Controller\BaseController->execute()
#4 [ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require_once('...')
#5 [ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()
#6 [ROOT]/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()
#7 [ROOT]/libraries/src/Application/SiteApplication.php(208): Joomla\CMS\Component\ComponentHelper::renderComponent()
#8 [ROOT]/libraries/src/Application/SiteApplication.php(249): Joomla\CMS\Application\SiteApplication->dispatch()
#9 [ROOT]/libraries/src/Application/CMSApplication.php(293): Joomla\CMS\Application\SiteApplication->doExecute()
#10 [ROOT]/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()
#11 [ROOT]/index.php(32): require_once('...')
#12 {main}
My Configuration is:
Datenbanktyp mysql
Datenbankversion 8.0.35-0ubuntu0.22.04.1
Datenbankzeichensatz utf8mb4_general_ci
Datenbankverbindungszeichensatz utf8mb4_0900_ai_ci
Datenbankverbindungsverschlüsselung Keine
Datenbankserver unterstützt Verbindungsverschlüsselung Ja
PHP-Version 8.2.14
Webserver Apache/2.4.52 (Ubuntu)
PHP-Interface für den Webserver apache2handler
Joomla-Version Joomla! 4.4.1 Stable [ Pamoja ] 28-November-2023 16:00 GMT
Where is the Error?
Should i reinstall the complete Joomla Site?
Please Help me...
I tried since a couple of days, to get the "Gift-Voucher" buying running.
I watched your Video for Setting Up a Product as a Gift-Voucher.
Everything works (Selecting the Voucher Amount, and put the Voucher in the Basket).
But if i try to checkout the Voucher i get an Error Message:
Call to undefined method TablePhocacartCoupon::getErrorMsg()
In the /administrator/logs/everything.php i found this Text:
2024-01-09T04:49:47+00:00 CRITICAL 84.149.132.26 error Uncaught Throwable of type Error thrown with message "Call to undefined method TablePhocacartCoupon::getErrorMsg()". Stack trace: #0 [ROOT]/administrator/components/com_phocacart/libraries/phocacart/order/order.php(672): PhocacartOrder->saveOrderGiftCoupons()
#1 [ROOT]/components/com_phocacart/controllers/checkout.php(943): PhocacartOrder->saveOrderMain()
#2 [ROOT]/libraries/src/MVC/Controller/BaseController.php(693): PhocaCartControllerCheckout->order()
#3 [ROOT]/components/com_phocacart/phocacart.php(18): Joomla\CMS\MVC\Controller\BaseController->execute()
#4 [ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require_once('...')
#5 [ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()
#6 [ROOT]/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()
#7 [ROOT]/libraries/src/Application/SiteApplication.php(208): Joomla\CMS\Component\ComponentHelper::renderComponent()
#8 [ROOT]/libraries/src/Application/SiteApplication.php(249): Joomla\CMS\Application\SiteApplication->dispatch()
#9 [ROOT]/libraries/src/Application/CMSApplication.php(293): Joomla\CMS\Application\SiteApplication->doExecute()
#10 [ROOT]/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()
#11 [ROOT]/index.php(32): require_once('...')
#12 {main}
My Configuration is:
Datenbanktyp mysql
Datenbankversion 8.0.35-0ubuntu0.22.04.1
Datenbankzeichensatz utf8mb4_general_ci
Datenbankverbindungszeichensatz utf8mb4_0900_ai_ci
Datenbankverbindungsverschlüsselung Keine
Datenbankserver unterstützt Verbindungsverschlüsselung Ja
PHP-Version 8.2.14
Webserver Apache/2.4.52 (Ubuntu)
PHP-Interface für den Webserver apache2handler
Joomla-Version Joomla! 4.4.1 Stable [ Pamoja ] 28-November-2023 16:00 GMT
Where is the Error?
Should i reinstall the complete Joomla Site?
Please Help me...