Simple Redirect but getting the right code?

Change line 1323 of your screenshot with the following:

<li><a href="https://wordpress.stackexchange.com/questions/127615/<?php echo bbp_get_user_profile_url( get_current_user_id() );?>">Your Profile</a></li>

You can change “Your Profile” with different text if you like.

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