wordpress-mobile / wordpress-mobile/WordPress-Android
Posting/Editing: cannot create new post after selecting a hidden site using the site switcher
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 3.2k
- Forks
- 1.4k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 69
Description
Steps to reproduce:
- Open the app.
- Go to My Sites at the bottom left
- Choose Switch Site.
- If you don't already have any hidden sites, tap the more menu at top right and hide one of the sites.
- Hit the search icon on the top.
- Tap the text input box and search for a hidden site.
- Tap a hidden site to choose.
- See the site is now the current site.
- Tap new post button at the bottom.
Props @kraftbj for providing the steps to reproduce. 😍
Result: I cannot create a post and two error notices appeared. (29s)
This blog is hidden and couldn't be loaded. Enable it again in settings and try again.
An error occurred when loading the post. Refresh your posts and try again.

Tested with WPAndroid alpha-200 on Pixel 3 Android 10.
Note: when I tested, sometimes I was able to create a new post and sometimes I couldn't. I think this is because sometimes a site visibility change takes place after selecting a hidden site with the site switcher and sometimes it doesn't.
Most of the time, the logs indicate that the site visibility was updated. I spotted one Volley error in one session that seems to be about the post not being able to be created though. I am not sure why it only appeared in some of the sessions, regardless of whether or not the new post button worked.

(internal reference: p4k3M4-2BP-p2#comment-2107 cc @kraftbj @maxme)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure through My Sites, Switch Site, hidden-site search, and the New Post button on Android. Start by reviewing the site-switcher and post-creation flow alongside the session logs, then verify that selecting a hidden site consistently allows a new post without either error notice.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100