• Resolved ascdev

    (@ascdev)


    The plugin used to work OK a month or so ago. Now, it has stopped updating existing user data.

    The csv file is read OK. It reports the fields from the header row OK.
    But it fails to import and update an existing user with new metadata.

    WP and plugin (1.16.3) using the latest versions.
    Plugin is being used on a multisite.
    I have extended the number of fields in the CSV file from 18 to 34.

    See a test.csv file and snapshots of the import settings here:
    https://www.dropbox.com/sh/c3r2vi4wecycz7h/AABzfZpay3mnINGiCKHTjHXTa?dl=0

    Has the multisite import changed recently ?

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Javier Carazo

    (@carazo)

    Sorry but we cannot manage personal CSV like this.

    Respect to your question:

    Has the multisite import changed recently ?

    Yes, we have fixed a problem and now it is working as it is mentioned in “Documentation” tab.

    You have to create a column called ‘blogs’: if cell is empty, it won’t assign users to any blog; if cell has a value, it will be used. You have to fill it with blog_id

    Thread Starter ascdev

    (@ascdev)

    OK, thanks for that. I read the documentation, but I took it to mean it only applied to creating new users, where of course you’d need to allocate a site id.

    Anyway, I’ve added an extra column ‘blogs’ to my CSV file and populated with the blog_id.
    But, the metadata for an existing user is still not being imported and updated.

    Any other suggestions?

    Plugin Author Javier Carazo

    (@carazo)

    @ascdev,

    Which metadata is not imported? This is really strange.

    Thread Starter ascdev

    (@ascdev)

    Nothing is being imported.
    None of the users, none of the metadata.

    Plugin Author Javier Carazo

    (@carazo)

    Could you tell me what appears?

    Thread Starter ascdev

    (@ascdev)

    Snapshot of the results screen.

    The row of headers matches the CSV file OK.

    Plugin Author Javier Carazo

    (@carazo)

    It seems you are importing existing users and you have set to no update existing users.

    So nothing is done.

    Thread Starter ascdev

    (@ascdev)

    No. I have the setting to Update existing users = Yes. &? Update roles = No.

    See options settings here

    I have even tried turning this off and back on again.

    Plugin Author Javier Carazo

    (@carazo)

    @ascdev,

    Really really strange :s

    If CSV is correct and settings are correct it should work.

    Thread Starter ascdev

    (@ascdev)

    Well this is even more strange.

    I have tried to use the plugin on both a single site (fresh installation of WP and the plugin) and my multisite.
    Different browsers.
    These sites are on different hosting platforms.
    I have tried 3 different CSV files with different column names.
    I have tried adding new users and updating existing users.

    None seem to update existing user data nor create any new users.

    Perhaps this could be an issue with my local system?? Are there are any specific debugging/checks I can make to track this down? I am very happy to work within the code.

    Plugin Author Javier Carazo

    (@carazo)

    @ascdev,

    No, this is so strange that I cannot understand from here what can be creating this problem.

    I have no a formal checklist to do, but play with importer.php to see how the code execute.

    Thread Starter ascdev

    (@ascdev)

    OK, I have found the problem.

    I have found that a key alert (user will be skipped) is not being shown.
    Line 230/231 of Importer.php
    The quotes around the “%s” in the error string means the final alert string is malformed and so fails to display the alert.

    It appears that my import is failing because it does not handle having an empty ‘role’.
    But that’s a problem for another day ..

    I can now at least import my data and move forward.

    Thread Starter ascdev

    (@ascdev)

    .. also Line 238/239 for a similar alert.

    Plugin Author Javier Carazo

    (@carazo)

    Thanks for your debug.

    I have to test it to avoid problems with alerts.

    Surely a new way of debugging would be much better than alerts.

    Let me think it and we will do.

    Plugin Author Javier Carazo

    (@carazo)

    We have improved the way the plugin shows the results.

    Update to the latest version and tell me!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Import stopped working recently’ is closed to new replies.