Title: [Plugin: WordSocial] Warning: array_count_values()
Last modified: August 20, 2016

---

# [Plugin: WordSocial] Warning: array_count_values()

 *  [2nic](https://wordpress.org/support/users/2nic/)
 * (@2nic)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/)
 * sorry,
 * i’m getting this error message
 * **Warning: array_count_values() **[function.array-count-values]: The argument
   should be an array in /usr/www/users/pl1448/escapades/wp-content/plugins/wordsocial/
   wordsocial.php on line 175
 * **Warning: Cannot modify header information **– headers already sent by (output
   started at /usr/www/users/pl1448/escapades/wp-content/plugins/wordsocial/wordsocial.
   php:175) in /usr/www/users/pl1448/escapades/wp-includes/pluggable.php on line
   866
 * anys idea why? its going to be great when it will work !!!
 * [http://wordpress.org/extend/plugins/wordsocial/](http://wordpress.org/extend/plugins/wordsocial/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/page/2/?output_format=md)

 *  Plugin Author [Tommy](https://wordpress.org/support/users/akisbis/)
 * (@akisbis)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/#post-2509233)
 * Could you give me more info ? When you publish the content, how many checkboxes
   do you check to push it on the social networks ?
 * I need some steps to reproduce it…
 *  Thread Starter [2nic](https://wordpress.org/support/users/2nic/)
 * (@2nic)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/#post-2509235)
 * i didn’t check any…
    but now i’ve just checked twitter and facebook and it said:
 * Warning: file_get_contents() [function.file-get-contents]: URL file-access is
   disabled in the server configuration in /usr/www/users/pl1448/escapades/wp-content/
   plugins/wordsocial/inc/wsourl.php on line 39
 * Warning: file_get_contents([http://api.bitly.com/v3/shorten?longUrl=http%3A%2F%2Fdisparates.org%2Fescapades%2Finvitation-de-milene-guermont-artiste%2F%3Futm_source%3DTwitter%26utm_medium%3Dsocial%26utm_campaign%3DWordSocial&login=akisbis&apiKey=R_ec0fccf9e8d056cd8e3a70b2fc733c64&format=json](http://api.bitly.com/v3/shorten?longUrl=http%3A%2F%2Fdisparates.org%2Fescapades%2Finvitation-de-milene-guermont-artiste%2F%3Futm_source%3DTwitter%26utm_medium%3Dsocial%26utm_campaign%3DWordSocial&login=akisbis&apiKey=R_ec0fccf9e8d056cd8e3a70b2fc733c64&format=json))[
   function.file-get-contents]: failed to open stream: no suitable wrapper could
   be found in /usr/www/users/pl1448/escapades/wp-content/plugins/wordsocial/inc/
   wsourl.php on line 39
 * Warning: Cannot modify header information – headers already sent by (output started
   at /usr/www/users/pl1448/escapades/wp-content/plugins/wordsocial/inc/wsourl.php:
   39) in /usr/www/users/pl1448/escapades/wp-includes/pluggable.php on line 866
 * actually i can’t publish anything when the plugin is activitated…
 *  Thread Starter [2nic](https://wordpress.org/support/users/2nic/)
 * (@2nic)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/#post-2509236)
 * well, actually, it’s ok now, i’m sorry. i added the twitter address and the facebook
   address, and it was ok. sorry for this…
    and many thanks for the plugin vm
 *  Plugin Author [Tommy](https://wordpress.org/support/users/akisbis/)
 * (@akisbis)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/#post-2509311)
 * If you got these warnings (those in your first post), there is definitely an 
   error somewhere in my code 😉
 *  Thread Starter [2nic](https://wordpress.org/support/users/2nic/)
 * (@2nic)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/#post-2509336)
 * yes. maybe is it due to the plugin Postie i’m using…
 * it is very strange, caus, sometimes it works, sometimes not, sometimes i have
   an error message, somentimes it is just not sending anything..
 *  [mished](https://wordpress.org/support/users/mished/)
 * (@mished)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/#post-2509345)
 * I’m getting the same error as in the original post in this thread:
 * Warning: array_count_values() [function.array-count-values]: The argument should
   be an array in /home/morebay/public_html/wp-content/plugins/wordsocial/wordsocial.
   php on line 175
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/morebay/public_html/wp-content/plugins/wordsocial/wordsocial.php:175)
   in /home/morebay/public_html/wp-includes/pluggable.php on line 866
 * I DO tick the Facebook and Twitter boxes when this error comes up.
 * The posts did get posted to FB and Twitter, anyway, so this was just an annoyance.
 * But with my recent update to WP 3.3.1 and Wordsocial 0.5.3, I get BOTH the annoyance
   and my posts don’t make it to FB and Twitter at all.
 *  Plugin Author [Tommy](https://wordpress.org/support/users/akisbis/)
 * (@akisbis)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/#post-2509363)
 * I think I figured out the problem…
 * Do you use WordPress with the revisions disabled ? That should explains that 
   issue. I have the same thing on my blog because the revisions are disabled.
 * And like you said, the posts are not published on the social networks anymore.
 * But in my local blog (for testing), the revisions are enabled and everything 
   works. So that’s the reason why I didn’t have the issue before I pushed the version
   0.5.3 :s I’m sorry for the inconvenience.
 * If I’m correct and this is the only issue, I could make a fix pretty quickly 
   for this. (I don’t have time right now but I’ll try to do it tomorrow).
 * Could you confirm me that you have revisions disabled ?
 *  Thread Starter [2nic](https://wordpress.org/support/users/2nic/)
 * (@2nic)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/#post-2509366)
 * hello,
    it seems revisions are disabled. i’m just trying to figure out how to
   re-enable them. i’ll let you know
 *  Thread Starter [2nic](https://wordpress.org/support/users/2nic/)
 * (@2nic)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/#post-2509367)
 * i’v installed a new plugin to enable / disable Post revisions and it says:
 * Error: WP_POST_REVISIONS is defined in your wp-config.php. Revision Control cannot
   operate.
 * though WP_POST_REVISIONS is NOT defined in my wp-config …
 *  Thread Starter [2nic](https://wordpress.org/support/users/2nic/)
 * (@2nic)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/#post-2509368)
 * oh, yes, i found it :
 * define(‘WP_POST_REVISIONS’, false);
 * it is disabled with the Plugin Postie. But i need this Plugin…
 *  Thread Starter [2nic](https://wordpress.org/support/users/2nic/)
 * (@2nic)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/#post-2509369)
 * well, i disabled Postie, just to try, and the problem remains the same,
 * Warning: file_get_contents() [function.file-get-contents]: URL file-access is
   disabled in the server configuration in /usr/www/users/pl1448/escapades/wp-content/
   plugins/wordsocial/inc/wsourl.php on line 39
 * Warning: file_get_contents([http://api.bitly.com/v3/shorten?longUrl=http%3A%2F%2Fdisparates.org%2Fescapades%2Fplutot-servant-du-corps-evocation-de-la-perversion-et-tenant-du-dire-ne-pas-ceder-sur-le-desir%2F%3Futm_source%3DTwitter%26utm_medium%3Dsocial%26utm_campaign%3DWordSocial&login=akisbis&apiKey=R_ec0fccf9e8d056cd8e3a70b2fc733c64&format=json](http://api.bitly.com/v3/shorten?longUrl=http%3A%2F%2Fdisparates.org%2Fescapades%2Fplutot-servant-du-corps-evocation-de-la-perversion-et-tenant-du-dire-ne-pas-ceder-sur-le-desir%2F%3Futm_source%3DTwitter%26utm_medium%3Dsocial%26utm_campaign%3DWordSocial&login=akisbis&apiKey=R_ec0fccf9e8d056cd8e3a70b2fc733c64&format=json))[
   function.file-get-contents]: failed to open stream: no suitable wrapper could
   be found in /usr/www/users/pl1448/escapades/wp-content/plugins/wordsocial/inc/
   wsourl.php on line 39
 * Warning: Cannot modify header information – headers already sent by (output started
   at /usr/www/users/pl1448/escapades/wp-content/plugins/wordsocial/inc/wsourl.php:
   39) in /usr/www/users/pl1448/escapades/wp-includes/pluggable.php on line 866
 *  [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/#post-2509425)
 * Not to re-bring this up but I’m also getting the same error when I’m uploading
   posts from a blog using wordpress tools.
 * `Warning: array_count_values() [function.array-count-values]: The argument should
   be an array in /home/content/h/o/l/holisticcara2/html/wp/cityholistic/wp-content/
   plugins/wordsocial/wordsocial.php on line 175`
 * I used the wordpress tool to import some posts. I transported all user posts 
   to admin and checked “Download and import file attachments”. Whatever it was 
   the import seemed to still work (the importing posts I mean).
 *  [holistic2010](https://wordpress.org/support/users/holistic2010/)
 * (@holistic2010)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/#post-2509470)
 * Hi there I got a similar problem,…
 * First of all thank you love your plugin, used it on 2 other sides with good success
   and no problems.
 * Here the error message which comes up:
    Warning: array_count_values() [function.
   array-count-values]: The argument should be an array in /home/realty/public_html/
   wp/wp-content/plugins/wordsocial/wordsocial.php on line 175
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/realty/public_html/wp/wp-content/plugins/wordsocial/wordsocial.php:175)
   in /home/realty/public_html/wp/wp-includes/pluggable.php on line 866
 * I’m using the “Contact Form 7” plugin. When I try to save changes to a new or
   existing form, this error message above come up. Any fixes already eventual related
   to the error messages in the post before. Any help is very much appreciated. 
   Thanks Michael
 *  [acescence](https://wordpress.org/support/users/acescence/)
 * (@acescence)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/#post-2509472)
 * I’m getting the same array_count_values() error, revisions disabled.
 * what’s the fix?
 *  [WACKA1](https://wordpress.org/support/users/wacka1/)
 * (@wacka1)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/#post-2509484)
 * I am getting the same array_count_values() error too.
    I am using WP3.3.1 (multisite,
   with post revisions turned off)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/page/2/?output_format=md)

The topic ‘[Plugin: WordSocial] Warning: array_count_values()’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordsocial.svg)
 * [WordSocial](https://wordpress.org/plugins/wordsocial/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordsocial/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordsocial/)
 * [Active Topics](https://wordpress.org/support/plugin/wordsocial/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordsocial/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordsocial/reviews/)

## Tags

 * [wp_post_revisions](https://wordpress.org/support/topic-tag/wp_post_revisions/)

 * 18 replies
 * 7 participants
 * Last reply from: [WACKA1](https://wordpress.org/support/users/wacka1/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-wordsocial-warning-array_count_values/page/2/#post-2509488)
 * Status: not resolved