Make WordPress Core

Opened 7 weeks ago

Last modified 6 weeks ago

#64027 new defect (bug)

Some specific image not uploading correctly on 6.8.2

Reported by: krisz768's profile krisz768 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.8.2
Component: Upload Keywords: needs-unit-tests
Focuses: tests Cc:

Description

If i upload this image o the admin it gives an error after a while.

If i use "wp_insert_attachment_from_url", it stops at the call and does not give an error or anything.

On an older version it was fine (6.7)

Attachments (2)

zrinyi_fest_szigetvar_20251115.png (1.3 MB) - added by krisz768 7 weeks ago.
the file that gives the error
Képernyőkép ekkor: 2025-09-23 10-58-17.png (480.3 KB) - added by krisz768 7 weeks ago.
The generic error

Download all attachments as: .zip

Change History (8)

@krisz768
7 weeks ago

the file that gives the error

#1 @dhavalkapadane
7 weeks ago

  • Focuses tests added
  • Keywords needs-unit-tests added

Reproduction Report
❌ Can't be reproduced.

I was able to reproduce this issue on WordPress 6.8.2.
I uploaded the problematic image directly from the Media Library and also tried using it as a featured image on a post.
In both cases, the upload failed or did not complete as expected.

Environment details:

OS: Windows NT 10.0
PHP: 8.2.23
WordPress: 6.8.2
Browser: Chrome
Theme: Twenty Twenty-Five
Screenshots:
Screenshot 1: https://tinyurl.com/2xz9syo7
Screenshot 2: https://tinyurl.com/2cft3r5s

Thanks!

#2 @jignesh.nakrani
7 weeks ago

Reproduction Report

✅ Can be reproduced.

I was able to reproduce this issue on WordPress 6.8.3.

I uploaded the provided image directly from the Media Library and also attempted to use it as a featured image on a post.

In both cases, the upload failed to complete as expected.

Environment details:

PHP: 8.2.29
WordPress: 6.8.3
Browser: Chrome
Theme: Twenty Twenty-Five

#3 @jignesh.nakrani
7 weeks ago

  • Keywords needs-patch added

While debugging, I found out this happens after #36477 ticket got merged

In more detail, this PR code causes the request to timeout https://github.com/WordPress/wordpress-develop/pull/7556/files

  • If we revert the PR code, the file upload works fine.

#4 @proxycoder23
7 weeks ago

Can you please confirm if this issue is happening with only this specific image or with other large PNG files as well? I am wondering if it might be related to the file size or the way the image is encoded. Also, since it was working in 6.7, is there a recommended workaround until a patch is available?

Thanks!

Last edited 7 weeks ago by proxycoder23 (previous) (diff)

#5 @SergeyBiryukov
7 weeks ago

  • Summary changed from Some specrific image not uploading correctly on 6.8.2 to Some specific image not uploading correctly on 6.8.2

#6 @jignesh.nakrani
6 weeks ago

  • Keywords needs-patch removed

@SergeyBiryukov @proxycoder23 I've tested with the latest code after [63448] was merged, and it has fixed the issue.

Note: See TracTickets for help on using tickets.