• I’m working with a new WP install (from the Ubuntu 14.04 repository) using the Hiero theme (https://bootstrap-it.com/wordpress). I can load images from the gallery to show up within a post, but the featured image won’t display on the home page.
    Apache tells me that I’m getting a 404 on just the image…but that’s because, for some reason, WP is looking for the wrong file:

      `bootstrap-it.com:80 – – [24/Jan/2016:00:17:15 -0500] “GET /wordpress/wp-content/uploads/wordpress-ubuntu-235×175.jpg HTTP/1.1” 404 20422 “https://bootstrap-it.com/wordpress/” “Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0”

    The actual file name is wordpress-ubuntu.jpg, but for some reason WP thinks it’s called wordpress-ubuntu-235×175.jpg. To confirm this, I created a file of that name in the uploads directory and it loaded – although with those incorrect dimensions.
    Does anyone know what is messing with the filenames and how I can stop it?
    Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)
  • I tried editing the name to only wordpress-ubuntu.jpg and that worked perfectly. See Image.
    Link
    1) If you are using jetpack photon try disabling it.
    2)Register your own Custom Dimensions for featured image

    add_image_size('my_feature_image', 450, 250, true);
    and call it in yout theme
    <?php the_post_thumbnail('my_feature_image'); ?>

    in your functions.php

    Thread Starter dlanced

    (@dlanced)

    I tried editing the name to only wordpress-ubuntu.jpg and that worked perfectly

    Thanks. But I don’t want to have to manually edit the filename for each image I use for every post I’m ever going to publish. Is there any way to stop WP from changing the name in the first place?
    I’m not using Jetpack Photon…

    read this maybe helpful!
    Click here

    Thread Starter dlanced

    (@dlanced)

    Hi Chirag,
    That is useful. I now believe that part of the problem was that WP didn’t have write permissions to the uploads directory, so the resized images weren’t being created in the first place.
    I think I understand it better and have it under control now.
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP looking for the wrong image file name’ is closed to new replies.