[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 14:07:51 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 | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by johnbillion):
* keywords: => reporter-feedback
Old description:
> 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.
New description:
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.
--
Comment:
Thanks for the report @borjagq . Are you able to upload the PDF files
somewhere and link to them here? As long as there's no sensitive
information in them of course.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52568#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list