wp_redirect hangs, but returns true

wp_redirect() does not exit automatically and should almost always be followed by exit.

Have you tried adding an exit after wp_redirect? It could be as simple as that

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