Plugin admin panel JavaScript Broken

Removing the null paramaters fixed the problem:

$attachments = get_children(array(
    'post_type'     => 'attachment',
    'post_mime_type'    => 'image',
));

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