• Hi!

    So I’m testing this out. I do not know if littleutils is installed on my shared server, but I thought I’d try it, and I assumed that you rplugin would do a check for it and let me know if it wasn’t. As I did not get a warning or message from the plugin, I tried to optimize one image (I tried a png and a jpg). it didn’t work.

    For the png, it says “Unknown type: text/plain”

    for the jpg, it says “Bad response from optimizer”

    I guess this means that the littleutils is not installed on my shared server? maybe a quick check somehow would be useful, upon activation of the plugin?

    thanks!

    https://www.ads-software.com/extend/plugins/cw-image-optimizer/

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter Richard Archambault

    (@richardmtl)

    I was excited about this update, but it still doesn`t work for me. I get “Bad response from optimizer”. I am now officialy sad. My host doesnt know what to do anymore for me. I await your next update anxiously, and hope it’ll be the one that works for me.. Thanks for the time you’re putting into this (I read your site, seems like you got a lot on your plate!). Good luck! ??

    Plugin Author Jacob Allred

    (@zulugrid)

    Hmm. If I could temporarily get access to your site (via FTP and WordPress) then I may be able to troubleshoot the issue. If you are open to this, please contact me.

    Or you could try troubleshooting on your own. You could try modifying line 244 to include the contents of $result. This would show you what the optimizer is returning.

    You may also have to change line 220 to:
    $result = exec($command . ‘ ‘ . escapeshellarg($file) . ‘ 2>&1’);

    That will redirect stderr to stdout, in case the optimizer is giving an error message.

    Hi zulu,

    Thought you should know that Alex came up with a good solution for bulk smushing.

    https://www.ads-software.com/support/topic/plugin-wp-smushit-mass-smush?replies=16

    Then again your using an internal utility so probably wouldn’t need this fix for your plugin. But thought i should share anyway.

    Zulu if you have time or are willing, maybe we can do a teamviewer session and you can help me setup this little utils using winscp putty via ssh.

    Plugin Author Jacob Allred

    (@zulugrid)

    Moogle, this plugin also supports bulk smushing, but doesn’t require you to send all your images to a third party service. Using local utilities is much faster.

    Skipping images that are already optimized is a good idea. I’ll add that to the next version.

    I haven’t found a need for the batching feature. I’ve run this plugin against websites with thousands of images and haven’t had it timeout on me.

    There are installation instructions for CentOS and Ubuntu:
    https://www.ads-software.com/extend/plugins/cw-image-optimizer/installation/

    Are you using a different OS?

    First of all, THANKS! for the great plugin… it works great.

    In case it helps anyone, I was also getting “Bad response from optimizer” even after installing littleutils and all the dependencies.

    I looked at Apache error logs and it was saying, “PHP Warning: escapeshellarg() has been disabled for security reasons in /path_to_my_wordpress/public_html/wp-content/plugins/cw-image-optimizer/cw-image-optimizer.php on line 220”.

    I had to remove “escapeshellarg” from “disable_functions” in php.ini

    Don’t forget to restart php or apache service(s) depending on how you run php code on your server

    Plugin Author Jacob Allred

    (@zulugrid)

    Glad you like the plugin, and glad you were able to get it working!

    I’m surprised that escapeshellarg() was on your disabled_functions list. This function makes arguments to shell commands safe by escaping single quotes, and having it disabled poses more of a security risk than having it enabled.

    Thanks for taking the time to post your solution so others can benefit!

    Hi,

    I enabled the debugging as described above but still got sh: command not found. After creating a php info file, I saw, the exec path is restricted to /usr/bin with default installation of Plesk on CentOS, so standard installation to /usr/local/bin does not work out, either in path or not. So my solution was now to do a ln -s /usr/local/bin/* . inside of /usr/bin and now everything works out.

    Regards,
    Christian

    Hi all,

    The solution is use the parameter –prefix in the configure script.

    In my case the utils were installed on /usr/local/bin and the apache user didn’t had that path inside the PATH environment variable.

    So if you rerun the configure script like this:

    ./configure –prefix=/usr

    It will work like a charm.

    Regards,
    David Seocom Experts Marketing Online

    Plugin Author Jacob Allred

    (@zulugrid)

    Thanks, SultanICQ! I’ve added this information to the installation instructions (may take some time for WordPress to update the public site).

    how can i install the littleutils in a reseller account?!

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘[Plugin: CW Image Optimizer] "Unknown type" and "Bad response"’ is closed to new replies.