WordPress current post functions inside loop doesn’t work anymore, are they incompatible with php 8.0?

WordPress current post functions inside loop doesn’t work anymore, are they incompatible with php 8.0?

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