Got this error message when trying to connect my FB account:
Warning: Attempt to assign property of non-object in /home/USER/public_html/blog/wp-content/plugins/social/social.php on line 2285
Fatal error: Cannot use object of type stdClass as array in /home/USER/public_html/blog/wp-content/plugins/social/social.php on line 2288
http://wordpress.org/extend/plugins/social/
http://wordpress.org/extend/themes/social/
OK so it's not just me then, that's good to know. I noticed the MailChimp "app" on FB does indeed get installed on FB. I tried deleting that and re-approving, but same error.
I also have the red reminders telling me to update my settings. I do, but I still get the reminders on every page in the Admin of my blog.
It seems that they don't connect at all.
I'm unsure whether it's the theme I'm using or another plugin I'm using but I don't believe I have one that's likely to conflict.
Also having issues with Facebook. The connect process never finishes. Twitter works like a charm, though.
@holling Same here, Twitter worked without a hitch, and I love the plugin. Want those FB folks to be able to do the same.
Ah, Facebook.
Same here. Anybody had any luck with this issue?
I'm guessing it's either a plugin conflict or a glitch in the code. I don't have anything else connecting to FB save for the Like/Send buttons on the blog. But I do have a problem with plugins :)
Anybody test this on a vanilla install?
MarinaDoc
Member
Posted 1 year ago #
I've the same problem. Everything is fine if I connect to Twitter, but it is impossible to FB
Rodolfo Sánchez
Member
Posted 1 year ago #
Hi folks! yesterday, for the first time I tried this plugin and I met the same problem. A shame, because the plugin is pretty good. So I decided to fix it and I did!
This is my solution:
Have to patch the following file:
wp-content/plugins/social/social.php
Replace this code (lines 2275-2300):
private function social_kses($object) {
if (($is_object = is_object($object))) {
$_object = new stdClass;
}
else {
$_object = array();
}
foreach($object as $key => $val) {
if (is_object($val)) {
$val = $this->social_kses($val);
}
else if (is_array($val)) {
$val = $this->social_kses($val);
}
else {
$val = wp_kses($val, array());
}
if ($is_object) {
$_object->$key = $val;
}
else {
$_object[$key] = $val;
}
}
return $_object;
}
And presto! Greetings to all!!!!!!!!!!
Now I've just got to figure out where it begins!
Rodolfo Sánchez
Member
Posted 1 year ago #
ttj90; in the file wp-content/plugins/social/social.php, replace the code from line 2275 to 2300 for this:
private function social_kses($object) {
if (($is_object = is_object($object))) {
$_object = new stdClass;
}
else {
$_object = array();
}
foreach($object as $key => $val) {
if (is_object($val)) {
$val = $this->social_kses($val);
}
else if (is_array($val)) {
$val = $this->social_kses($val);
}
else {
$val = wp_kses($val, array());
}
if ($is_object) {
$_object->$key = $val;
}
else {
$_object[$key] = $val;
}
}
return $_object;
}
Any tips on how to find the line 2275!?
I'm quite the inept developer
Awesome! Will give this a try tomorrow when I get home. Thanks!
Rodolfo Sánchez
Member
Posted 1 year ago #
Using a tool such as notepad++
Here is the download link ""
Rodolfo Sánchez
Member
Posted 1 year ago #
Sorry; Este es el enlace de descarga
Rodolfo Sánchez
Member
Posted 1 year ago #
Rodolfo Sánchez
Member
Posted 1 year ago #
Finally JAJAJA
Good luck!!
Thanks but it seems that there's a problem with the download link. I'll check CNET.
Rodolfo Sánchez
Member
Posted 1 year ago #
Nice one. I think that's job done.
Now to figure out why I'm constantly getting the red message on every backend page on updating the settings.
@Rodolfo: You da man! Thanks.
I got this error after tweaking the code:
{"result":"error","response":"an error occurred"}
I'd follow it again. I've not had an issue since.
Rodolfo Sánchez, you're a legend. Many thanks again.
Aha, I had updated the code while the plugin's settings page was opened. Modded code, went back to Social's settings page, connected to Facebook no problem.
Thanks again Rodolfo!
MarinaDoc
Member
Posted 1 year ago #
million thanks! you're all right!!
@Rodolfo Sánchez gracias, thank you! d
rhythmdoctor
Member
Posted 1 year ago #
Anyone know if the plugin developer is going to update this thing?
Philcomputing
Member
Posted 1 year ago #
@Rodolfo Sánchez,
I changed the file. Focebook works now. Unforunately the Twitter integration produces the following errors:
Warning: Invalid argument supplied for foreach() in /kunden/sassen.org/webseiten/phil/wp-content/plugins/social/social.php on line 2283
Fatal error: Call to a member function account() on a non-object in /kunden/sassen.org/webseiten/phil/wp-content/plugins/social/social.php on line 710