Is this plugin being loaded before file.php, subsequently not allowing me to use certain functions?

to make sure everything required is loaded before plugins loads, use plugins_loaded hook and initialize your plugins its callback funtion. for example:

add_action('plugins_loaded',function(){
  // initialize your plugins here.
});

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