Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter jgjh151

    (@jgjh151)

    It appears it was working because i have some members with first and last name, then latest members do not. Current version is Version 2.9.5.

    Thread Starter jgjh151

    (@jgjh151)

    What can I look for to fix this?

    Plugin Author Chad Butler

    (@cbutlerjr)

    When registering the first and last name are not in reg email

    What shortcodes are you using in the email to include these fields?

    Are you using a cache plugin and/or Woocommerce?

    Thread Starter jgjh151

    (@jgjh151)

    Using W3 Total Cache. I have login/register and user profile page excluded from caching.

    The values are not in the email, but they are also not in wp users area, so email shortcodes woudn’t change that.

    The following user registered for [blogname] (and is pending approval)
    
    username: [username]
    email: [email]
    
    [fields]
    This user registered here:
    [reglink]
    
    user IP: [user-ip]
    
    activate user: [activate-user]
    Plugin Author Chad Butler

    (@cbutlerjr)

    It is likely the database caching on W3TC that is the issue.

    Thread Starter jgjh151

    (@jgjh151)

    How can I use these two plugins on same site? Any rules I can put into caching plugin to never cache pages that use your plugin? I can’t just exclude the login/register page since the login and register form show on any page that is protected.

    Thread Starter jgjh151

    (@jgjh151)

    Plugin Author Chad Butler

    (@cbutlerjr)

    During the registration process, WP-Members uses wp_insert_user for a number of fields (those fields that would be required for any new user creation); then for the rest of the fields that would be optional, either wp_update_user is used (for the user_url value) or update_user_meta (all other fields).

    My guess is that when W3TC database caching is enabled, it changes how these functions are processed and since first_name/last_name are not handled through this function by WP-Members, the function is setting them to null.

    It may be possible to implement some changes to the registration function to handle more fields through wp_insert_user. That might solve it. I’ll have to do some research and testing before making a commitment.

    Thread Starter jgjh151

    (@jgjh151)

    So disabling db caching should fix it for now?

    Thread Starter jgjh151

    (@jgjh151)

    Excluding wp-members specific pages (user profile, register) from DB cache has worked. The issue I’ve run into is that I will never know all the pages that are blocked so I can’t add them to the DB cache exclusion.

    I need to be able to redirect all pages that are blocked to the main register/login page, then if they login, redirect back to content page and if they register, just show the normal message they see wafter registering. This way I don’t need to add every single blocked page to the DB cache exclusion.

    Thread Starter jgjh151

    (@jgjh151)

    W3 Total Cahe has a feature where you can exclude query stems. I’ve added the following, but they do not make a difference. My table prefix is sf_, I’ve also tried with default prefix of wp_.

    wp_update_user
    wp_insert_user
    wp_users
    wp_usermeta

    Plugin Author Chad Butler

    (@cbutlerjr)

    I’m not really sure about the issue with excluding query stems. Two of the examples you listed there are functions and two are db tables.

    However, if you disable the DB caching, that should resolve your issue for now.

    I’ve recoded some of the registration process for the next release (2.9.6) and it works with W3 Total Cache in testing.

    Just installed 2.9.6 and tested the “saving” of First and last name…
    no success.
    Also disabled W3 Total Cache… no succes.
    Anyone having any other idea?

    Just installed some older versions of the plugin.
    Version 2.9.1 => OK
    Version 2.9.2 => First and last name not stored during registration

    I compared the 2 versions, cannot find any clue what part of the code contains the bug… :/

    Thread Starter jgjh151

    (@jgjh151)

    Just got an email with practically no fields info even though they’re all in the users account screen. BUT the first and last name did save this time.

    Version 2.9.6

    The following user registered for My Company, Inc. (and is pending approval)

    username: john1
    email: john@mydomain2.com

    First Name:
    Last Name:
    Business Name:
    Business Phone:
    Address:
    City:
    State:
    Zip:
    E-Updates – join our mailing list:
    Terms of Service:
    Website:

    This user registered here:

    user IP:

    activate user: http://www.mydomain.com/wp-admin/user-edit.php?user_id=21

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘First and last name not saving’ is closed to new replies.