WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 9 months ago

#45860 closed defect (bug) (reported-upstream)

Error message when upload pdf file

Reported by: linhlbh Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.0.2
Component: Media Keywords:
Focuses: Cc:

Description

On the Gutenberg Blocks
It happens when I insert a pdf file to image block (Image -> Media Library -> Upload files -> Select a pdf file).
Next, I view post then it will appear error notice when I turn on debug.
Image:
https://www.dropbox.com/s/g0o9wavjfds9bqk/Screenshot%20from%202019-01-08%2016-17-12.png?dl=0

Thanks

Attachments (1)

Screenshot from 2019-01-08 16-17-12.png (646.2 KB) - added by linhlbh 3 years ago.

Download all attachments as: .zip

Change History (4)

#1 @joemcgill
3 years ago

  • Keywords reporter-feedback added

Hi @linhlbh, thanks for reporting this!

The image block doesn't support PDF uploads by default, so I'm not sure how to reproduce this bug. Can you tell me what browser you're using and if there are any other plugins or modifications on your site that might be affecting this?

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


9 months ago

#3 @antpb
9 months ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

This issue has been reported upstream and is being worked on in the Github issues list: https://github.com/WordPress/gutenberg/issues/18593

For that reason I am going to close this to eliminate the possibility of more than one person working on the same issue. I also have an idea of how to fix this so will be jumping in on the Gutenberg side to find a way to resolve it! :D thank you so much for your report. I've left a comment in the Github issue asking that you receive props when this is solved as you've helped us identify paths forward.

Thanks for your first ticket!

Note: See TracTickets for help on using tickets.