[wp-trac] [WordPress Trac] #46309: Image upload failures when using Gutenberg gallery block.

WordPress Trac noreply at wordpress.org
Wed Apr 10 17:54:51 UTC 2019


#46309: Image upload failures when using Gutenberg gallery block.
--------------------------+------------------------------
 Reporter:  talldanwp     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  5.1
 Severity:  major         |  Resolution:
 Keywords:                |     Focuses:  rest-api
--------------------------+------------------------------

Comment (by azaozz):

 Been looking at this (on and off) for the past few weeks. Unfortunately
 still can't reproduce it consistently (apart from uploading made-up 200MB
 images that always cause a timeout).

 > Many users are experiencing a "The response is not a valid JSON
 response" error when uploading images, usually caused by a timeout on the
 server.

 Wondering if we can add better error message there. As far as I see "not a
 valid JSON response" is most often caused by extra content like PHP notice
 appended to the JSON, HTTP 404, 403 or 500 error, and by a server timeout
 (connection closed). Knowing the exact cause would help to resolve this a
 lot, and also be a great addition to Site Health for WP 5.2.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46309#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list