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

Laravel 5.3 Mysql Strict Compatibly Issue #1046

Open
t202wes opened this issue Sep 1, 2016 · 2 comments
Open

Laravel 5.3 Mysql Strict Compatibly Issue #1046

t202wes opened this issue Sep 1, 2016 · 2 comments

Comments

@t202wes
Copy link

t202wes commented Sep 1, 2016

I'm unable to use frozennode on Laravel 5.3 using an AWS RDS Aurora server, MySql 5.6

When trying to open up the admin panel, I get this error:

PDOException·SQLSTATE[42000]: Syntax error or access violation: 1055 'database.users.first_name' isn't in GROUP BY

If I turn change:
'strict' => true,
to
strict' => false,
in /config/database.php mysql settings, it will work.

I think the new mysql strictness of Laravel 5.3 by default, does not work well with Frozennode.

What is weird, is it works on my local machine with mysql 5.7+, but on the production environment with mysql 5.6, it does not work.

@t202wes
Copy link
Author

t202wes commented Sep 1, 2016

This is really hacky, but for now I did this.

'strict' => ((isset($_SERVER['REQUEST_URI']) and (substr($_SERVER['REQUEST_URI'],0,strlen('/admin')) == '/admin'))) ? false : true,

Turning off strict when using Laravel Administrator.

There was no easy way of making this work. Many of the SQLs for Laravel Administrator are not complaint with Laravel 5.3 database strict rules.

@kzvonov
Copy link

kzvonov commented Oct 27, 2016

Thx. This helps)

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