WordPress.org

Ready to get started?Download WordPress

Forums

EWWW Image Optimizer
[resolved] optipng path: gifsicle path: pngout path: ALL BLANK (37 posts)

  1. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    Another possibility, add this code below the last:

    <?php
    echo "<br>" . shell_exec('file 2>&1');
    ?>
  2. andrebazaglia
    Member
    Posted 1 year ago #

    Hi nosilver,

    Here's the file you asked for: http://ipodschool.com/test.php

    I just copied and pasted the content of your first code. you also need the second one or this one is enough?

  3. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    That one looks good andre. We'll do the second one with some modifications:

    <?php
    echo shell_exec('file 2>&1') . '<br>';
    echo shell_exec('file /var/www/html/wp-content/ewww/optipng 2>&1') . '<br>';
    echo md5_file('/var/www/html/wp-content/ewww/optipng') . '<br>';
    echo shell_exec('file /var/www/html/wp-content/ewww/gifsicle 2>&1') . '<br>';
    echo md5_file('/var/www/html/wp-content/ewww/gifsicle') . '<br>';
    ?>
  4. andrebazaglia
    Member
    Posted 1 year ago #

    Hi,

    As you asked, it's here: http://ipodschool.com/test1.php

  5. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    serkis, as you might have seen on another thread, this plugin does not work for websites hosted with iPage. They will not allow binaries to be run on the shared servers. bluehost and dreamhost are excellent alternatives.

  6. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    andrebasaglia, we found the problem. The solution is to install 'file' (a program for determining mime-types). We use it to make sure someone isn't attempting to run a script instead of an actual binary. You must have really stripped down your CentoOS install, since it is included in the basic install.

    I didn't know you could even remove that, so I'll have to build in a check for it from now on. For now, this should do the trick:

    yum install file

  7. andrebazaglia
    Member
    Posted 1 year ago #

    Hi,

    Even though I don't remember removing 'file', I installed it, and got your plugin working again. Thank you very much, nosilver!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.