Closed (fixed)
Project:
Flickr Sync
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Sep 2011 at 07:07 UTC
Updated:
23 Oct 2011 at 22:15 UTC
Hi,
If I try to update the user account to add any Twitter sync data I get the following error upon pressing submit.
PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'start_date' at row 1: INSERT INTO {flickrsync_users} (uid, nsid, identifier, start_date, tags) 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] => 1 [:db_insert_placeholder_1] => 48640969@N06 [:db_insert_placeholder_2] => Danielle Hallett [:db_insert_placeholder_3] => [:db_insert_placeholder_4] => ) in flickrsync_user_presave() (line 223 of /home/danielle/public_html/sites/all/modules/flickrsync/flickrsync.module).
Looks like the array has the right data, but fails when trying to write to the db.
No debugging other than trying it on two sites and getting the same result; I'll look into it more when I get back later.
Danielle x
Comments
Comment #1
gclicon commentedThanks reporting the issue. The D7 version of the module is still being ported from D6. If you come across a solution, we'd be more than happy to commit a patch.
Comment #2
gclicon commentedI was unable to reproduce this issue, but upon some code review and review of commits, I found that we actually fixed this issue by adding a check to the start_date field:
WIthout this check, the start_date column was being set to a non integer value if it was empty.
Closing and marking as fixed.