Unable to open site shell due to special characters

Open site shell error and not opening


Repeated on a virtual machine


System Details

  • Local Version: 10.2.0+7022

  • Operating System (OS) and OS version: Windows 11 26H2


When I try and open site shell, I get this error and it doesn’t open in the correct folder:

I suspect this might be a bug with brackets in my username/profile directory?

Hey @rob.nicholson! You might be right about the brackets. Are you able to create a test user without them and see if that works?

Yes, appears to be related to my username with a bracket in it - it’s derived from my M365 email address which has a display name of “Rob Nicholson (Malt)”. I created a local account called it.support and that worked fine.

How do I go about raising a bug report. Is it on GitHub? Guess I could look :wink:

Would be good to get it fixed as access to WP_CLI can be useful. Is there a way to launch this manually in the meantime?

Later… so yes, there’s a bug section here but when I opened it, there was an (old) post about what is possibly a similar problem:

Special characters not supported on Windows username/password - Bugs - Local Community

Thank you for testing and verifying that @rob.nicholson! I’ve changed your post here to a Bug and I’ll share it with the team. We used to have some other bugs with Windows + Special Characters around site creation but that was resolved. It looks like this is a different bug still lingering. We’ll take a look but I don’t have any ETA to provide on when this will be addressed so for now you might have to use another user or other workarounds for SSH work.