Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Author Christian Wach

    (@needle)

    Have you upgraded the plugin via the WordPress auto-update process?
    Have you activated the plugin on both main site and network-wide?
    Any other plugins active that could be interfering?

    Cheers, Christian

    Thread Starter sharmavishal

    (@sharmavishal)

    Thanks for your reply. Highly appreciated

    Did auto update..did manual update…same issue..db is backedup…

    no. it was activated either network wide or on individual sites.

    deactivated all plugins which might be an issue..like w3tc, custom xprofile fields.

    any other way you would like me to test/check?

    Thread Starter sharmavishal

    (@sharmavishal)

    i just tested one thing..i droped the db..removed the plugin via FTP…uploaded the db again…gave the plugin not there error and plugin got deactivated…

    now when i try to activate the plugin site specific or network wide i get this error:

    Plugin could not be activated because it triggered a fatal error.

    string(143) “BP XProfile WordPress User Sync plugin: Could not update “ID” for xProfile field. SQL = UPDATE inbbp_xprofile_fields SET id = 0 WHERE id = 2059″

    Plugin Author Christian Wach

    (@needle)

    Well the auto-update might be the cause – this plugin tries to make it as clear as possible that you shouldn’t update that way, but perhaps it needs to be even clearer than it is.

    Anyway that aside, can you check the ‘wp_bp_xprofile_fields’ table and see if there are duplicate “First Name” and “Last Name” fields? If so, you’ll need to figure out which ones are the “real” ones (i.e. the ones that your actual xprofile data is attached to) and delete the ones that are unused.

    Plugin Author Christian Wach

    (@needle)

    now when i try to activate the plugin site specific or network wide i get this error:

    Plugin could not be activated because it triggered a fatal error.

    There are remnants of the plugin remaining in your DB – look for the “bp_xp_wp_sync_installed” option and remove it.

    Plugin Author Christian Wach

    (@needle)

    There are remnants of the plugin remaining in your DB – look for the “bp_xp_wp_sync_installed” option and remove it.

    I should add – remove any and all options prefixed with “bp_xp_wp_sync_”. There are three IIRC: “bp_xp_wp_sync_options”, “bp_xp_wp_sync_options_store” and “bp_xp_wp_sync_installed”. You’re going to have to reconnect your fields and data manually and set the “bp_xp_wp_sync_options” data yourself. The array is of the form array( 'first_name_field_id' => $first_name_field_id, 'last_name_field_id' => $last_name_field_id ). The instructions above should help you identify the IDs to be used.

    Thread Starter sharmavishal

    (@sharmavishal)

    yes..i might have updated the latest release automatically…any way to disable autoupdate for your plugin?

    suprisingly the backend db is perfect. there are not duplicate First Name and Last Name fields in the “bp_xprofile_fields”

    any other thing to be tried out?

    Thread Starter sharmavishal

    (@sharmavishal)

    i get the other 2 in db..not “bp_xp_wp_sync_options_store”…i deleted them both…

    as the firstname and lastname data was already there in the database i deleted the plugin and uploaded the db..

    activated your plugin again and it did create 2 additional firstname and lastname filds which i deleted. this new additiaonl 2 fields were showing both in backend and db.

    now on userprofile it does show the first name and last name but alongwith the name..thats still fine by me…

    backend when i go to a users extended profile then i see again all the fields duplicated including the firstname and lastname and other xprofile field names

    Plugin Author Christian Wach

    (@needle)

    any way to disable autoupdate for your plugin?

    It’s something I should look into, but I’d prefer BuddyPress to allow the disabling and hiding of xProfile fields instead.

    backend when i go to a users extended profile then i see again all the fields duplicated including the firstname and lastname and other xprofile field names

    There must be data somewhere in your DB that the plugin is reading (or missing) such that it’s not picking up the correct fields. From your error above, I’d assume that the correct “First Name” has (or had) ID = 2059. My guess would be that “Last Name” originally had ID = 2060. I’d work from there to find out what the data table expects the ID to be and what the value in “bp_xp_wp_sync_options” is. These all need to match – for both “First Name” and “Last Name”.

    Thread Starter sharmavishal

    (@sharmavishal)

    Thanks a lot for ur time on this. its highly appreciated. Indeed an honor for me to be interacting with you.

    front end is displaying fine so i scanned the whole db. i got this plugin installed

    https://www.ads-software.com/plugins/register-ip-multisite/

    this creates a wp_signups row in the db. this row has a “meta” coloum which has the duplicate xprofile data.

    should i delete this data or its related to your plugin?

    Plugin Author Christian Wach

    (@needle)

    this creates a wp_signups row in the db. this row has a “meta” coloum which has the duplicate xprofile data.

    should i delete this data or its related to your plugin?

    This plugin definitely doesn’t interact with the wp_signups table. BuddyPress itself does reach into that table, so it could be that this is the cause. You’ll have to play around with your database to establish whether or not that’s the case. Please let me know if it is!

    Thread Starter sharmavishal

    (@sharmavishal)

    Thanks a lot…will update this thread if i find something

    Plugin Author Christian Wach

    (@needle)

    Thank you! Let’s leave this thread open for the time-being.

    Thread Starter sharmavishal

    (@sharmavishal)

    Thanks a lot christian…just tested one more scenario..created 2 subsites with your plugin on…the main site already had First Name and Last Name fields in xprofile fields database.

    as soon as those 2 sites are created i get additional 4 fields. 2 First Name and 2 Last Name fields. i had to delete this additional 4 fields from the DB.

    Should this additional fields be created in the first place?

    Thread Starter sharmavishal

    (@sharmavishal)

    bp_xp_wp_sync_options table:

    main site

    a:2:{s:19:”first_name_field_id”;i:2055;s:18:”last_name_field_id”;i:2056;}

    2nd site

    a:2:{s:19:”first_name_field_id”;i:2058;s:18:”last_name_field_id”;i:2059;}

    3rd site

    a:2:{s:19:”first_name_field_id”;i:2569;s:18:”last_name_field_id”;i:2570;}

    sholdnt the values be the same?

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Duplicate Fields’ is closed to new replies.