Why is_page() returns false when visiting the static page declared as “posts page”

Why is_page() returns false when visiting the static page declared as “posts page”

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