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?
@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.
Could you tell me what appears?
Thread Starter
ascdev
(@ascdev)
Snapshot of the results screen.
The row of headers matches the CSV file OK.
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.
@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.
@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.
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.
We have improved the way the plugin shows the results.
Update to the latest version and tell me!