Images will NOT post in 3.8 WRITING size as 1px by 1px (44 posts)

  1. jefferisp7
    Posted 2 years ago #

    Hi, I think I found a solution. Removing WP-SuperCache and following this procedure allowed me to bulk upload images and retain their size data.

    Dear User,

    WP Super Cache was removed from your blog but the mod_rewrite rules
    in your .htaccess were not.

    Please edit the following file and remove the code
    between 'BEGIN WPSuperCache' and 'END WPSuperCache'. Please backup the file first!


    WP Super Cache Plugin

    I had to manually uninstall SuperCache via FTP after changing temporarily the folder to 777. It appears something in super cache is interfering with the uploads.
    I believe this was installed automatically by my host when installing the WP for this site. Pair does not use cPanel but SIM installer. Apparently the code for these host install programs may be causing trouble with 3.8?

  2. jefferisp7
    Posted 2 years ago #

    UPDATE: it appears these problems are all related to the ownership and permission issue of WordPress installs of plugins and themes. Apparently, when Pair.com uses SIM, it installs WordPress with ownership as Nobody, standard for Apache servers. But when you then use WordPress to install plugins, it writes the ownership as nobody, so images and plugins are creating folders without proper permissions.

    This isn't a problem I guess if you do everything via sftp as the owner. But it makes working within WP problematic and does not save you time.

  3. s0what
    Posted 2 years ago #

    I am having the same problem and I am not using any caching

  4. kmessinger
    Forum Moderator
    Posted 2 years ago #

    Please start your own thread.


  5. jefferisp7
    Posted 2 years ago #

    Try this: maxxemm wrote:

    I got the same problem after upgrading WP from 3.6.1 to 3.8.1.
    It looks like there was a change in wp-includes/media.php function wp_constrain_dimensions(): width and height is set to max(1, $current_<w/h> * $ratio). I have changed:
    $w = max ( 1, intval( $current_width * $ratio ) );
    $h = max ( 1, intval( $current_height * $ratio ) );
    $w = intval( $current_width * $ratio );
    $h = intval( $current_height * $ratio );
    as it was in v3.6.
    It's a hack rather than fix, so do it at your own risk.

  6. kmessinger
    Forum Moderator
    Posted 2 years ago #

    A few other have had this happen and it is always a plugin, permission or caching problem. I grabbed your image and posted it at http://test.savethecolors.com/test-of-png/

    That site is running twenty ten with no plugins.

  7. jefferisp7
    Posted 2 years ago #

    we tested with Twenty 14 and no plugins and deleted super cache and the problem still existed. We haven't updated since then.

  8. edbuun
    Posted 2 years ago #

    This is a big problem! I have exactly the same problem with one of my sites.

  9. douglasmichael
    Posted 2 years ago #

    yes I spent an hour wondering where my inserted media/pic was going, little did I know it was there just looked like a period 1px by 1px, what is the fix for this

  10. dompl
    Posted 2 years ago #

    Hi guys.

    I had the same problem and after hours spend on searching for solution decides to look into it myself.

    Basically I had 9 different thumbnail sizes set in my function.php after limiting the amount to 8 by removing once image size everything started to work as it should.

    I have no idea why, but it seem that reducing the amount of generating images helped.

  11. GWKaplan
    Posted 2 years ago #

    Hi jefferisp7 I have the same problem. Did you find any solutions?

  12. elibrarian27
    Posted 2 years ago #

    I am having the same problem as the others with the insert media file generating a 1px image. The happened to be bmp images and not jpgs, wonder if that caused the problem?

  13. elibrarian27
    Posted 2 years ago #

    Seems to me it has a problem with bitmapped images--when I'm home tonight I'll convert the bmps to jpgs and will report if that solved the problem.

  14. durtsche
    Posted 1 year ago #

    My father in law is having a similar problem. He's uploading images to the media library--using Safari (have to figure out what version he's using)-- but they are uploading as 1 pixel width and 1 pixel height. This, in turn, results in 1) no thumbnail present for the photo in media library and 2) the photo inserted into a post as width="1" and height="1". Accordingly, he's asked me to help troubleshoot. The workaround is to manually adjust the HTML code with different width/height dimensions (pixels or percentages). However, it doesn't fix the root of the problem.

    Interestingly, when he sends me the images to upload and I do it (PC / Firefox 30.0), they work fine, which makes me believe it isn't something server-side. I'm going to test and have him download firefox or chrome and see if that works. Will report more later.

Topic Closed

This topic has been closed to new replies.

About this Topic