Why did permalinks setting affect the pages?

Looks like there’s a conflict with your post type key and page slug. Try changing your page’s slug to something different and see if it changes anything.

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