How to fix the «Notice: Undefined index: 1.0000 in vendor/mirasvit/module-rewards/src/Rewards/Helper/Tier/Rule.php on line 65» bug in the Mirasvit's «Reward Points + Referral program»?

bug-fix
third-party-extension
mirasvit

(Dmitry Fedyuk) #1

Replace the line in the vendor/mirasvit/module-rewards/src/Rewards/Helper/Tier/Rule.php file:

$currantTier = $customer->getData(TierInterface::CUSTOMER_KEY_TIER_ID);

with the following one:

$currantTier = intval($customer->getData(TierInterface::CUSTOMER_KEY_TIER_ID));

How to fix the «Notice: Undefined index: 1.0000 in vendor/mirasvit/module-rewards/src/Rewards/Helper/Balance/Earn.php on line 253» bug in the Mirasvit's «Reward Points + Referral program»?
(Dmitry Fedyuk) #2

See also:


(Dmitry Fedyuk) #3

As I see, the issue is occured in many places, so you should find all occurencies of
->getData(TierInterface::CUSTOMER_KEY_TIER_ID) and apply intval() to the result.