Finding which functions were called

The plugin called Query Monitor(https://srd.wordpress.org/plugins/query-monitor/) will help you.Also if you write your own theme,you should know which functions are called depends on the page you are viewing.

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