Attempt to read property “full_name” on null
-
Version 2.1.6 has the following PHP warning clogging up our logs:
Attempt to read property "full_name" on null in <path>/plugins/instagram-widget-by-wpzoom/class-wpzoom-instagram-widget.php:462
That line reads:
<img src="<?php echo esc_url( $avatar ); ?>" alt="<?php echo esc_attr( $user_info->data->full_name ); ?>" width="42" height="42"/>
At the top of the
display_items
method which contains this line you’re defininguser_nfo
because you’re not sure$user_info
exists? Probably need to add a line there to prevent this issue.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Attempt to read property “full_name” on null’ is closed to new replies.