sentanos / roblox-bots

This project is no longer maintained, please consider this instead: https://github.com/sentanos/roblox-js-server
17 stars 28 forks source link

Invalid Promotion Permissions Error #26

Closed JohnWT closed 7 years ago

JohnWT commented 7 years ago

I seem to be getting an error with receiver.php and getRoles.php while attempting to use changeRank.

I am consistently receiving the "Invalid promoting permissions" error while testing with Postman. I am positive that my login is correct, because the shout action works flawlessly. Yes, the bot has proper permissions to change ranks because it owns the group. Is there something obvious that I am overlooking?

Here are the errors that are showing up in my error_log file: [06-Nov-2016 15:56:39 America/Denver] PHP Notice: Undefined offset: 0 in receiver.php on line 39 [06-Nov-2016 15:56:40 America/Denver] PHP Warning: Invalid argument supplied for foreach() in getRoles.php on line 11

Pictures of the code for receiver.php and getRoles.php, my Postman setup, and my group setup follow below:

receiver

5dbb7a72fe6d110fb6cf6dee4a7c6b9f

postman

07c210765c4b094cd673acba0f301244

sentanos commented 7 years ago

This may be caused by 9e2c3cc, which I honestly did not have time to test. I have reverted this in 247fba0 to a version which I know is stable. Please download the repo again (specifically the getRoles.php file) and update your installation. Let me know if this fixes your issue.

The fact is this project is pretty dead, I will officially deprecate it soon but I'll say now that I encourage users to check out my node bots instead, which are up-to-date, maintained, and overall much more reliable.

JohnWT commented 7 years ago

Worked perfectly, thank you! I'll be sure to check out the node bots as well. Sorry for the late response.