- Joined
- May 15, 2020
- Messages
- 23
- Reaction score
- 7
Hello
Found some more bugs and mistakes.
1. "Test" instead of the name of the upgrade indicating the duration.
2. Errors that occur when you press the "enter" button in the input field of the promo code when the duration created through [Xen-Soule] Upgrade Coupons.
3. An error in the error text when you click on the "apply" button without entering a coupon.
As for me, a simple “Please enter a promo code before applying” would be much better. Hello, Google.Translate
Found some more bugs and mistakes.
1. "Test" instead of the name of the upgrade indicating the duration.
1. Click "purchase" on any upgrade.
2. In the pop-up window in the "duration" menu, select any promotion created through [Xen-Soule] User Upgrade Duration (does not work on duration created by XenForo)
3. In the "promo code" field, enter a valid promo code, then click "apply".
4. The name of the field with the choice of the payment profile will change to "test", instead of the name of the upgrade.
Demo
2. In the pop-up window in the "duration" menu, select any promotion created through [Xen-Soule] User Upgrade Duration (does not work on duration created by XenForo)
3. In the "promo code" field, enter a valid promo code, then click "apply".
4. The name of the field with the choice of the payment profile will change to "test", instead of the name of the upgrade.
Demo
2. Errors that occur when you press the "enter" button in the input field of the promo code when the duration created through [Xen-Soule] Upgrade Coupons.
1. Click "purchase" on any upgrade.
2. In the pop-up window in the "duration" menu, select any promotion created through [Xen-Soule] User Upgrade Duration (does not work on duration created by XenForo)
3. Place the cursor in the input field of the promo code and press the "enter" button.
4. An error will occur.
The error that occurs when using PHP 7.1 and 7.2: ErrorException: [E_NOTICE] Trying to get property of non-object src/addons/XenSoluce/UpgradeCoupons/XF/Purchasable/UserUpgrade.php:31
The error that occurs when using PHP 7.4: ErrorException: [E_NOTICE] Trying to get property 'uud_id' of non-object src/addons/XenSoluce/UpgradeCoupons/XF/Purchasable/UserUpgrade.php:31
Demo 1. Demo 2.
2. In the pop-up window in the "duration" menu, select any promotion created through [Xen-Soule] User Upgrade Duration (does not work on duration created by XenForo)
3. Place the cursor in the input field of the promo code and press the "enter" button.
4. An error will occur.
The error that occurs when using PHP 7.1 and 7.2: ErrorException: [E_NOTICE] Trying to get property of non-object src/addons/XenSoluce/UpgradeCoupons/XF/Purchasable/UserUpgrade.php:31
Code:
#0 src/addons/XenSoluce/UpgradeCoupons/XF/Purchasable/UserUpgrade.php(31): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/sites/mvdev.ml...', 31, Array)
#1 src/addons/XenSoluce/UserUpgradeDuration/XF/Purchasable/UserUpgrade.php(43): XenSoluce\UpgradeCoupons\XF\Purchasable\UserUpgrade->getPurchaseFromRequest(Object(XF\Http\Request), Object(SV\SignupAbuseBlocking\XF\Entity\User), NULL)
#2 src/XF/Pub/Controller/Purchase.php(21): XenSoluce\UserUpgradeDuration\XF\Purchasable\UserUpgrade->getPurchaseFromRequest(Object(XF\Http\Request), Object(SV\SignupAbuseBlocking\XF\Entity\User), NULL)
#3 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Purchase->actionIndex(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(261): XF\Mvc\Dispatcher->dispatchClass('XF:Purchase', 'Index', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Purchase), NULL)
#5 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Purchase), NULL)
#6 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#8 src/XF.php(391): XF\App->run()
#9 index.php(20): XF::runApp('XF\\Pub\\App')
#10 {main}
Code:
#0 src/addons/XenSoluce/UpgradeCoupons/XF/Purchasable/UserUpgrade.php(31): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/sites/mvdev.ml...', 31, Array)
#1 src/addons/XenSoluce/UserUpgradeDuration/XF/Purchasable/UserUpgrade.php(43): XenSoluce\UpgradeCoupons\XF\Purchasable\UserUpgrade->getPurchaseFromRequest(Object(XF\Http\Request), Object(SV\SignupAbuseBlocking\XF\Entity\User), NULL)
#2 src/XF/Pub/Controller/Purchase.php(21): XenSoluce\UserUpgradeDuration\XF\Purchasable\UserUpgrade->getPurchaseFromRequest(Object(XF\Http\Request), Object(SV\SignupAbuseBlocking\XF\Entity\User), NULL)
#3 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\Purchase->actionIndex(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Purchase', 'Index', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Purchase), NULL)
#5 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Purchase), NULL)
#6 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#8 src/XF.php(391): XF\App->run()
#9 index.php(20): XF::runApp('XF\\Pub\\App')
#10 {main}
Demo 1. Demo 2.
3. An error in the error text when you click on the "apply" button without entering a coupon.
As for me, a simple “Please enter a promo code before applying” would be much better. Hello, Google.Translate
Last edited: