Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array shift error when broadcasting comment to facebook #161

Open
jondavidjohn opened this issue Jul 10, 2013 · 0 comments
Open

Array shift error when broadcasting comment to facebook #161

jondavidjohn opened this issue Jul 10, 2013 · 0 comments
Milestone

Comments

@jondavidjohn
Copy link
Contributor

In some instances this error is cropping up when trying to post comments to facebook

Warning: array_shift() expects parameter 1 to be array, null given in (My server's location).com/html/wp-content/plugins/social/lib/social/service/facebook.php on line 114

This looks to be caused by the php count() function returning 1 on un_countable_ values, so since we are not sure of the exact type, we need to add a is_array() check to the condition.

http://us2.php.net/manual/en/function.count.php

0b8344d

Currently tracking this fix in feature/array-shift-error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant