WordPress.org

Ready to get started?Download WordPress

Forums

EWWW Image Optimizer
[resolved] PDF Error (5 posts)

  1. John168
    Member
    Posted 1 year ago #

    Love the plug-in but it is throwing an error on PDF files. Not a big problem but it is disturbing to my users when I have debug mode turned on. I am getting

    Notice: getimagesize() [function.getimagesize]: Read error! in /mysite/wp-content/plugins/ewww-image-optimizer/ewww-image-optimizer.php on line 1306. Unsupported file type

    It seems to show this error only on the latest PDF file. The others show “Unsupported file type” on the media library list, as I would expect.

    Thanks

    http://wordpress.org/extend/plugins/ewww-image-optimizer/

  2. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    Odd, it should show on every PDF while you have DEBUG turned on (it does for me). That said, it seems there are other issues with unsupported files in DEBUG mode that I've never paid attention to. I'll see if those can't get squeezed into the next release (I'm waiting on WP 3.5 before I release anyway).

  3. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    Ah, it seems the real issue is that pdfs have no 'metadata' so far as WordPress is concerned, so prior to activating the plugin, everything is peachy. After optimization, we store an empty filename in the meta, which tricks it into trying to run getimagesize when it shouldn't be.
    I've fixed the issue with storing empty filenames, but now there's cleanup to be done...

  4. John168
    Member
    Posted 1 year ago #

    Great. I will watch for the update.

  5. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    update released today

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.