• Resolved mlplus

    (@mlplus)


    I have one site running an old version of EME (2.1.60) that I want to update. But I have one big concern. I have 350 linked members/persons to WP users. Most of the WP users don’t have first and last name set, just username and email. So my question is what will hapen if I update to current version of EME. Because I found in the changelog below that worries me. Will my member register end up with empty names since the linked WP user have those fields empty?

    = 2.1.68 (2020/03/08) =
    * When importing members from CSV, overwrite existing members if already present
    * Keep EME and WP userinfo more in sync
    * When updating a person and changing the linked WP user, make sure no other user has that WP id. Also, refuse the update if another EME person already exists with the same lastname/firstname/email as the linked WP user
    * If an EME person is linked to a WP user, the lastname/firstname/email of the person will be replaced by those of WP and these can then only be edited via the WP profile

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Franky

    (@liedekef)

    That is a good question. I’ll see how wordpress handles this and how to get a better take on it (maybe some sync operation between the linked persons and their wp counterparts).

    Plugin Author Franky

    (@liedekef)

    Ok, did some code review and I built in some small improv (to say that the person info is taken for lastname/firstname if the one from the wp profile is empty).

    These 2 changes will help:
    https://plugins.trac.www.ads-software.com/changeset/2387233/
    https://plugins.trac.www.ads-software.com/changeset/2387234/

    I’d say: test this out in a test env first.
    Also: it won’t happen for newer persons, as there the info from the wp profile is already copied more strictly when needed.

    Thread Starter mlplus

    (@mlplus)

    Well this is very difficult to test since it’s a live website. If I update EME the bad changes will occur before I can add the testcode. The website is 4.8 Gbyte large, so to setup a testsite is days of work with backups and restores.

    My option is to manually copy all names from EME members to WP users. Then hopefully all will be ok to update? Or can it still fail?

    Plugin Author Franky

    (@liedekef)

    You don’t need to backup your entire site but only the database (which is recommended by WordPress before any update).
    The EME update itself should be just fine.

    Thread Starter mlplus

    (@mlplus)

    Well if I backup the database and updates the EME to current version I will loose all members names. Can I after that restore the database or will there be fields that are corrupted since it’s long time between the EME versions. Please advise in step by step instructions how to proceed safely without messing up my live site.

    Plugin Author Franky

    (@liedekef)

    Why would you lose your member names? But since members are linked to wp users, the best is to first correct your wp users to have correct names. Also apply the changes I mentioned above (or wait for the next release), those will help with your naming problem but not resolve it completely).
    Restoring the database after the upgrade won’t help as EME will see it and try to upgrade the database again afterwards. The database backup is just in case something goes wrong and you need to revert back to an older state.
    Why not just take a backup of the EME tables, restore that on a testserver where you have the same EME version as in prod and there then do the upgrade so you can see what happens? That is the way to go if you’re really concerned about the changes and you want to evaluate the upgrade.

    …or backup the database AND make a backup of the EME plugin folder?! That way you can restore the database AND put the older EME plugin back in, preventing a repeat database upgrade attempt.

    @mlplus – what you really want to do is make a complete copy of the site – database and WordPress folder and subfolders – and set that up as a test/development environment.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Worried about update’ is closed to new replies.