Skip to content

Media: "There was a problem when trying to access your media" for a site blocking XMLRPC #12793

@designsimply

Description

@designsimply

Can we detect when XMLRPC is blocked, returning 404, and display a relevant error message?

Currently, the error when trying to access media on a site with xmlrpc.php returning a 404 says there was a problem and to try again later, which is not very good advice for this case.

Steps to reproduce:

  1. Do a fresh install of WPiOS.
  2. Launch a site with access to xmlrpc.php blocked or unavailable.
  3. Verify that $site/xmlrpc.php is blocked.
  4. Install Jetpack and connect it to any WP.com account.
  5. Log in to WPiOS using the WP.com-connected account from the previous step.
  6. Go to My Sites > Media in the app.
  7. Go to Profile > Help & Support > Activity Logs > Current and save or copy the logs for reference.

Result: (1m27s) trying to open the Media Library results in the following error:

There was a problem when trying to access your media. Please try again later.

there-was-a-problem-when-tyring-to-access-your-media

Tested with WPiOS 13.5.0.0 beta (TestFlight) on iPhone 6S iOS 13.1.3 logged in as `user1017` which is the Jetpack-connected user for `raw-bengal-397.jurassic.ninja`.

Aside: I expected the app to detect and use an alternate XMLRPC endpoint in my test, but it did not.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions