How to use wp_footer() on a 404 page?

get_footer() will bring footer.php, so including wp_footer() before the </body> will be more than enough in this case.

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