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
Field 'location_browser_lang' doesn't have a default value In query #8853
Comments
This might be actually introduced by https://github.com/piwik/piwik/pull/8589/files as we cannot define database updates currently we should maybe remove |
@tsteur if you think it's something to investigate before 2.15.0 please move it to milestone |
Ideally we would make all columns nullable but this would be a big, long running update statement that we cannot do. As I guess we should remove |
OK to play it safe, we probably should do this. But, we can add it in 3.0 branch already, to bring best practise to the future major release. sounds good? |
We cannot let tracking fail under any circumstance, but with STRICT_TRANS_TABLES, when a plugin is disabled, and the column is NOT NULL, then tracking would fail. Fixes #8853
PR: #8930 |
This would mean we need to update all dimensions to be nullable I guess. Also we need to check possible other tables for not nullable columns and whether they will be always set. Shall we create an issue? |
Just a remark: Using |
Created an issue for this to fix the issue globally: Make all log_* tables fields NULLable to prevent errors "Field 'X' doesn't have a default value" #9231 |
Hi there,
after migrating from MYSQL to MARIADB, and having STRICT_TRANS_TABLES on, I encounter the same error as #6028.
Error query: SQLSTATE[HY000]: General error: 1364 Field 'location_browser_lang' doesn't have a default value.
Any Help would be appreciated.
Piwik version the last stable 2.14.3
The text was updated successfully, but these errors were encountered: