WordPress Error custom taxonomy on post update term_taxonomy_id always 0

Solution:

 if someone have the same error, check that your table “wp_term_taxonomy” has “term_taxonomy_id” as auto-incremental, primary and unic options 🙂