Steemnova - error message on friend request

in #utopian-io7 years ago (edited)

Expected behavior

It should be possible to send friend requests to other players independent of the users language. A website should never display technical error messages to the users. (Even though it helped me find the bug in this case.)

Actual behavior

The backend returns an error saying that the language variable is not defined. Making it impossible to send a friend request to an user with another language.

How to reproduce

  1. Open Steemnova
  2. login
  3. go to the statistics page
  4. find a user from another country
  5. try to send a friend request to the user

(I'm german, if somebody wants to test it out )

Recording Of The Bug

image.png

Suggested Fix

In this line

$Friend_LNG = new Language($language);

should be replaced with

$Friend_LNG = new Language($row['lang']);

Also it should be considered to disable the debug error messages



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.
Awsome i like your post it follows our rules, Thanks for contributing and sorry for the delay.
You can contact us on Discord.
[utopian-moderator]

Thank you for your work! :)
No Problem :)

Greetings,
Martin

@mwfiae, No matter approved or not, I upvote and support you.

Nice bug description and quick fixes. Should update the game soon.
Good job!

Thank you! :)

Fun fact: I found the bug while trying to send a friend request to you (maybe you saw it in the screenshot). With the message that I hope that I can support the project further in the future! :D

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by MWFIAE from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.

1UP-Kayrex_tiny.png

You've got upvoted by Utopian-1UP!

You can give up to ten 1UP's to Utopian posts every day after they are accepted by a Utopian moderator and before they are upvoted by the official @utopian-io account. Install the @steem-plus browser extension to use 1UP. By following the 1UP-trail using SteemAuto you support great Utopian authors and earn high curation rewards at the same time.


1UP is neither organized nor endorsed by Utopian.io!

i hope that you do know that utopia is taking 25% of your rewards
look at your post in steemd.com and check for beneficiaries

account utopian.pay
weight 2,500

that is 25% of the authors rewards , that is a lot of money for some software

I hope that you know that utopian is upvoting with a massive value!
So more than 75% of my rewards are from utopian itself ;)

Also its not only software, the money goes to the moderators, etc.
They do an amazing job and deserve some rewards!

Hey @mwfiae I am @utopian-io. I have just upvoted you!

Achievements

  • WOW WOW WOW People loved what you did here. GREAT JOB!
  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Suggestions

  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!

Get Noticed!

  • Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.16
TRX 0.17
JST 0.028
BTC 69021.03
ETH 2474.01
USDT 1.00
SBD 2.42