Support » Plugin: Imsanity » Notice when importing images using WordPress importer

  • vaidotask

    (@vaidotask)


    When importing images from website using WordPress Importer plugin, Imsanity shows notice for each imported image:
    Notice: getimagesize(): Read error! in /www/my_website/wp-content/plugins/imsanity/imsanity.php on line 127

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    Thanks for the report, I’ll check it out. Can you provide a link to the Importer plugin you are using, just to make sure I’m testing the same one?

    vaidotask

    (@vaidotask)

    Using the official WordPress importer plugin: https://wordpress.org/plugins/wordpress-importer/

    Plugin Author nosilver4u

    (@nosilver4u)

    Wow, 3 months… Anyway, circling back to this, and I can’t seem to replicate it. Were you using an S3 plugin, or anything like that which would remove the file after upload?

    UPDATE: the only other thing I could find online that causes those read errors is a lack of memory, so you might try increasing the PHP memory_limit setting if you run into that problem again.

    • This reply was modified 2 years, 9 months ago by nosilver4u.

    Yes, there was a problem with memory_limit. I didn’t even notice before starting import that some images were way over 10MBs. Would be nice if imsanity could do a check before resizing images.

    Plugin Author nosilver4u

    (@nosilver4u)

    I think the side effect of the memory_limit issue is that some images end up being imported as zero-byte files, and that’s what getimagesize() has problems with. I’ve written a check into the code for that (and a few other things), so hopefully that helps.
    Do you know if the memory_limit was causing zero-byte files on your site?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Notice when importing images using WordPress importer’ is closed to new replies.