VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: nistune on January 05, 2024, 06:06:12 AM

Title: Error processing coupon code
Post by: nistune on January 05, 2024, 06:06:12 AM
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
Title: Re: Error processing coupon code
Post by: hazael on January 05, 2024, 12:45:53 PM
Maybe the easiest way would be to install the latest version of Virtuemart
Title: Re: Error processing coupon code
Post by: nistune on January 09, 2024, 05:47:12 AM
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
Title: Re: Error processing coupon code
Post by: nistune on January 09, 2024, 06:45:01 AM
https://forum.virtuemart.net/index.php?topic=150580.0 (https://forum.virtuemart.net/index.php?topic=150580.0)
Okay looks like this one was fixed in Oct