Can’t use get_the_terms after applying a pre_get_posts on a tax archive

Can’t use get_the_terms after applying a pre_get_posts on a tax archive

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