Coupon Admin / Multiple Reports
ZC 1.5.8
PHP 8.0
When selecting a coupon and then clicking Multiple Reports under Multiple Discount Coupons Management you get the following error:
Code:
24-Feb-2023 11:15:30 Europe/London] Request URI: /admin/index.php?cmd=coupon_admin&action=voucherreportduplicates&cid=17&codebase=test1235&page=1, IP address: X.X.X.X
#1 require(/admin/coupon_admin.php) called at [/admin/index.php:11]
--> PHP Warning: Undefined variable $cInfo in /admin/coupon_admin.php on line 662.
[24-Feb-2023 11:15:30 Europe/London] Request URI: /admin/index.php?cmd=coupon_admin&action=voucherreportduplicates&cid=17&codebase=test1235&page=1, IP address: X.X.X.X
#1 require(/admin/coupon_admin.php) called at [/admin/index.php:11]
--> PHP Warning: Attempt to read property "coupon_id" on null in /admin/coupon_admin.php on line 662.
[24-Feb-2023 11:15:30 Europe/London] Request URI: /admin/index.php?cmd=coupon_admin&action=voucherreportduplicates&cid=17&codebase=test1235&page=1, IP address: X.X.X.X
#1 require(/admin/coupon_admin.php) called at [/admin/index.php:11]
--> PHP Warning: Undefined variable $cInfo in /admin/coupon_admin.php on line 679.
[24-Feb-2023 11:15:30 Europe/London] Request URI: /admin/index.php?cmd=coupon_admin&action=voucherreportduplicates&cid=17&codebase=test1235&page=1, IP address: X.X.X.X
#1 require(/admin/coupon_admin.php) called at [/admin/index.php:11]
--> PHP Warning: Attempt to read property "customer_id" on null in /admin/coupon_admin.php on line 679.
It does not appear linked but just to clarify I have applied the fix from this report which solved that particular problem for me too.
Re: Coupon Admin / Multiple Reports
Thanks for the report; correction submitted for zc158a: https://github.com/zencart/zencart/pull/5628