WordPress.org

Ready to get started?Download WordPress

Forums

WP doesn't read anymore the_post_thumbnail - and it doesn't use the resized thum (18 posts)

  1. utnalove
    Member
    Posted 1 year ago #

    Hi, it all worked fine for years. But in the last post it stopped working.

    In wp-admin/options-media.php there are different sizes.

    I use and used to upload images 600px width. The large image maximum width is 560px. The thumbnail/featured images have always been 560px width thanks to this:

    <?php if ( has_post_thumbnail() ) {the_post_thumbnail( 'large', array('class'=>'post_thumbnail_common', 'alt' => get_the_title() , 'title' => get_the_title(), 'itemprop'=>'image' ));} ?> 
    
    <?php the_content(); ?>

    But in the last post it didn't work. WordPress instead of choosing the image justyna-05-560x373.jpg it takes justyna-05.jpg

    You can see it here and here.

    Why that?

  2. Have you changed anything in your theme>?

  3. utnalove
    Member
    Posted 1 year ago #

    That's the fact. I didn't change anything. At all :( Well... I changed something, but few weeks ago. And this problem appeared just on April 3.

    And also strange is this:
    on this post the featured image on the "edit post" window appears too big:
    http://imageshack.us/a/img845/1324/thumb1f.png

    whereas in the other posts it gets resized automatically: http://imageshack.us/a/img22/7784/thumb2ip.png

    And this for sure doesn't have anything in common with the theme.

    It really seems to be to be a WP bug

  4. Try adding another post and check whether the problem persists.

  5. utnalove
    Member
    Posted 1 year ago #

    Yes, the problem happens also with new posts, but NOT always.
    All the photos I upload are always! 600px width.

    However for some of them it works fine, for others it does not.

    This image is 600px width. Landscape. In the "add image" window there is no size details. If I use this image it will appear in full format - wrong.
    http://imageshack.us/a/img825/2583/89412850.png

    If I use this image, that is the same format as above, it will work fine. Here you see wp shows its size.
    http://imageshack.us/a/img35/4154/18686881.png

    However I see that most of the images behave like the first one. WP doesn't show the size of the image and it shows its full size image in both posts and post edit windows.

  6. Try resizing your images with this plugin http://wordpress.org/extend/plugins/regenerate-thumbnails

  7. utnalove
    Member
    Posted 1 year ago #

    But they are resized already! WordPress already generated all the images, small, medium and large. There is no need to resize them.

    The problem is that wordpress is not using the resized ones!

  8. Can you check it by using another theme like twentyeleven and by disabling plugins. it will help to indentify the problem cause.

  9. utnalove
    Member
    Posted 1 year ago #

    Yes, already did that. I'ts the same.
    Other theme and/or plugin off, stil the same.

  10. Have you specified custom size for 'large' image size name ? By default it is 640px x 640px http://codex.wordpress.org/Function_Reference/the_post_thumbnail#Thumbnail_Sizes. Have you changed image sizes from media setting?

  11. utnalove
    Member
    Posted 1 year ago #

    Yes it is and the maximum size for the large image is 560px. And it is now so and it has been so for years.

    As I wrote before WP is generating the right image sizes according to the settings in wp-admin/options-media.php. But it's not using the right images.

  12. I will have to access site backend to look into this issue.

  13. utnalove
    Member
    Posted 1 year ago #

    Please tell me what info you need and I'll provide them to you. Code and screenshots.

  14. Either provide me entire theme code or provide me temporary site access.

  15. utnalove
    Member
    Posted 1 year ago #

    Ok, is twenty twelwe code ok? Because this happens also with 2012 theme. So I think the theme code won't help.

  16. utnalove
    Member
    Posted 1 year ago #

  17. Marko Heijnen
    Member
    Posted 1 year ago #

    As mentioned in the trac ticket you created it's best to provide the PHP errors you get and also contact your hosting company that you are having issues caused by their upgrade.

  18. utnalove
    Member
    Posted 1 year ago #

    Thanks, the case has been actually transferred to their system admins.

    I'll keep you all posted.

Topic Closed

This topic has been closed to new replies.

About this Topic