Make WordPress Core

Opened 4 months ago

Last modified 3 weeks ago

#63708 assigned defect (bug)

WP 6.8.2 - In the Media Library some images have an empty preview in both views.

Reported by: garrigan's profile garrigan Owned by:
Milestone: 6.8.4 Priority: normal
Severity: normal Version: 6.8.2
Component: Media Keywords:
Focuses: Cc:

Description

Note: This issue did not occur in the previous version.

The image is visible within "Attachment details".

The "developer tools" indicates the file size is very small. Example: 391 B, 428 B

Test environment: New installation without any changes.

I did empty the browser cache.

I have repeated the process a few times.

I can provide the images.

It should be noted that I am not an expert with WordPress. I am an unemployed IT guy who had supported on-premises Windows-based servers. The site is for my job search.

Feel free to ask for additional information.

Attachments (15)

jim-garrigan-references-2.png (8.3 KB) - added by garrigan 4 months ago.
First affected file
jim-garrigan-references-3.png (9.1 KB) - added by garrigan 4 months ago.
Second affected file
Site Health Info .txt (5.0 KB) - added by garrigan 4 months ago.
Site Health Info - Dev1 site
1-empty-media-library.png (66.9 KB) - added by garrigan 4 months ago.
2-source-images.png (47.9 KB) - added by garrigan 4 months ago.
3-selected-files.png (47.7 KB) - added by garrigan 4 months ago.
4-media-library-view-1.png (53.3 KB) - added by garrigan 4 months ago.
5-media-library-view-2.png (67.0 KB) - added by garrigan 4 months ago.
6-Screenshot 2025-07-16 at 13-29-03 Edit Media “jim-garrigan-references-1” ‹ dev1.garriganenterprises.com — WordPress.png (128.2 KB) - added by garrigan 4 months ago.
7-Screenshot 2025-07-16 at 13-29-50 Edit Media “jim-garrigan-references-2” ‹ dev1.garriganenterprises.com — WordPress.png (108.5 KB) - added by garrigan 4 months ago.
8-Screenshot 2025-07-16 at 13-30-16 Edit Media “jim-garrigan-references-3” ‹ dev1.garriganenterprises.com — WordPress.png (110.3 KB) - added by garrigan 4 months ago.
63708.png (16.3 KB) - added by Presskopp 4 months ago.
9-previous-wordpress-version-all-images-are-visible.png (1.4 MB) - added by garrigan 4 months ago.
10-contents-of-wp-content-uploads-2025-07.png (28.7 KB) - added by garrigan 4 months ago.
11-contents-1kb-files-from-wp-content-uploads-2025-07.png (65.1 KB) - added by garrigan 4 months ago.

Change History (39)

@garrigan
4 months ago

First affected file

@garrigan
4 months ago

Second affected file

#1 @Presskopp
4 months ago

  • Keywords reporter-feedback added

Hi and welcome, James,

I am unable to reproduce the issue you describe. Can you please provide more details about your environment and maybe screenshots. Thank you.

@garrigan
4 months ago

Site Health Info - Dev1 site

#2 @garrigan
4 months ago

  • Summary changed from WP 6.8.2 - In the Media Library some images have an empty preview.in both views to WP 6.8.2 - In the Media Library some images have an empty previewin both views

I uploaded both images and a text file with the site info.

#3 @garrigan
4 months ago

  • Summary changed from WP 6.8.2 - In the Media Library some images have an empty previewin both views to WP 6.8.2 - In the Media Library some images have an empty preview in both views.

@Presskopp
4 months ago

#4 @Presskopp
4 months ago

  • Keywords reporter-feedback removed

just for reference, working for me

#5 @garrigan
4 months ago

I saw your attached image. Perhaps the uploaded image files are changed by this ticket system. Does a method exist to upload the files as a zip file? I can provide access to the test environment. It is a VMware workstation snapshot.

#6 @garrigan
4 months ago

Note: Within 9-previous-wordpress-version-all-images-are-visible.png image number 30 "cement texture" is nearly the same color as the background.

Last edited 4 months ago by garrigan (previous) (diff)

#7 @garrigan
4 months ago

image 10-contents-of-wp-content-uploads-2025-07.png

The files that are 1 KB in size are blank or empty images. When I open the 1 KB files with an image viewer I do not see anything.

#8 @audrasjb
4 months ago

  • Milestone changed from Awaiting Review to 6.8.3

Hello and welcome to WordPress Core Trac,

Moving to milestone 6.8.3, pending detailed review.

#9 @garrigan
4 months ago

11-contents-1kb-files-from-wp-content-uploads-2025-07.png
I opened each 1 KB image file with a text editor.

#10 @garrigan
4 months ago

I realized it has been a while since I last imported images from an initial installation of WordPress.

It fails with 6.8 and I am successful with 6.6.

On Friday I will try each version with a fresh installation.

I will report the last successful version for which all the image files are visible.

#11 @garrigan
4 months ago

The issue does not appear within the following versions of WordPress.
6.7 good
6.7.1 good
6.7.2 good

Based on my testing, I initially see the issue within WordPress version 6.8

#12 @garrigan
4 months ago

My test environment is consistent.

I revert to the same snapshot, and I execute the same bash scripts. I only change --version=

#13 @SirLouen
3 months ago

  • Keywords needs-testing added

This ticket was mentioned in Slack in #core-test by sirlouen. View the logs.


3 months ago

#15 @monikarao
3 months ago

  • Owner set to monikarao
  • Status changed from new to assigned

#16 @monikarao
3 months ago

  • Keywords needs-testing removed

I tested this multiple times but couldn’t reproduce the issue.
OS: Mac
Browsers: Chrome and Safari

Screenshot: https://prnt.sc/SoXqa8v2ibcN

#17 @monikarao
3 months ago

  • Owner monikarao deleted

#18 @garrigan
3 months ago

Hi,
I was also importing the images via the WordPress importer. I can create an externally accessible test environment.

Last edited 3 months ago by garrigan (previous) (diff)

#19 @garrigan
2 months ago

It has been nearly two weeks since the last update to this ticket and thus I am following up on this issue.

Based on my initial information, the internet browser is not the proximate cause of the issue.

My test environment is consistent. I revert to the same snapshot, and I execute the same bash scripts. I only change --version=

The issue does not appear within the following versions of WordPress.
6.7 good
6.7.1 good
6.7.2 good

Based on my testing, I initially see the issue within WordPress version 6.8

I provided images to illustrate the issue.

To be fair to Monica, our test environments are different. Monica: (OS: Mac) -- Me: (Rocky Linux 9.5)

I can create an externally accessible test environment without third-party plugins.

Another option could be to use some type of software to allow remote viewing of my test environment while I execute the steps to illustrate the issue.

Both options would require scheduling ...

Additional details from the current test environment are shown below. The PRODUCTION environment has different specifications.

### wp-media ###

image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1810
imagemagick_version: ImageMagick 7.1.2-1 Q16-HDRI x86_64 23308 https://imagemagick.org
imagick_version: 3.8.0
file_uploads: 1
post_max_size: 512M
upload_max_filesize: 512M
max_effective_size: 512 MB
max_file_uploads: 20
imagick_limits:

imagick::RESOURCETYPE_AREA: 30 GB
imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
imagick::RESOURCETYPE_FILE: 768
imagick::RESOURCETYPE_MAP: 15 GB
imagick::RESOURCETYPE_MEMORY: 7 GB
imagick::RESOURCETYPE_THREAD: 1
imagick::RESOURCETYPE_TIME: 9.2233720368548E+18

imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, ASHLAR, AVCI, AVI, AVIF, AVS, BAYER, BAYERA, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DJVU, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FFF, FILE, FITS, FL32, FLV, FRACTAL, FTP, FTS, FTXT, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICN, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, JXL, K25, KDC, KERNEL, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MDC, MEF, MIFF, MKV, MNG, MONO, MOS, MOV, MP4, MPC, MPEG, MPG, MPO, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, QOI, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RSVG, RW2, RWL, SCR, SCT, SF3, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, SRW, STEGANO, STI, STRIMG, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YAML, YCBCR, YCBCRA, YUV
gd_version: 2.3.3
gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
ghostscript_version: 9.54.0

### wp-server ###

server_architecture: Linux 5.14.0-570.33.2.el9_6.x86_64 x86_64
httpd_software: nginx/1.29.1
php_version: 8.3.24 64bit
php_sapi: fpm-fcgi
max_input_variables: 5000
time_limit: 30
memory_limit: 512M
max_input_time: -1
upload_max_filesize: 512M
php_post_max_size: 512M
curl_version: 7.76.1 OpenSSL/3.2.2
suhosin: false
imagick_availability: true
pretty_permalinks: true
static_robotstxt_file: false
current: 2025-08-28T15:48:14+00:00
utc-time: Thursday, 28-Aug-25 15:48:14 UTC
server-time: 2025-08-28T11:48:13-04:00

### wp-database ###

extension: mysqli
server_version: 10.6.23-MariaDB
client_version: mysqlnd 8.3.24
max_allowed_packet: 16777216
max_connections: 151

#20 @jorbin
5 weeks ago

  • Milestone changed from 6.8.3 to 6.8.4

6.8.3 was a security only release. Punting though 6.8.4 is not planned as a release

#21 @riccardodicurti
4 weeks ago

I tested this issue using the official Docker environment and downgraded to version 6.8 with:

wp core update --version=6.8 --force

I wasn’t able to reproduce the issue.

@garrigan, could you please confirm whether you’re also working within a Docker environment?

Ciao from WordCamp Verona

`
### wp-core ###

version: 6.8
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /%year%/%monthnum%/%day%/%postname%/
https_status: false
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: local
user_count: 1
dotorg_communication: true

### wp-paths-sizes ###

wordpress_path: /var/www/src
wordpress_size: 102.76 MB (107747004 bytes)
uploads_path: /var/www/src/wp-content/uploads
uploads_size: 7.04 MB (7378343 bytes)
themes_path: /var/www/src/wp-content/themes
themes_size: 44.90 MB (47079974 bytes)
plugins_path: /var/www/src/wp-content/plugins
plugins_size: 332.45 KB (340424 bytes)
fonts_path: /var/www/src/wp-content/uploads/fonts
fonts_size: directory not found
database_size: 2.14 MB (2244608 bytes)
total_size: 157.16 MB (164790353 bytes)

### wp-active-theme ###

name: Twenty Twenty-Three (twentytwentythree)
version: 1.6
author: the WordPress team
author_website: https://wordpress.org
parent_theme: none
theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, widgets-block-editor, block-templates
theme_path: /var/www/src/wp-content/themes/twentytwentythree
auto_update: Disabled

### wp-themes-inactive (14) ###

Twenty Eleven: version: 4.9, author: the WordPress team, Auto-updates disabled
Twenty Fifteen: version: 4.0, author: the WordPress team, Auto-updates disabled
Twenty Fourteen: version: 4.3, author: the WordPress team, Auto-updates disabled
Twenty Nineteen: version: 3.1, author: the WordPress team, Auto-updates disabled
Twenty Seventeen: version: 3.9, author: the WordPress team, Auto-updates disabled
Twenty Sixteen: version: 3.6, author: the WordPress team, Auto-updates disabled
Twenty Ten: version: 4.4, author: the WordPress team, Auto-updates disabled
Twenty Thirteen: version: 4.4, author: the WordPress team, Auto-updates disabled
Twenty Twelve: version: 4.6, author: the WordPress team, Auto-updates disabled
Twenty Twenty: version: 2.9, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Five: version: 1.2, author: the WordPress team (latest version: 1.3), Auto-updates disabled
Twenty Twenty-Four: version: 1.3, author: the WordPress team, Auto-updates disabled
Twenty Twenty-One: version: 2.6, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Two: version: 2.0, author: the WordPress team, Auto-updates disabled

### wp-plugins-inactive (2) ###

Akismet Anti-spam: Spam Protection: version: 5.3.7, author: Automattic - Anti-spam Team (latest version: 5.5), Auto-updates disabled
Hello Dolly: version: 1.7.2, author: Matt Mullenweg, Auto-updates disabled

### wp-media ###

image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1691
imagemagick_version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
imagick_version: 3.7.0
file_uploads: 1
post_max_size: 1G
upload_max_filesize: 1G
max_effective_size: 1 GB
max_file_uploads: 20
imagick_limits:

imagick::RESOURCETYPE_AREA: 122 MB
imagick::RESOURCETYPE_DISK: 1073741824
imagick::RESOURCETYPE_FILE: 786432
imagick::RESOURCETYPE_MAP: 512 MB
imagick::RESOURCETYPE_MEMORY: 256 MB
imagick::RESOURCETYPE_THREAD: 1
imagick::RESOURCETYPE_TIME: 9.2233720368548E+18

imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DJVU, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, H, HALD, HDR, HEIC, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP
ghostscript_version: 9.53.3

### wp-server ###

server_architecture: Linux 6.10.11-linuxkit x86_64
httpd_software: nginx/1.27.2
php_version: 8.2.25 64bit
php_sapi: fpm-fcgi
max_input_variables: 1000
time_limit: 30
memory_limit: 128M
admin_memory_limit: 256M
max_input_time: -1
upload_max_filesize: 1G
php_post_max_size: 1G
curl_version: 7.74.0 OpenSSL/1.1.1w
suhosin: false
imagick_availability: true
pretty_permalinks: true
static_robotstxt_file: false
current: 2025-10-10T08:40:37+00:00
utc-time: Friday, 10-Oct-25 08:40:37 UTC
server-time: 2025-10-10T08:40:36+00:00

### wp-database ###

extension: mysqli
server_version: 8.0.40
client_version: mysqlnd 8.2.25
max_allowed_packet: 67108864
max_connections: 151

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /var/www/src/wp-content
WP_PLUGIN_DIR: /var/www/src/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: true
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: true
SCRIPT_DEBUG: true
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: local
WP_DEVELOPMENT_MODE: core
DB_CHARSET: utf8
DB_COLLATE: undefined

### wp-filesystem ###

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
fonts: does not exist

`

#22 @garrigan
4 weeks ago

Hi, I am not working within a Docker environment.

I attached the file Site Health Info.txt when I created the ticket. It is the third attachment.

Link to the Site Health Info.txt file:
https://core.trac.wordpress.org/attachment/ticket/63708/Site%20Health%20Info%20.txt

#23 @garrigan
4 weeks ago

Feel free to reach out to me with additional questions or concerns.

#24 @garrigan
3 weeks ago

I repeated the same test with the current version of WordPress 6.8.3. The issue exists in the current version of WordPress 6.8.3.

Note: See TracTickets for help on using tickets.