Make WordPress Core

Opened 4 years ago

Last modified 2 years ago

#52208 new defect (bug)

Favicon - Error when choosing / cropping an image

Reported by: stfa76's profile stfa76 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.6
Component: Customize Keywords: reporter-feedback
Focuses: Cc:

Description

Hi,

Steps to reproduce (using either Firefox or Chrome, latest versions in both cases):

  • WordPress 5.6 (Theme Twenty Fourteen 3.0)
  • Go to change the favicon of your theme
  • Select any image in the media library

Two issues happen from here:

  • If your image is already 512x512px then nothing happens, you can not choose the image, you get stuck in the media library.
  • If your image is not already a square one, you can crop it but when hitting "crop", an error shows up (and no issues appear in the debug console) => https://i.ibb.co/sgqhHsx/Word-Press-Favicon.jpg

I'm not sure if this issue is related to WordPress 5.6 or if it was already there before 5.6.
I'm also not sure if the theme might be related to this issue as I haven't tested other themes.

Thank you for your help.

BR,
Stephane.

Change History (3)

#1 @SergeyBiryukov
4 years ago

  • Component changed from General to Customize

#2 follow-up: @celloexpressions
3 years ago

  • Keywords reporter-feedback added

I cannot reproduce this error on a clean install of WordPress 5.7. Can anyone else reproduce this behavior? There are likely other details in your setup that trigger the issue @stfa76 - are you able to identify any specific plugins or other information that may relate to this issue?

#3 in reply to: ↑ 2 @forced1nduction
2 years ago

Replying to celloexpressions:

I cannot reproduce this error on a clean install of WordPress 5.7. Can anyone else reproduce this behavior? There are likely other details in your setup that trigger the issue @stfa76 - are you able to identify any specific plugins or other information that may relate to this issue?

Yes, I was able to reproduce this 100%, even with WordPress 5.9.3. I know it's an old ticket, but I stumbled here from Google and wanted to share my resolution. I was experiencing 1:1 the same behaviour as the OP.

It was a result of php-gd not being installed on my system. I rectified this on an Ubuntu install, for example, with:

apt-get install php-gd

and then restarted my webserver. After doing this, I could resize images and change the favicon (regardless of whether it needed to be resized or not).

Thanks to this site for pointing me in the right direction: https://bobcares.com/blog/wordpress-error-cropping-image/.

Last edited 2 years ago by forced1nduction (previous) (diff)
Note: See TracTickets for help on using tickets.