WordPress.org

Ready to get started?Download WordPress

Forums

Uploading images fails -- Read error in image.php (12 posts)

  1. phnk
    Member
    Posted 5 years ago #

    Dear all,

    I am getting the following error lines, not documented in the sticky:

    Warning: getimagesize() [function.getimagesize]: Read error! in
    /home.10.16/myblog/www/blog/wp-admin/includes/image.php on line 143
    >
    Warning: getimagesize() [function.getimagesize]: Read error! in
    /home.10.16/myblog/www/blog/wp-admin/includes/image.php on line 17
    >
    Warning: imageantialias(): supplied argument is not a valid Image resource
    in /home.10.16/myblog/www/blog/wp-admin/includes/image.php on line 44
    >
    Warning: getimagesize() [function.getimagesize]: Read error! in
    /home.10.16/myblog/www/blog/wp-admin/includes/image.php on line 46
    >
    Warning: Division by zero in
    /home.10.16/myblog/www/blog/wp-admin/includes/image.php on line 64
    >
    Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid
    image dimensions in
    /home.10.16/myblog/www/blog/wp-admin/includes/image.php on line 68
    >
    Warning: Cannot modify header information - headers already sent by (output
    started at /home.10.16/myblog/www/blog/wp-admin/includes/image.php:143) in
    /home.10.16/myblog/www/blog/wp-includes/pluggable.php on line 390

    It seems the first error is causing the others. It happens with all images.

    Line 143 in image.php reads:

    $imagesize = getimagesize($file);

    Any idea what's wrong here?

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    A "read error" essentially means that the file did not get uploaded. There's all sorts of reasons for this, unfortunately, we can't diagnose them. You need to look in the PHP error logs and figure out what the problem is there.

    In short, it's a PHP or webserver configuration error. Can't help you on that one, much.

  3. phnk
    Member
    Posted 5 years ago #

    Thanks for the reply; How do I read such logs please?

    (Nothing was changed on my webserver in the last months; perhaps it could be that I maxed out my space on my webhosting platform?)

  4. omgitztrey
    Member
    Posted 5 years ago #

    Thanks for the reply; How do I read such logs please?

    That really can't be answered. Different host, different log setups. And only you can tell if you maxed out the space or not.

    I assume by your message it worked before and stopped out of no where?

  5. phnk
    Member
    Posted 5 years ago #

    Absolutely, it stopped working out of nowhere and I have a huge quota at my webhost. The webhost has not updated PHP either, so I really am at a loss hereā€¦

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    How do I read such logs please?

    Yeah, see, that's one of those seemingly simple question which has a profoundly complicated answer.

    The short version is, you don't. If you're not running your own server, then you probably don't have enough access to do that. You'll have to take it up with your webhost.

  7. omgitztrey
    Member
    Posted 5 years ago #

    Did you recently upgraded or anything?

  8. phnk
    Member
    Posted 5 years ago #

    No, nothing upgraded recently.

    I'll call my webhost tomorrow, I wonder what they are going to tell me.

  9. phnk
    Member
    Posted 5 years ago #

    What I feared was going to happen, happened: the webhost blamed WordPress. Stalemate.

  10. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    Time to find a new webhost then, because a "read error" is definitely not WordPress.

  11. phnk
    Member
    Posted 5 years ago #

    I have documented the issue on the help forums at the concerned ISP.

    Someone suggested this is a consequence of an Apache update which inadvertently increased security settings, and this sounds intuitively like a good explanation.

    Now I am going to spend time on the phone with OVH, who is not being very smart about the issue, telling me instead WP is to blame (something I never seriously suspected myself).

  12. phnk
    Member
    Posted 5 years ago #

    Problem solved: The webhost suddenly decided that I had maxed out my FTP quota. Of course it took me two phone calls to get the information (the first operator told me everything was fine, accusing me and my installation to be the problem), and of course I had no means to get this information myself since their user-side FTP quota CGI script has been broken for ages.

    Now for a final rant, that's what you will get from OVH as a webhost: low-quality service with an inexistent help desk and clueless script programmers.

Topic Closed

This topic has been closed to new replies.

About this Topic