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

Problems with Database #183

Open
wasn325 opened this issue Dec 19, 2017 · 16 comments
Open

Problems with Database #183

wasn325 opened this issue Dec 19, 2017 · 16 comments

Comments

@wasn325
Copy link

wasn325 commented Dec 19, 2017

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

@will2therich
Copy link

Hi @wasn325

What database are you using?
and what PHP version?

Ta

@wasn325
Copy link
Author

wasn325 commented Dec 20, 2017

Mysql: 5.7.20
PHP: 5.6.30

@will2therich
Copy link

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

@wasn325
Copy link
Author

wasn325 commented Dec 21, 2017

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

@will2therich
Copy link

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?

@wasn325
Copy link
Author

wasn325 commented Dec 22, 2017

@will2therich

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

@wasn325
Copy link
Author

wasn325 commented Dec 26, 2017

@will2therich Are you still here?

@will2therich
Copy link

Hi @wasn325

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

@will2therich
Copy link

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

@wasn325
Copy link
Author

wasn325 commented Dec 27, 2017

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
Copy link
Author

wasn325 commented Dec 27, 2017

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...

@devryan
Copy link
Owner

devryan commented Dec 27, 2017

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

@wasn325
Copy link
Author

wasn325 commented Dec 27, 2017

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

@wasn325
Copy link
Author

wasn325 commented Jan 3, 2018

@will2therich @devryan are you still here?

@will2therich
Copy link

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!

@wasn325
Copy link
Author

wasn325 commented Jan 24, 2018

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

3 participants