Solved Can't renew sub with User Upgrade Pro

Smiley

Licensed
Licensed
Upgrade Coupons
User Upgrade Duration
User Upgrade Pro
Joined
Mar 8, 2022
Messages
13
Reaction score
6
Hello, i think to have spotted a bug in the Upgrade Coupon addon. When i had an upgrade active and clicked on buy again/renew i would get an error saying the page couldn't be found.

When checking the file: src/addons/XenSoluce/UpgradeCoupons/Pub/Controller/UpgradeCoupons.php i noticed that in line 49 there seems to be a bug.

Original code:
Code:
if($upgrade->canRenew())
{
    return $this->error(\XF::phrase('requested_page_not_found'));
}

This doesn't make sense so i edited my code and was able to restore expected functionality.

My code:
Code:
if(!$upgrade->canRenew())
{
    return $this->error(\XF::phrase('requested_page_not_found'));
}

Best regards
zordem
 
Hello,

Ah yes there is indeed no sense, I will release an update, thank you for reporting it!

Regards, CRUEL-MODZ
 
Back
Top Bottom