'Add friend' in 2.1...
 
Notifications
Clear all

'Add friend' in 2.1.7 gets "An error occurred" response

2 Posts
2 Users
0 Reactions
757 Views
(@dustin1138)
Posts: 21
Eminent Member
Topic starter
 

Hey folks, it seems like you can't add a friend in the current version, 2.1.7. I tested this with the demo scene where I created 3 test users. When I go the the "My Friends" menu and try to add a friend it responds with "An error occurred." Here's the log: {"success":false,"message":"An error occurred","errors":[]}.

If I type in the player's name I get the correct response of "You cannot add yourself as contact." Or if I type in an invalid player name then I get the correct response of "This user does not exist." So, the problem seems to be limited to just trying to add a valid player to your friend's list.

 
Posted : 06/04/2016 12:40 am
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Sorry it was a misconfiguration, to be able to play correctly that screen you should have FRIENDS_REQUIRE_ACCEPT set to FALSE in your /lib/config.php, it will be set to FALSE by default as well from next release (if you need acceptance for friendship instead of direct add, then you should pass eContactType.Request to AddContact and LoadFriends to send and retrieve friendship requests).

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 09/04/2016 8:19 pm
Share: