• Resolved kenneth.vogt

    (@kennethvogt)


    I am attempting to customize the Twenty Sixteen theme. The only plugins I have are W3 Total Cache and Akismet and they are both presently deactivated.

    I have uploaded two images, one for the logo and one for the site icon.

    I have gone to Site Identity to customize the theme. I was able to select the already uploaded logo file just fine.

    But when I try to select the file for the site icon, the check box next to the image unchecks and the select button goes gray. The file I am attempting to select for the site icon is a .jpg file and 512x512px as the docs require.

    My uploads subdirectory has 755 permissions. I don’t know if WordPress creates a .ico file and puts it anywhere. If it does I suppose I could check the permissions there.

    So what am I missing or doing wrong?

Viewing 15 replies - 1 through 15 (of 16 total)
  • When you hit select image the media library is supposed to open. This does not happen?

    Thread Starter kenneth.vogt

    (@kennethvogt)

    The media library opens. I click on the image I want and hit “select”. The check box next to the image then unchecks and the “select” button goes gray.

    Can you send me a link to that image?

    Thread Starter kenneth.vogt

    (@kennethvogt)

    The media library opens. I click on the image I want and hit “select”. The check box next to the image then unchecks and the “select” button goes gray.

    That is expected behavior. After the screen should go back to customize, site identity.

    Your image works fine for me so we can rule that out.

    Thread Starter kenneth.vogt

    (@kennethvogt)

    I attempted to upload another image that is 640x640px. I got one step farther, to cropping. But when I clicked the button labeled “Crop Image” it responded with the error “There has been an error cropping your image”.

    Thread Starter kenneth.vogt

    (@kennethvogt)

    I am guessing that there are not correct permissions wherever it wants to put the cropped image. Where is that?

    It would go back into the media library.

    Thread Starter kenneth.vogt

    (@kennethvogt)

    So it’s not a permissions problem with the subdirectory. Other ideas?

    Thread Starter kenneth.vogt

    (@kennethvogt)

    It’s not really optimal but I got it to work by jamming the proper value into wp_option “site_icon”. I got the ID of the image in wp_postmeta.

    Working is what counts!

    I have completely identical symptoms to Kenneth. To reiterate:

    1. logo works fine with the recommended size png file

    2. when I try to select a 512×512 png file for the site icon, the check box next to the image unchecks and the select button goes gray.

    3. when I try to select a larger png file I get one step farther, to cropping. But when I clicked the button labeled “Crop Image” it responded with the error “There has been an error cropping your image”.

    All my permissions are 755 as Kenneth. Also like Kenneth I can fix the problem by setting the value for site_icon in the wp_options database table, getting the value from

    `select post_id from wp_postmeta where meta_value like ‘%mylogoname%’;
    +———+
    | post_id |
    +———+
    | 10 |
    | 10 |
    +———+
    update wp_options set option_value=’10’ where option_name=’site_icon’;`

    I’m a WordPress newbie (I’m a Django/Mezzanine dev usually) so not sure what the procedure is here in WordPress land. I’d be happy to raise a bug report and work with somebody closely on getting to the bottom of this by email/chat/earmail.

    More likely I guess is that this is part of a larger problem I have due to not having installed WordPress correctly or set up my database correctly (I am hosting on my own Linode VPS using Nginx with fastcgi and MariaDB). @kenneth.vogt did you ever get to the bottom of this?

    @gazrobertson Please start your own thread. Tagging on to an old thread will seldom get you the assistance you want.

    Try installing the PHP GD library – php7.0-gd or php5-gd.

    This thread turned up on Google, so I’m posting for posterity. Gaz’s cropping error got me to the solution, or at least what worked for me.

    I encountered the same error, both selecting an existing 512×512 image as well as attempting to crop a larger one.

    The solution was indeed to install php-gd on my self-hosted server.

    `sudo yum install php-gd

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Cannot select image to create favicon’ is closed to new replies.