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
Mysqli statement execute error : Incorrect string #19069
Comments
Some UTF8 strings may stop the import. Webserver's error-log reveals: [php7:notice] [...] Mysqli statement execute error : Incorrect string [...]. Converting the string to ASCII before importing fixes the issue so that importing the logs runs successfully.
This issue has been mentioned on Matomo forums. There might be relevant details there: |
A bit of background: |
May be linked to #15711 ? I would have to do |
Thx again @sgiehl for the pointer - I think I can go on my own now, since |
This should to the trick:
This may take a long time! Note that it is not enough to only change the DEFAULTS like with:
(hoped for this to only take effect on newly inserted data, but that's not the way it is proposed to work (tested it)). Note also that you may need to update all other |
@dr0i There is actually a command to perform all the required (database) changes to do this: |
Mysql ended up with :
Didn't thought of having enough space left on device for temporary mysql files:
My comment was obviously wrong:
because I only had a look at the mount where the matomo db resides. I close this issue here because this is |
Importing logs using
matomo/misc/log-analytics/import_logs.py
sometimes breaks. Webserver's error log reveals a[php7:notice] [...] Mysqli statement execute error : Incorrect string [...]
.Searched issues here with similar problems, like e.g. #11136.
Matomo: 4.8.0
Mysql: Ver 8.0.25 for Linux on x86_64 (made sure to have
innodb_file_per_table=ON
and usingutf8mb4
as described in #9785)Found a solution at https://forum.matomo.org/t/error-in-piwik-tracker-error-query-sqlstate-hy000-general-error-1366-incorrect-string-value-xd0--xd0-xb2-xd1-x82-for-column-name-at-row-1-in-query-insert-into-piwik-log-action/21800.
If
$name = iconv('UTF-8', 'ASCII//TRANSLIT', $name);
is put beforematomo/core/Tracker/Model.php
Line 187 in f8267df
Don't have clue about
php
re impact of thaticonv
considering performance or if it breaks showing all/some UTF-8 URLs in matomo - but this may give a good hint what to do meanwhile fixes my problem (until the next matomo update).The text was updated successfully, but these errors were encountered: