Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • @mexl I find the edit profile page doesn’t work properly unless the user was created using the plugin’s registration page. If you’re logging in as a user that existed prior to using this plugin the profile page shows a “not found” message. Try registering a new user via the registration page

    I resolved this by making a couple of code tweaks.

    shortcodes/class-ur-shortcode-my-account.php
    OLD:
    $redirect_url = ( isset( $_GET['redirect_to'] ) && empty( $redirect_url ) ) ? esc_url( wp_unslash( $_GET['redirect_to'] ) ) : ''; // @codingStandardsIgnoreLine
    NEW:
    $redirect_url = ( isset( $_GET['redirect_to'] ) && empty( $redirect_url ) ) ? esc_url( wp_unslash( $_GET['redirect_to'] ) ) : $redirect_url; // @codingStandardsIgnoreLine

    includes/functions-ur-template.php in function ur_login_template_redirect()
    OLD:
    if ( ( has_shortcode( $post_content, 'user_registration_login' ) || has_shortcode( $post_content, 'user_registration_my_account' ) ) && is_user_logged_in() ) {
    NEW:
    if ( ( has_shortcode( $post_content, 'user_registration_login' ) || has_shortcode( $post_content, 'user_registration_my_account' ) ) && is_user_logged_in() && 'POST' == strtoupper( $_SERVER['REQUEST_METHOD'] ) ) {

    @sharmadpk03 Perhaps this can be built in to the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)