I enabled visitors and tried to migrate data from statistics and disable statistics module through visitors. The following error appeared, nothing got imported and statistics is still active. The link on the status report to migrate data (again) is not appearing.
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'today' at row 1: INSERT INTO "XXX_visitors_counter" ("entity_type", "entity_id", "total", "today", "timestamp") SELECT "s"."nid" AS "entity_id", "s"."totalcount" AS "total", "s"."daycount" AS "today", "s"."timestamp" AS "timestamp", 'node' AS "entity_type" FROM "XXX_node_counter" "s"; Array ( ) in Drupal\visitors\Form\StatisticsMigrateForm::insert() (Zeile 116 in /path/to/drupal/web/modules/contrib/visitors/src/Form/StatisticsMigrateForm.php).
(i replaced my database prefix and the path to drupal)
Issue fork visitors-3503014
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
rajdip_755This issue is occurring due to the mismatch in field ordering, fixed that in the MR !209 .
Please review the MR. Thanks!
Comment #9
bluegeek9 commentedComment #10
drupalbubb commentedWorks for me. Thanks!
Comment #12
bluegeek9 commentedUpdating credits.