PublishPress-Planner icon indicating copy to clipboard operation
PublishPress-Planner copied to clipboard

PublishPress and user creation errors

Open ckoerner opened this issue 4 years ago • 1 comments

I have a site up and running at diff.wikimedia.org. We're using PublishPress and ideally an OAuth plugin to let folks use their existing Wikimedia accounts. Long and short, that's not working and rather than have anyone on the internet create a new account, I'm creating them by hand as requested. (diff.wikimedia.org/join) I do this by going to /wp-admin/user-new.php and adding a username and password. However, when PublishPress is installed and activated I get an error when I create the user that says, "Error: Please enter a password". If I deactivate PublishPress, the account creation is successful.

Expected Behavior

Have a WordPress site PublishPress installed and activated Create a new user User account is created

Current Behavior

Have a WordPress site PublishPress installed and activated Create a new user Error: Please enter a password User account is not created. Deactivate PublishPress and it works

Possible Solution

Similar to #628 and #644, I think this is related to VIP and PublishPress not working nicely together. I was able to test my theory that it's not just a PublishPress issue with another WP site on a different host. I was able to create an account without issue.

Steps to Reproduce (for bugs)

Have a WordPress site (specifically on VIP go?) PublishPress installed and activated Create a new user Error: Please enter a password User account is not created. Deactivate PublishPress and it works

Your Environment

  • Version used: 2.2.0
  • Link to your project: diff.wikimedia.org (happy to provide an admin account for our develop site if you'd like to investigate. I really like PublishPress and want to help!)

ckoerner avatar Jul 15 '20 22:07 ckoerner

Digging into the error a little more. When attempting to create a new user with PublishPress enabled I get the following in the console:

ReferenceError: Can't find variable: $option (anonymous function) — _static:2455 each — _static:2:2908 each — _static:2:851 (anonymous function) — _static:2454 i — _static:2:27368 fireWith — _static:2:28123 ready — _static:2:29926 J — _static:2:30282

That points to this bit in profile.js

ckoerner avatar Sep 17 '20 17:09 ckoerner