FPtje / DarkRP

DarkRP, a non-serious roleplay gamemode for Garry's Mod.
https://darkrp.miraheze.org
MIT License
463 stars 710 forks source link

Default F4 Menu Not working + Data loadment problem #2414

Closed kosTek closed 8 years ago

kosTek commented 8 years ago

Description of the bug

Once I join my server my job is Unassigned and mostly it says that " Your data is not loaded (...) " Also Default F4 Menu is not working, when I try to press f4 it does not work

How to make the bug happen

With data loadment problem... Once joined server / once booted the server With F4 menu.... You have to try to open Job menu and it doesnt work

Lua errors

--Data Loadment--

Did not find any errors in console mostly just this; "Your data has not yet been loaded."

--F4 Menu--

[DarkRP] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local 'jobTable' (a nil value)

  1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23
    1. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62

      Why the developer of DarkRP is responsible for this issue

Errors are in DarkRP gamemode content which means that this Might be creators fault. However with data loadment problem, even with no addons it does not Load the data... Trying to reinstall server and install everything back again doesnt help.

FPtje commented 8 years ago

When you break things, DarkRP might eventually error. That error cannot stand on its own. Always look for the earliest error.

kosTek commented 8 years ago

Alright So I check the Server console... and I found this;

[ERROR] gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:298: attempt to write a readonly database (DELETE FROM FADMIN_PRIVILEGES WHERE NAME = "user" AND PRIVILEGE = "SetAccess";)

  1. error - [C]:-1
    1. query - gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:298
    2. callback - gamemodes/darkrp/gamemode/modules/fadmin/fadmin/access/sv_init.lua:24
      1. query - gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:302
      2. fn - gamemodes/darkrp/gamemode/modules/fadmin/fadmin/access/sv_init.lua:14
      3. Call - addons/ulib/lua/ulib/shared/hook.lua:110
      4. unknown - gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:163

This is the error that pops up on server console when Server is booted.

WilliamVenner commented 8 years ago

I mean, it tells you the problem. Your database is read only.

WilliamVenner commented 8 years ago

If you're not using MySQL, change the properties of garrysmod/sv.db on your server so that it can be written (turn off Read Only)