WordPress randomly redirects with 301 after logging in

It seems, you have not set opcache.validate_root=1 in php.ini. It’s mandatory for
chrooted php-fpm with multiple pools (and unfortunately not very clearly documented).

RTFM:
https://www.php.net/manual/en/opcache.configuration.php#ini.opcache.validate-root

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