• Resolved nathaniel45

    (@nathaniel45)


    Hello,

    I have activated the Privacy Tab and when I tested “Download your data” the link I was emailed does not work. https://{thedomain}.org/login/?action=confirmaction&request_id=10332&confirm_key=vGiaO75nCixPWXNuWZhq

    I’m not able to resend because the request button is no longer shown. and it states “A confirmation email has been sent to your email. Click the link within the email to confirm your export request.”

    Is there a fix?
    I’m using UM version 2.5.1

Viewing 13 replies - 1 through 13 (of 13 total)
  • @nathaniel45

    I tested the export at my site with UM 2.5.3 and all the steps works OK.
    The Request Data button is possible to press a second time with a new email received.

    Looks like you have a Plugin/Theme conflict.
    Try to do the download data request with another user.

    First look in your browser web console if you have any JavaScript errors.

    Read this guide about conflict testing:

    https://docs.ultimatemember.com/article/96-how-to-do-a-plugin-theme-conflict-test

    If you still have this issue after the conflict test enable PHP Debug and test the download user data request.

    https://docs.ultimatemember.com/article/1751-enable-debug-logging

    You will probably get a PHP log file with notices and errors: /wp-content/debug.log

    Post the content of this file here in the Forum and we can give you the PHP error explanation.

    Thread Starter nathaniel45

    (@nathaniel45)

    Where is the action=confirmaction handled?

    Thread Starter nathaniel45

    (@nathaniel45)

    I have updated UM to the latest version, turned off all the plugins, changed themes, even ran Query Monitor plugin. No errors and still will not work. At first I thought this was part of UM but see it’s part of WordPress. I’m still on version 5.8.4.

    Thread Starter nathaniel45

    (@nathaniel45)

    updated to WP 6.1.1 and still does not work.

    @nathaniel45

    Have you seen this guide about WP exporting data:

    https://www.ads-software.com/support/article/tools-export-personal-data-screen/

    Are you using WP-mail or SMTP?
    Try to switch to SMTP to get a secure email transport.

    https://docs.ultimatemember.com/article/116-not-receiving-user-emails-or-admin-notifications

    My test was made with SMTP by SendGrid.

    Thread Starter nathaniel45

    (@nathaniel45)

    @missveronicatv

    I do use SMTP. There was no error. I thought it wasn’t working but it is. What’s not working is the link that UM sets to confirm. The link sent from UM is https://domain/login/?action=confirmaction&request_id=10346&confirm_key=1eWcnMw29Ep6A6Jrppzs

    When I click on it I’m taken to the account login page for UM but all it shows is title “Account Login” and then my profile pic and 2 links “Your Account” and “Logout”. when I tested on another site that does not use UM the link is to wp-login.php and it shows text that I have confirmed.

    So what do I do to get it to confirm or at least state it has in UM?

    @nathaniel45

    Can you look at your cPanel if there are settings for a tool called “ModSecurity Web Application Firewall” or ask your web hosting support if they use “ModSecurity”.

    If “ModSecurity” is active, disable “ModSecurity” for your site’s pages.

    Thread Starter nathaniel45

    (@nathaniel45)

    @missveronicatv
    so I found the issue. I had set a custom login url using add_filter a few years ago when I set this site up. I did not want people using the wp-login.php page since UM is used. So do you know of a way to get it to confirm on another page then wp-login.php?

    • This reply was modified 2 years, 2 months ago by nathaniel45.

    @nathaniel45

    Have you seen this guide about “Replace WP native login URLs”

    https://docs.ultimatemember.com/article/1337-replace-wp-native-login-urls

    Thread Starter nathaniel45

    (@nathaniel45)

    @missveronicatv

    I have code like this to change the login path. I just replaced what I used with the example in your link. The same issue remains, the confirmation path is changed as well and it will not do the confirmation on the /login/ page only the wp-login.php page. I want to block access to the wp-login.php which I do using WP Cerber Plugin so I need a way to handle the Export Personal Data comfirmation on the /login/ page. OR leave the wp-login.php page un blocked and get the link provided in the Export Personal Data comfirmation email to be correct to the wp-login.php page.

    Thread Starter nathaniel45

    (@nathaniel45)

    Ok I programed a fix in my themes function file. Thanks for your input.

    add_action( 'um_logout_after_user_welcome', 'my_logout_after_user_welcome', 10, 1 );
    function my_logout_after_user_welcome( $args ) {
         $request_id =  (int) $_GET['request_id'];
        if( $request_id != 0 ){
            do_action( 'user_request_action_confirmed', $request_id );
            echo '</br>';
            echo _wp_privacy_account_request_confirmed_message( $request_id );
        }
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    Plugin Support andrewshu

    (@andrewshu)

    Hello @nathaniel45

    Did you solve your issue? Can I close this ticket?

    Thank you.

    Thread Starter nathaniel45

    (@nathaniel45)

    add_action( 'um_logout_after_user_welcome', 'my_logout_after_user_welcome', 10, 1 );
    function my_logout_after_user_welcome( $args ) {
         // your code here
        if ( isset( $_GET['action'] ) && $_GET['action'] == 'confirmaction' &&  isset( $_GET['request_id'] ) && isset( $_GET['confirm_key'] ) ) {
            $request_id =  (int) $_GET['request_id'];
            if( $request_id != 0 ){
                $key        = sanitize_text_field( wp_unslash( $_GET['confirm_key'] ) );
                $result     = wp_validate_user_request_key( $request_id, $key );
                if ( !is_wp_error( $result ) ) {
                    do_action( 'user_request_action_confirmed', $request_id );
                    echo '</br>';
                    echo _wp_privacy_account_request_confirmed_message( $request_id );
                }
            }
        }
    }
    

    Cleaned up the code a bit more.

    You may close the ticket.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Download your data’ is closed to new replies.