Getting this error on few of my post. And some of my page are already indexing with the following error.
Error on post
Warning: Attempt to read property "roles" on bool in /home1/**********/wp-content/plugins/wp-user-frontend/wpuf-functions.php on line 4663
And Code on 4663 Line,
return ( array ) $user->roles;
function wpuf_get_single_user_roles( $user_id ) {
if ( ! is_numeric( $user_id ) ) {
return false;
}
Getting this error on few of my post. And some of my page are already indexing with the following error.
Error on post
Warning: Attempt to read property "roles" on bool in /home1/**********/wp-content/plugins/wp-user-frontend/wpuf-functions.php on line 4663
And Code on 4663 Line,
return ( array ) $user->roles;