Make WordPress Core

Opened 3 years ago

Last modified 2 years ago

#54320 new defect (bug)

There are no more thumbnails for uploaded PDFs

Reported by: 10rjulienk21's profile 10rjulienk21 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.8.1
Component: Media Keywords:
Focuses: Cc:

Description

My current WP configuration

  • PHP / MySQL version: 7.4
  • Theme used: Camp Maine of TAM’S TRADING POST (no longer maintained)
  • Extensions in place: activated: Akismet - BackWPup - contact Form 7 - Cookie Notice - Honeypot for Contact Form 7 - Ithemes Security - Post Type Switcher - SF Move Login - TablePress - WP Image Zoom - WP Maintenance Mode.

Name of the host: OVH
Site address: https://amapdlacrau.fr
Problems encountered:
The latest .PDF files uploaded to the media library have a generic file icon and no longer display the small thumbnail unlike older files. Clicking on the icon no longer opens the image of the 1st page of the file.
Everything I did that didn't work to fix the problem:

  • Create PDFs with different tools; Microsoft, Do PDF, ApowerPDF ...
  • Install WordPress version 5.8.1
  • Downgrading the PHP version from PHP 8 to PHP 7.4 This fixed the problem with the imagik module, declared absent by the site health check in version 8, but not the thumbnail problem.
  • Use an upload plugin: File Manager
  • Use thumbnail regeneration plugins: Regenerate Thumbnails and Force Regenerate Thumbnails.

I have not tested: use a media management plugin instead of the media library
I note that the function for generating the thumbnails of the PDF files has stopped working when the theme is no longer maintained and the PHP version is the same. Only the version of WordPress has changed

Change History (4)

#1 @SergeyBiryukov
3 years ago

  • Component changed from General to Media

#2 @codekraft
3 years ago

Maybe this is related to ghostscript and ImageMagick 6 - policy.xml?

  • make sure to update Ghostscript >=9.24
  • you need to search for this file /etc/ImageMagick-6/policy.xml and uncomment the pdf line

Pdf preview image generation was disabled before ImageMagick 7.0.6 because has security implications https://imagemagick.org/script/security-policy.php

Version 0, edited 3 years ago by codekraft (next)

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


2 years ago

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


2 years ago

Note: See TracTickets for help on using tickets.