On what point (hook) does the_/has_post_thumbnail() load?

These are included in wp-settings.php right after after_setup_theme hook and so should be available starting with init hook.

Also check if you have add_theme_support( 'post-thumbnails' ); declared in your theme, otherwise these functions won’t be included at all.

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