• Resolved clarkd

    (@clarkd)


    Hi,

    I have recently setup a site using Profile Builder but have come across a bug.

    The website field is not saved correctly when registering, but is saved when editing your profile.

    It appears that when you register, the website is saved to the user’s metadata with key: user_url. However user_url is a property of the user and not the metadata.

    Line1 157 of email-confirmation.php is as follows:

    update_user_meta( $user_id, 'user_url', $meta['user_url'] );
    
    If you add the following immediately after this, it works as expected.

    wp_update_user(array(‘ID’ => $user_id, ‘user_url’ => $meta[‘user_url’]));

    As mentioned when editing your profile it currently works as expected, this is because PB uses the wp_update_user function correctly here (Line 439 of class-formbuilder.php).

    I’ve modified the plugin for now, but could get an official fix for this please?

    Dave

    https://www.ads-software.com/plugins/profile-builder/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello Dave,

    Please submit a support ticket here: https://www.cozmoslabs.com/support/ with this issue.

    Also my suggestion would be not to modify the plugin’s core because when you will update, the modifications will be lost.

    Best regards,

    Thread Starter clarkd

    (@clarkd)

    Hi Teodor,

    Thanks for your reply. Yes I understand the implications of modifying the plugin core however we need to launch this site into production and couldn’t do so with the bug still present.

    I’ll submit and ticket and look forward to hearing back from your team soon.

    Dave

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Website not saved on registration’ is closed to new replies.