Taxonomy archive link from term id

you need a semicolon at the end of your last line of code:

echo $term_link;

error code: 523