Tommy228 / tttdamagelogs

Damagelogs and RDM Manager for Trouble in Terrorist Town (a Garry's Mod gamemode)
GNU General Public License v3.0
57 stars 73 forks source link

oldlogs.lua attempt to index global 'mysqloo' (a nil value) #316

Closed John-H-Smith closed 6 years ago

John-H-Smith commented 6 years ago

After enabling mysql saving and putting in my mysql-data, the following error is shown at version tttdamagelogs-3.1.0:

[ERROR] addons/tttdamagelogs-3.1.0/lua/damagelogs/server/oldlogs.lua:23: attempt to index global 'mysqloo' (a nil value)
  1. unknown - addons/tttdamagelogs-3.1.0/lua/damagelogs/server/oldlogs.lua:23
    2. include - [C]:-1
      3. unknown - addons/tttdamagelogs-3.1.0/lua/damagelogs/server/init.lua:23
        4. include - [C]:-1
          5. unknown - addos/tttdamagelogs-3.1.0/lua/autorun/damaglog_autorun.lua:20

Any help would be appreciated

ZachPL commented 6 years ago

Your mysqloo connection isn't set up correctly, do you have the corresponding mysqloo gmod plugin installed? That error means it can't find the plugin needed to connect to the database.

MinIsMin commented 6 years ago

Caused by not having mysqloo installed. Either install it or use MySQLi. If it still throws errors, please comment.