Counter module url length problem

Module name : Counter
Version: 7.x-1.0-beta3

When content url path set to : blahlah/[node:title] and length is more than 255 the problem happened.

  1. PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'url' at row 1: INSERT INTO {counter} (ip,created,url, uid, nid, type, browser_name, browser_version, platform)

temporary solution:

In your database change url VARCHAR from 255 to 800.

  1. ALTER TABLE `counter` CHANGE `url` `url` VARCHAR( 800) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''

Article Information
Article ID Categories Tags Levels Status