Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL Issue #148

Closed
gspetrou opened this issue Jun 6, 2014 · 3 comments
Closed

MySQL Issue #148

gspetrou opened this issue Jun 6, 2014 · 3 comments

Comments

@gspetrou
Copy link

gspetrou commented Jun 6, 2014

Hey, I get this error server side every now and then and I have a completely stock PS. The MySQL connection is successful so I don't know why I get this error

[ERROR] addons/pointshop-master/lua/sv_pointshop.lua:245: attempt to index field 'DataProviders' (a nil value)

  1. GetFallback - addons/pointshop-master/lua/sv_pointshop.lua:245
  2. GetData - addons/pointshop-mysql-master/lua/providers/mysql.lua:55
  3. GetPlayerData - addons/pointshop-master/lua/sv_pointshop.lua:262
  4. PS_LoadData - addons/pointshop-master/lua/sv_player_extension.lua:106
  5. unknown - addons/pointshop-master/lua/sv_player_extension.lua:38
@adamdburton
Copy link
Owner

Are you getting this after editing a file whilst your server is running?

On Fri, Jun 6, 2014 at 2:16 AM, George notifications@github.com wrote:

Hey, I get this error server side every now and then and I have a
completely stock PS. The MySQL connection is successful so I don't know why
I get this error

[ERROR] addons/pointshop-master/lua/sv_pointshop.lua:245: attempt to index
field 'DataProviders' (a nil value)

  1. GetFallback - addons/pointshop-master/lua/sv_pointshop.lua:245
  2. GetData - addons/pointshop-mysql-master/lua/providers/mysql.lua:55
  3. GetPlayerData - addons/pointshop-master/lua/sv_pointshop.lua:262
  4. PS_LoadData - addons/pointshop-master/lua/sv_player_extension.lua:106
  5. unknown - addons/pointshop-master/lua/sv_player_extension.lua:38


Reply to this email directly or view it on GitHub
#148.

@gspetrou
Copy link
Author

gspetrou commented Jun 6, 2014

No, this seems to happen maybe every other map change. I think it is caused because the mysql lua file where all the database information is put is failing to load since this error usually occurs when the connection to the database fails.
I know the connection isn't failing since it is able to connect just fine with my other addon.

@gspetrou
Copy link
Author

gspetrou commented Jun 6, 2014

It causes your points and items not to load by the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants