When the site have urls too long, the update breaks.

It shows an error like
PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'url' at row 1: INSERT INTO {ga_stats_count} (nid, url, metric, timeframe, count) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => 8363 [:db_insert_placeholder_1] => realy_long_url

The url column is created with 128 characters. I suppose that 1024 or 2048 would be better, since there is not a default maximum url size

This error was preventing the views to display the correct result: https://www.drupal.org/node/2298737#comment-9637473

Comments

marcelovani’s picture

Status: Active » Closed (duplicate)