Author Topic: Lua error when trying to add superadmin through console  (Read 2913 times)

0 Members and 1 Guest are viewing this topic.

Offline SilentNinja

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Lua error when trying to add superadmin through console
« on: May 15, 2016, 01:53:25 PM »
I am getting this error when trying to add superadmin through console or my server host rcon:

[ERROR] RunString:677: attempt to index a nil value
1. ZFR_PlayerSetForumGroup - RunString:677
2. fn - RunString:758
3. Call - addons/ulib/lua/ulib/shared/hook.lua:110
4. probe - addons/ulib/lua/ulib/server/ucl.lua:1030
5. tempfuncadd - addons/ulib/lua/ulib/server/ucl.lua:736
6. addUser - addons/ulx/lua/ulx/xgui/server/sv_groups.lua:47
7. call - addons/ulx/lua/ulx/modules/sh/user.lua:57
8. __fn - addons/ulib/lua/ulib/shared/commands.lua:943
9. unknown - addons/ulib/lua/ulib/shared/commands.lua:1296
10. unknown - lua/includes/modules/concommand.lua:54



[ERROR] RunString:677: attempt to index a nil value
1. ZFR_PlayerSetForumGroup - RunString:677
2. fn - RunString:758
3. Call - addons/ulib/lua/ulib/shared/hook.lua:110
4. probe - addons/ulib/lua/ulib/server/ucl.lua:1030
5. tempfuncadd - addons/ulib/lua/ulib/server/ucl.lua:736
6. addUser - addons/ulx/lua/ulx/xgui/server/sv_groups.lua:47
7. call - addons/ulx/lua/ulx/modules/sh/user.lua:57
8. __fn - addons/ulib/lua/ulib/shared/commands.lua:943
9. unknown - addons/ulib/lua/ulib/shared/commands.lua:1296
10. unknown - lua/includes/modules/concommand.lua:54


Can anyone help?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Lua error when trying to add superadmin through console
« Reply #1 on: May 15, 2016, 02:13:25 PM »
Please tell us exactly what command you're typing at rcon to attempt to make someone superadmin, including the rcon command itself if not at a direct console.
And, as asked in the template you erased before typing your question, please run "ulx version" and tell us what it reports.

Without knowing more, it looks like you have a conflicting addon or gamemode that conflicts with ULib and/or ULX.
The first two traceback lines (1 and 2) have nothing to do with ULX or ULib.
I've no idea what ZFR represents, or why a RunString would be involved. As I said, nothing to do with ULX/ULib.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline SilentNinja

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Lua error when trying to add superadmin through console
« Reply #2 on: May 15, 2016, 02:19:57 PM »
So I am using nfoservers control panel to send a command... I am typing in: "ulx adduser SilentNinja superadmin" *Without quotations and it is coming up with that error... I believe you might be right about the conflicting addon. I will check. And I am running curring ulx/ulib addons ULib v2.60d (04/30/16)
ULX v3.70d (03/20/16)
« Last Edit: May 15, 2016, 02:22:03 PM by SilentNinja »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Lua error when trying to add superadmin through console
« Reply #3 on: May 15, 2016, 02:55:30 PM »
The command is as it should be.
If you have any addons that try to tie you into a forum, remove them, restart, and try again.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: Lua error when trying to add superadmin through console
« Reply #4 on: May 15, 2016, 07:08:39 PM »
The error seems to be coming from "ZFR_PlayerSetForumGroup", also running RunString usually leads to exploits.
I cry every time I see that I am not a respected member of this community.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Lua error when trying to add superadmin through console
« Reply #5 on: May 16, 2016, 07:53:46 AM »
I'd recommend disabling all addons, then going through and adding them back in one by one while trying to add you to superadmin group again until you can find the add-on that is causing you grief. Because this is a default part of ulx, you shouldn't be getting errors unless there is a conflicting add-on.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.