(5P) Media Library: generic error appears when uploading an item that exceeds the site storage limit

Steps to reproduce:

  1. For a WordPress.com Simple site, go to My Sites > Site > Media.
  2. Add items until you run out of space.
  3. Upload a new item that exceeds the site storage limit.
  4. Observe the error message that appears.

Result: I expected to see a warning about going over storage capacity, but I see a generic error instead. (11m58s)

1 file could not be uploaded because an error occurred while uploading.

1-file-could-not-be-uploaded-because-an-error-occurred-while-uploading

Tested using Safari 13.1 macOS 10.15.4 on WordPress.com Free site gotravelrewards.blog logged in as testuser0313 unproxied.

This may be a regression, see #4172 (comment) and #4333.

Please also be aware of localization, see #42921.

3 thoughts on “(5P) Media Library: generic error appears when uploading an item that exceeds the site storage limit

  1. The inserter is rendered and inserted fine. The issue is that something appears to cause the header to rerender. When the header rerenders, the element is gone — it’s not part of the React tree.

    This was a volatile solution to begin with and we’re hitting an expected issue.

    If you add a debugger statement after this line you can see the inserter is clearly inserted:

    render( <PostContentBlockAppender />, blockInserterContainer );

Comments are closed.