Open iamgiygas opened 8 years ago
The module works fine now, other than when I try to unban people using ulx unsban
L 09/08/2016 - 19:53:12: Lua Error: [ERROR] addons/sban/lua/ulx/modules/sban.lua:308: attempt to get length of a function value
[ERROR] addons/sban/lua/ulx/modules/sban.lua:308: attempt to get length of a function value
Unfortunately, I don't have any gmod servers to develop this addon anymore. I had a look and this problem would require me to debug with a server.
Line 308 is supposed to return a number from a synchronous sql query, I'm guessing this has failed and causes the issue.
Are you using the correct sql libraries that's used in this release?
If you need a server, I can host one for you to test stuff on. I have pmysql, tmysql, and mysqloo all installed correctly. Everything works but unbanning from ingame or console, even unbanning from the site works.
L 09/01/2016 - 22:00:50: Lua Error: [ERROR] addons/sban/lua/ulx/modules/sban.lua:356: attempt to index upvalue 'database_sban' (a nil value)
[ERROR] addons/sban/lua/ulx/modules/sban.lua:356: attempt to index upvalue 'database_sban' (a nil value)
Does this mean that it can't connect to the database?
EDIT: It looks like it is, according to another line that states that, but it's not working and the domain for our site is correct, is CloudFlare messing it up?