Welcome, Guest
Username: Password: Remember me

TOPIC: [1.9.0] Fix PHP warning: Missing argument 4 for...

[1.9.0] Fix PHP warning: Missing argument 4 for... 2 years 11 months ago #889

  • hungtran
  • hungtran's Avatar
  • Offline
  • Moderator
  • Posts: 1263
  • Thank you received: 214
  • Karma: 22
Hi all,

If you are using CMGroupBuying 1.9.0 you can notice this error in your Joomla error log:
Missing argument 4 for CMGroupBuyingHelperCoupon::generateCouponCode()...

To fix this you need to modify components/com_cmgroupbuying/helpers/coupon.php, you change line 35:
$couponCode = CMGroupBuyingHelperCoupon::generateCouponCode($orderId, $dealId, $i);

$couponCode = CMGroupBuyingHelperCoupon::generateCouponCode($orderId, $itemId, $dealId, $i);

We apologize for any inconvenience caused and thank you for your bug report!

CMExt Team
The administrator has disabled public write access.