Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

WordPress Activity Widget Stopped Working with Vanilla 2.0.18b2 (beta 2)

This discussion is related to the <Embed> Vanilla addon.
I had to install 2.0.18b2 (beta 2) to get SSO working with WordPress but since the update the Activity Widget in WordPress doesn't work. It just spits out the following error:

Warning: Invalid argument supplied for foreach() in /home/aventure_forum/aventurebrokerforum.ca/wp-content/plugins/vanilla-forums/widgets.php on line 156

And here's the code from the widget.php file:


echo $before_widget . $before_title . $title . $after_title;
echo '<ul>';
$i = 0;
foreach ($data->ActivityData as $Activity) {
$i++;
if ($i > $count)
break;

echo '<li>'.vf_format_activity($Activity, $url).'</li>';
}
echo '</ul>';
echo $after_widget;
}


Line 156 is foreach ($data->ActivityData as $Activity) {

Any ideas as to what the problem might be?

Answers

Sign In or Register to comment.