Error: "you-need-to-create-login-page-in-page"

In another thread, the solution outlined was to create a page “login”. Which I did!

I received the same error.

From the functions.php I went to the code and attempted to verify inclusion of the postmeta data. This is not showing up in the postmeta table.

I believe, this might be a problem with the latest updates to WP & BP. Any solutions, greatly appreciated.

Thanks,

David

////////////////////////////////////////////////////////////////////////////////

// get members-login slug

////////////////////////////////////////////////////////////////////////////////

function get_members_login_slug() {

global $wpdb;

$get_page_login = $wpdb->get_var(“SELECT post_id FROM $wpdb->postmeta WHERE meta_value = ‘page-template-members-login.php’ AND meta_key = ‘_wp_page_template'”:wink:;

$get_page_login_slug = $wpdb->get_var(“SELECT post_name FROM $wpdb->posts WHERE ID = ‘$get_page_login'”:wink:;

if(!$get_page_login_slug) {

echo ‘you-need-to-create-login-page-in-page’;

} else {

echo $get_page_login_slug;

}

}