get_pages can’t load pages with custom post types

Are you trying to get WordPress to return content from multiple post types with that function call? e.g. pages and custom_post_type content?

If so, you should switch to get_posts and specify the post types as an array:

$pages = get_posts([
  'post_type' => ['page', 'custom-post-type']
]);

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