Problem with get_the_excerpt when using an add_action(‘the_content’) containing script tags

Read this post. In your myTest_get_social() function, you need to check if the excerpt filter is active. If it is, just return the content and do nothing else:

 if(current_filter() === 'get_the_excerpt')
    return $myTest_share;

 // otherwise, do your stuff

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