wc_get_product_terms() throws “Notice: Undefined offset: 0”

wc_get_product_terms() throws “Notice: Undefined offset: 0”

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