Quantcast
Viewing all articles
Browse latest Browse all 20145

Error — Notice: Trying to get property of non-object

When using this on Author.php

<?php $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));?> [...]
<?php echo (types_render_usermeta_field( "about-you", array( "user_id" => $curauth->ID, "arg2" => "val2" ) )); ?>

I'm getting this error:

Notice: Trying to get property of non-object in /home/fullphat/public_html/musicbugs/wp-content/plugins/types/embedded/usermeta-init.php on line 584

Viewing all articles
Browse latest Browse all 20145

Trending Articles