News:

Support the VirtueMart project and become a member

Main Menu

Error processing coupon code

Started by nistune, January 05, 2024, 06:06:12 AM

Previous topic - Next topic

nistune

Joomla 4.3.2 Virtual Mart 4.0.22.10864, PHP version: 8.1.25

Happy new year! We have added a new coupon code for 2024, but a customer has reported issues using it. Need some guidance how to resolve this one

Notes
1. Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home2/dio9qmhodo6w/public_html/libraries/src/HTML/Helpers/Select.php on line 563
Unsure if this is an issue, but we see it on the coupon page. Appears to be a warning for NULL parameter 2 in Joomla! code called by VirtualMart

2. Customer adds product to cart, enters coupon code and gets error 'An error has occurred whilst processing coupon code. See console log for details

com_virtuemart.log.php:

2024-01-04 20:13:51 ERROR vmError: Tried to load controller article on base path /home2/dio9qmhodo6w/public_html/components/com_virtuemart. No File available VirtuemartControllerArticle<pre>#0 /home2/xxx/public_html/components/com_virtuemart/virtuemart.php(116): vmError()
#1 /home2/xxx/public_html/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require_once('/home2/dio9qmho...')
#2 /home2/xxx/public_html/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()
#3 /home2/xxx/public_html/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()
#4 /home2/xxx/public_html/libraries/src/Application/SiteApplication.php(208): Joomla\CMS\Component\ComponentHelper::renderComponent()
</pre>


Any idea on what this means? Google didn't really help here, but its happened more than once in the log. Nothing in error.log applicable

Of course I test it myself on different browsers and don't see the error here

hazael

Maybe the easiest way would be to install the latest version of Virtuemart

nistune

Quotelatest version of Virtuemart
My experience tends to be when I upgrade, I have to test everything to ensure there are not more unknown bugs introduced. So I usually need to put aside a week to stage host it but only run the business part time. If I at least know what is causing the error messages, that would be a start.

With the coupon code, I'm going to have to assume the customer needed to clear their browser cache, since I could not repeat the isue here

nistune