when looping through custom post data not appearing

found the solution the problem was the “posts_per_page” it made my website crash on that specific section
and also in wp-config.php
added

define( 'WP_MEMORY_LIMIT', '256M' );

and it solved my problem

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