GamePanelX-V3 icon indicating copy to clipboard operation
GamePanelX-V3 copied to clipboard

Problems with Database

Open wasn325 opened this issue 8 years ago • 16 comments

I am gettings these Error messages.

game setup:

Failed to query for games: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'gpx.d.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

creating a server: Failed to query for games: Expression #8 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'gpx.n.ip' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

when I log in:

Login Failed: Failed to query for plugins: Expression #1 of ORDER BY clause is not in SELECT list, references column 'gpx.plugins.name' which is not in SELECT list; this is incompatible with DISTINCT

wasn325 avatar Dec 19 '17 16:12 wasn325

Hi @wasn325

What database are you using? and what PHP version?

Ta

will2therich avatar Dec 20 '17 09:12 will2therich

Mysql: 5.7.20 PHP: 5.6.30

wasn325 avatar Dec 20 '17 11:12 wasn325

You seem to have the Setting in sql sql_mode=only_full_group_by are you able to change this? https://stackoverflow.com/questions/23921117/disable-only-full-group-by

will2therich avatar Dec 21 '17 09:12 will2therich

Changed it and it works. Thank you :)

But if I try to make a Template this happenes: Failed: Failed to insert template and I don't know the reason

wasn325 avatar Dec 21 '17 14:12 wasn325

Hmm @wasn325

That seems to be an error when the template is inserted into the database. Could you try reinstalling the panel to ensure the database has been created correctly?

will2therich avatar Dec 22 '17 10:12 will2therich

@will2therich

There is only a problem: Error: Failed to create user: Field 'last_updated' doesn't have a default value

wasn325 avatar Dec 22 '17 11:12 wasn325

@will2therich Are you still here?

wasn325 avatar Dec 26 '17 11:12 wasn325

Hi @wasn325

My apologies, Ive been trying to figure out what can cause this. I will have a look through the code.

will2therich avatar Dec 27 '17 10:12 will2therich

@wasn325 Are you able to use php7 and use my php7 branch? https://github.com/will2therich/GamePanelX-V3/tree/PHP7.0

will2therich avatar Dec 27 '17 10:12 will2therich

The Problem is not PHP. I tested freemysqlhosting.net and it worked, but I do not want anyone to have access to the data

wasn325 avatar Dec 27 '17 18:12 wasn325

Ou and your php7 Branch has a problem at adding a server: Failed: Failed to insert server: Field 'simplecmd' doesn't have a default value

And if I add a template the sites is like frozen : starting...

wasn325 avatar Dec 27 '17 20:12 wasn325

The current code base hasn't been tested much on anything past Percona/MySQL 5.6. Past that the defaults do change - after @will2therich fix, @wasn325 did you cleanly drop the database and reinstall the panel from scratch? If not it'd have half it's stuff not properly setup

devryan avatar Dec 27 '17 20:12 devryan

I dropped the tables and the database and created a new one, reinstalled it and so on...

wasn325 avatar Dec 27 '17 20:12 wasn325

@will2therich @devryan are you still here?

wasn325 avatar Jan 03 '18 22:01 wasn325

Hi @wasn325

Sorry for the late reply (I help for free nothing to do with GPX!) Can you possible give me a DB dump from your install? And log the issue in the issue tracker on my repo?

Thanks!

will2therich avatar Jan 24 '18 17:01 will2therich

@will2therich here? https://github.com/will2therich/GamePanelX-V3/issues

wasn325 avatar Jan 24 '18 19:01 wasn325