Error Occurs When Purchasing a Free Transaction from Marketplace

in utopian-io •  7 years ago  (edited)

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

  1. Login to http://steemnova.intinte.org on Chrome 65.0.3325.109 using Android 8.1
  2. Click on Marketplace in Left Menu
  3. Locate a Transaction costing 0 Resources
  4. Click 'Buy Now!'

TESTING ENVIRONMENT

  • OS: Android 8.1
  • Browser: Chrome 65.0.3325.109
  • App Version: 1.8.0

RECORDING OF THE BUG

FreeMarketError.gif

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

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

I think that you should add it also on the github. I've fixed this one (PR is in review)

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.

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]