Jump to content
TNG Community

Column '###ID' cannot be null


knut

Recommended Posts

After updating from v. 11.0.0 to 12.0.0 / 12.0.1 I cannot save any new records and get following error code:

 

Abfrage: INSERT INTO tng_people (personID,firstname,lnprefix,lastname,nickname,prefix,suffix,title,nameorder,living,private,birthdate,birthdatetr,birthplace,sex,altbirthdate,altbirthdatetr, altbirthplace,deathdate,deathdatetr,deathplace,burialdate,burialdatetr,burialplace,burialtype,baptdate,baptdatetr,baptplace,confdate,confdatetr,confplace,initdate,initdatetr,initplace, endldate,endldatetr,endlplace,changedate,gedcom,branch,changedby,famc,metaphone,edituser,edittime) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,"",?,"","0")
ssssssssssssssssssssssssssssssssssssssssss | I1530 | | | | | | | | 0 | 1 | 0 | | 0000-00-00 | | U | | 0000-00-00 | | | 0000-00-00 | | | 0000-00-00 | | 0 | | 0000-00-00 | | | 0000-00-00 | | | 0000-00-00 | | | 0000-00-00 | | 2018-07-23 12:13:36 | tree1 | | Knut | 

Column 'personID' cannot be null

 

I kindly ask the forum to help me to solve thes issues.

Link to comment
Share on other sites

knut, I very fortunately did not have this problem. Everything seems to be working normally after I hacked the collations in MySQL and ran the update script.  From your error message the person ID is not null, it is I1530 but I don't know what that long string of leading "s" is.

Link to comment
Share on other sites

You may need to report this to Darrin.  That query does not look quite right.

The long string of sss and ?s are part of the prepared statements that Darrin now uses

Link to comment
Share on other sites

  • 2 weeks later...
Am 24.7.2018 um 07:24 schrieb knut:

Thanks so much, tomgee & Ken, I will get in contact with Darrin.

Finally we found out that the hosting service did not run the latest PHP update. That was the reason why the prepared statements did not get supported.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...