display ACF repater field in archive page

get_field() and have_rows() work with post/term ID, not the whole “queried object“. You should try $term = get_queried_object()->term_id; in line 1. Also it is unnecessery to set $term again at line 3.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)