When you see a successful log notification, it should read something like this: “Success: Upsert Salesforce [Salesforce object/id] (WordPress user with ID of [WordPress id]).” If so, I would recommend that you check what is happening with the user ID mentioned. For example, if the ID was 151853, there should be a record you can view at https://yoursite/wp-admin/user-edit.php?user_id=151853.
If such a record doesn’t exist, there’s clearly an error happening that the plugin is not seeing. If you have access to your site’s database, you might also try searching the wp_users table for that ID.
If there’s no record in your database of the ID that the log entry reports, I think it’s possible that there might be PHP or MySQL errors the plugin was unable to detect, and you should check into your server logs.
Thank you for your prompt response, Jonathan.
LOG message on create:
Success: Update WordPress user with ID of [WP ID] (Salesforce [objectName] Id of [Salesforce
ID)
1. I’m not receiving a ‘create’ log like I am for the corresponding post, just a log with update user #ID.
2. Searching the ID returns an invalid user ID error.
3. No error logs in wp/error-logs or Cpanel=>metrics=>errors (It’s very likely I’m looking in the wrong place)
4. phpMyAdmin table does not create a wpny_users entry. But it is creating a wpny_object_sync_sf_object_map row for the POSTS using the same ID it references in the logs for the user Update.
Thank you for your time.
It does seem like the plugin is confused and it perceives that a user has been created when it hasn’t, and so it then perceives that it has been able to update the user.
I’m inclined to think it’s giving you a false positive. It would be nice to find out why it isn’t throwing an error. There’s not much I can say unless you can find out why the false positive is happening, so I’ll suggest a few possibilities:
1. Make sure debug mode is turned on in the plugin settings. It will create a lot of additional log entries, but maybe it’ll add something helpful.
2. Reduce the fields on the fieldmap to the essentials (I think user_login is the only field that is absolutely required).
3. Uncheck any prematch fields, in case that is causing an issue.
4. Make sure the triggers are set correctly on the fieldmap (you should at least have Salesforce Create checked)
If none of this works, you might want to check the function that the plugin uses to create new WordPress users and do some manual error logging of your own. This might be time consuming, but it will let you figure out what step is failing, if there is one. Here are the relevant lines of code on GitHub: https://github.com/MinnPost/object-sync-for-salesforce/blob/master/classes/class-object-sync-sf-wordpress.php#L926-L1013