I was getting this warning: `PHP Warning: Creating default

I was getting this warning:

PHP Warning: Creating default object from empty value in [my file system]/wp-content/plugins/live-stream-widget/live-stream.php on line 1090

I am running WP 4.2.2, Live Stream Widget v., PHP 5.5.24

I determined that there were some entries that did not have "post_content" properties at all (I don't know why), so I modified the code starting at line 1089 in live-stream.php with the following:

if (strlen($post_item->post_excerpt)) {
    if ( isset ( $post_item->post_content ) ) {
        $post_item->post_content = $post_item->post_excerpt;
    } else {
        $post_item = (object) array_merge( (array)$post_item,
 array( 'post_content' => $post_item->post_excerpt));

This seemed to resolve the issue for me. I don't know if this is how you'd like to resolve it, or if I just need to fix some data, but I thought I would pass it along as a possible solution.


Art Smith