Archive filter disappears on no results?

When there are no posts, there is no post ID for get_field_object to operate with. If you read the docs for that function, you’ll see:

$post_id Specific post ID where your value was entered. Defaults to current post ID (not required). This can also be options / taxonomies / users / etc

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