Using str_replace on the_content and the_excerpt, but not working on archive index pages

Using str_replace on the_content and the_excerpt, but not working on archive index pages

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