EXPECTED BEHAVIOR
Clicking 'Buy Now' on a free transaction in the Marketplace completes the order.
ACTUAL BEHAVIOR
Clicking 'Buy Now' on a free transaction in the Marketplace causes an error.
HOW TO REPRODUCE
- Login to http://steemnova.intinte.org on Chrome 65.0.3325.109 using Android 8.1
- Click on Marketplace in Left Menu
- Locate a Transaction costing 0 Resources
- Click 'Buy Now!'
TESTING ENVIRONMENT
- OS: Android 8.1
- Browser: Chrome 65.0.3325.109
- App Version: 1.8.0
RECORDING OF THE BUG
ERROR TEXT
WARNING
Message: Division by zero
File: /includes/classes/class.FleetFunctions.php
Line: 120
URL: https://steemnova.intinte.org/game.php?page=marketPlace&action=buy
PHP-Version: 7.0.28-1
PHP-API: fpm-fcgi
2Moons Version: 1.8.git
Debug Backtrace:
#0 /includes/classes/class.FleetFunctions.php(120): errorHandler(2, 'Division by zer...', 'FILEPATH ...', 120, Array)
#1 /includes/pages/game/ShowMarketPlacePage.class.php(110): FleetFunctions::GetMissionDuration(3500, 0, 9065, 2, Array)
#2 /includes/pages/game/ShowMarketPlacePage.class.php(211): ShowMarketPlacePage->doBuy()
#3 /game.php(57): ShowMarketPlacePage->show()
#4 {main}
Posted on Utopian.io - Rewarding Open Source Contributors
I think that you should add it also on the github. I've fixed this one (PR is in review)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks @dotevo, it'll get automatically ported to GitHub once it's approved by a Utopian-IO moderator. If I create it there earlier than that they will likely flag it as a duplicate.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit