Description
Impacted plugin
Jetpack
Quick summary
Jetpack UI crashes with React error and a blank page when trying to disconnect a non-admin user
Steps to reproduce
- Create a self-hosted site, e.g. on Jurassic Ninja, and connect Jetpack
- Log in as another, non-admin user, and on the
my-jetpack
page connect that user to your WP.com user account - Now click "Disconnect" on that page. My expectation was that I'm going to disconnect the account from WP.com, becoming a purely local user again, and maybe have the chance to connect as another user on WP.com.
A clear and concise description of what you expected to happen.
My local account is disconnected from the WP.com one, and I have an opportunity to connect as another WP.com account.
My intent was not to disconnect the entire site, I'm not an Admin or Owner in the first place. Just the one user account.
What actually happened
React crashes and I see blank page:
![Screenshot 2023-12-08 at 12 52 52](https://private-user-images.githubusercontent.com/664258/289060678-852c4174-60bc-4b42-8243-e40c08b2a296.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NTI0MDYsIm5iZiI6MTczOTU1MjEwNiwicGF0aCI6Ii82NjQyNTgvMjg5MDYwNjc4LTg1MmM0MTc0LTYwYmMtNGI0Mi04MjQzLWU0MGMwOGIyYTI5Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQxNjU1MDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01MjdkN2VlMjg2NWZhMzI2NDRmMDYwNWI0ODU0ZTgwYjAzZmZmZjliYzNjNzJmZmNmYWQwYzlhOWU0N2VmNmY0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.soWMe_g7LtGlP8HlgWLfbVnqIe_1Tfe-nki18Pgy4nc)
The React minified error is:
Objects are not valid as a React child (found: [object Error]). If you meant to render a collection of children, use an array instead.
Impact
One
Available workarounds?
No but the platform is still usable
Platform (Simple and/or Atomic)
Self-hosted
Logs or notes
No response
Metadata
Assignees
Labels
Type
Projects
Status
Triaged