-
Notifications
You must be signed in to change notification settings - Fork 11
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
columns are missing in the target DB table. Directly show suggestions on which alter table statements to run. #24
Comments
Came upon #16 which seems similar. Would be great to know sql statements for a solution before a patch. |
@TRILOS it seems there are some third party plugins used on the Matomo On-Premise. Easiest way to fix this be to install the same additional plugins in WordPress. This ALTER TABLE wp_matomo_log_visit ADD `location_provider` varchar(100) DEFAULT NULL; Unfortunately, I don't know which third party plugins specify these columns: I'll adjust the title to tweak the plugin so it directly tells you what to execute. |
On the Matomo On-Premise you could get the needed values by executing commands like Then you use like ALTER TABLE wp_matomo_site ADD `custom_css` $TYPE_FROM_SHOW_CREATE_TABLE_STATEMENT;
ALTER TABLE wp_matomo_site ADD `custom_css_file` $TYPE_FROM_SHOW_CREATE_TABLE_STATEMENT;
ALTER TABLE wp_matomo_log_conversion ADD `referer_visit_server_date` $TYPE_FROM_SHOW_CREATE_TABLE_STATEMENT; |
Thank you @tsteur for supporting this. The source database belongs to a self-hosted Matomo 3.14.0. DB table "wp_matomo_log_conversion": referer_visit_server_date DB table "wp_matomo_site": custom_css, custom_css_file I´ve created location_provider in DB table "wp_matomo_log_visit" from your recommendation. I think, the Miration plugin should pre-check wether all plugins in the source instance are activated on the target isntance (I´m afraid the are only listed in a config file, not in the db). If the check fails, it gives a warning with a list of the missing plugins with a recommendation to install them in the target or remove them from the source. An overriding with user acknowledgemt for data loss can be provided. But there´s still the question why referer_visit_server_date is required while it has not existed yet. |
Next try after creating columns mentioned before:
Changed memory_limit in php.ini from 128M to 256M and the dry run completed with "Processed ArchiveMigration at 2020-07-29 14:55:57". |
@TRILOS you could try lowering the limit of visits that are being migrated at once. Eg change in |
Just seeing the note below... if it shows "Processed ArchiveMigration at 2020-07-29 14:55:57" then it seems to have completed fully. |
@tsteur Yes, regarding the import, everything ist alright now. After this, measuring has been switched to WP Plugin. |
If I understand correctly, this issue has now been resolved with the suggestions above. I'll close this ticket, but feel free to reopen it in case the same issue happens again |
Using Matomo 3.14.0, added Migration plugin via web interface, started recommended console migration command set to insert data from active Matomo instance to a WordPress website with plugin https://wordpress.org/plugins/matomo/ v1.2.0 - command and result see below.
Before this, the WP plugin has been activated and tracking has been started.
The missing columns are not present in source database, too.
(Can I add missing columns and values manually?)
The text was updated successfully, but these errors were encountered: