Question: I'm trying to interpret this action hook name: 

```
ws_plugin__s2member_pro_before_sc_authnet_form_after_shortcode_atts

```

What is meaning of BEFORE and AFTER in this hook name? Do the underscores mean anything? 

It seems that the hook name contains two function names, `sc_authnet_form` and `shortcode_atts`, that are connected by BEFORE and AFTER words.

Answer: 
Adding below code to `wp-config.php` file will solve your problem:

```
if(is_admin()) {
   add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
   define( 'FS_CHMOD_DIR', 0751 );
}

```

Above is quick fix I found on Wordpress support but problem is with permissions.

[For details please follow link](https://wordpress.org/support/topic/unable-to-locate-wordpress-content-directory-wp-content?replies=15)

Please check you permissions: 

All FILES should have permissions set to 644

All DIRECTORIES (i.e. folders) should have permissions set to 755

[For Correct file Permissions](https://stackoverflow.com/questions/18352682/correct-file-permissions-for-wordpress)

Thanks!
Also had this error and it was because of server FTP and NAT configuration and I was updating WordPress via FTP. Changing the WP update page to use the IP address of the web server instead of the domain name of the web site solved the problem.