Comments turned off, but ‘Leave a reply’ link still there [duplicate]

Maybe you have forgotten to wrap the comments_popup_link() with if ( comments_open() )

if ( comments_open() ) :
  comments_popup_link( [...] );
endif;

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