WordPress.org

Ready to get started?Download WordPress

Forums

WordSocial
Warning: array_count_values() (19 posts)

  1. 2nic
    Member
    Posted 2 years ago #

    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/

  2. Tommy
    Member
    Plugin Author

    Posted 2 years ago #

    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...

  3. 2nic
    Member
    Posted 2 years ago #

    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) [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...

  4. 2nic
    Member
    Posted 2 years ago #

    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

  5. Tommy
    Member
    Plugin Author

    Posted 2 years ago #

    If you got these warnings (those in your first post), there is definitely an error somewhere in my code ;)

  6. 2nic
    Member
    Posted 2 years ago #

    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..

  7. mished
    Member
    Posted 2 years ago #

    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.

  8. Tommy
    Member
    Plugin Author

    Posted 2 years ago #

    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 ?

  9. 2nic
    Member
    Posted 2 years ago #

    hello,
    it seems revisions are disabled. i'm just trying to figure out how to re-enable them. i'll let you know

  10. 2nic
    Member
    Posted 2 years ago #

    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 ...

  11. 2nic
    Member
    Posted 2 years ago #

    oh, yes, i found it :

    define('WP_POST_REVISIONS', false);

    it is disabled with the Plugin Postie. But i need this Plugin...

  12. 2nic
    Member
    Posted 2 years ago #

    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) [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

  13. Howdy_McGee
    Member
    Posted 2 years ago #

    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).

  14. holistic2010
    Member
    Posted 2 years ago #

    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

  15. acescence
    Member
    Posted 2 years ago #

    I'm getting the same array_count_values() error, revisions disabled.

    what's the fix?

  16. WACKA1
    Member
    Posted 2 years ago #

    I am getting the same array_count_values() error too.
    I am using WP3.3.1 (multisite, with post revisions turned off)

  17. Tommy
    Member
    Plugin Author

    Posted 2 years ago #

    Should be fixed in the new version.. Can you confirm ?

  18. WACKA1
    Member
    Posted 2 years ago #

    hi Tommy,

    Thanks for the update, it seems to have solved the array_count_values error but posts are still not being posted to Facebook (a facebook page). It is however posting to Twitter OK.

    Unfortunately there are no errors in the error log to see why it is not posting to Facebook, any ideas how I could debug this?

    Conor

  19. WACKA1
    Member
    Posted 2 years ago #

    Apologies, scrub that last post, it is posting to facebook OK, yay!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic