[wp-trac] [WordPress Trac] #52568: "response is not a valid JSON response" when uploading certain PDF

WordPress Trac noreply at wordpress.org
Thu Feb 18 12:45:56 UTC 2021


#52568: "response is not a valid JSON response" when uploading certain PDF
--------------------------+-----------------------------
 Reporter:  borjagq       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  5.6.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When uploading certain PDF files -either through the media library or
 through the post editor- an error message appears saying "response is not
 a valid JSON response". In appearance, it seems like the file was not
 successfully uploaded, but once the page is refreshed the file appears in
 the library as if no error had occurred.

 I have tried these problematic PDF files on several WordPress
 installations -all of them running WP 5.6.1- and the wrongful behavior
 happens in all of them. However, not all PDF files cause this issue. It
 seems to be some sort of error caused by these problematic PDFs in
 combination with Wordpress.

 I have tried to revalidate these PDFs using Acrobat, but the error keeps
 appearing. This makes me believe that there's no problem with bad PDF
 formatting.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52568>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list