WordPress.org

Ready to get started?Download WordPress

Forums

EWWW Image Optimizer
[resolved] Problem whit the optipng (47 posts)

  1. tokar86a
    Member
    Posted 1 year ago #

    I dont seams that i can install this. Or i do something wrong. should be nice if some one cold help me so i can get this right.

    I get this error:

    EWWW Image Optimizer couldn't install optipng and gifsicle in /storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/. Please adjust permissions or create the folder. If you have installed the tools elsewhere on your system, check the option to 'Use system paths'.

    But what i can see it is no wrong whit the permission.

    What can be wrong then?

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

  2. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    If you are using the latest version (1.3.6), click the Debug link at the top of the settings page, and copy and paste the entire plugin status and debug info block here.

  3. tokar86a
    Member
    Posted 1 year ago #

    Here you have it:

    Debug Info

    jpegtran path: /storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/jpegtran
    optipng path:
    gifsicle path: /storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/gifsicle
    pngout path:
    disabled functions: mysql_pconnect
    gifsicle permissions: 0755
    optipng permissions: 0755
    wp-content/ewww permissions: 0777
    user: 100069

  4. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    Can you also paste the plugin status section too?

    Lastly, if you have shell access, please try the following on the command line, and see what it says:

    /storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/optipng -v

    If you don't have shell access, put the code below in a file named ewww.php, place it in your public_html folder, then browse to http://yourwebsite/ewww.php and see what that says:

    <?php
    echo shell_exec('/storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/optipng -v');
    ?>
  5. tokar86a
    Member
    Posted 1 year ago #

    Plugin Status

    If updated versions are available below, you may need to enable write permission on the wp-content/ewww folder to use the automatic installs.
    *Updates are optional, but may contain increased optimization or security patches
    jpegtran: OK version: Independent JPEG Group's JPEGTRAN, version 9 13-Jan-2013
    optipng: MISSING Copy binary from /storage/content/69/100069/myabdllife.com/public_html/wp-content/plugins/ewww-image-optimizer/ to /storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/ or Download optipng source
    gifsicle: OK version: LCDF Gifsicle 1.68
    GD: OK   Imagemagick 'convert': OK
    safe mode: Off  exec(): OK  shell_exec(): OK  finfo: OK  getimagesize(): OK  mime_content_type(): OK
    Operating System: Linux

  6. tokar86a
    Member
    Posted 1 year ago #

    I only get a blank white site. No text or any thing.

    No i dont have shell access.

  7. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, just to make sure that code is right, try this instead:

    <?php
    echo shell_exec('/storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/gifsicle --version');
    ?>
  8. tokar86a
    Member
    Posted 1 year ago #

    I get this info: LCDF Gifsicle 1.68 Copyright (C) 1997-2011 Eddie Kohler This is free software; see the source for copying conditions. There is NO warranty, not even for merchantability or fitness for a particular purpose.

  9. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    Don't know why I didn't think of this sooner, but it is likely that your system is incompatible with the bundled version of optipng.

    Try this code in ewww.php to see if we can get the error message to be displayed:

    <?php
    echo shell_exec('/storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/optipng -v 2>&1');
    ?>
  10. tokar86a
    Member
    Posted 1 year ago #

    I only get a white page now.

  11. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    ok, we're going to attempt to find out more about your system the hard way then. Please send this info via the Contact Me link at http://www.shanebishop.net (I wouldn't recommend posting it publicly).

    <?php
    echo shell_exec('cat /etc/*-release 2>&1');
    echo "<br />";
    echo shell_exec('lsb_release -a 2>&1');
    echo "<br />";
    echo shell_exec('uname -a');
    echo "<br />";
    phpinfo();
    ?>
  12. tokar86a
    Member
    Posted 1 year ago #

    I have send you the mail. You should have it now.

  13. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, so I'm not spotting anything wrong there. I wanted to make sure libpng and zlib were installed, and they were. It appears to be red hat linux, so I may need to try and setup a dev box with RHEL or CentOS and do some testing.

    What I do want to try if you're up for it, is to have you hardcode the path to optipng, and see if it works anyway. To do that, go into the WordPress plugin editor, find the file ewww-image-optimizer.php.
    You need to find a section that looks like this which should be line number 848:

    // get the utility paths
    list ($jpegtran_path, $optipng_path, $gifsicle_path, $pngout_path) = ewww_image_optimizer_path_check();

    If you know anything about php, it is in the function named ewww_image_optimizer
    Anyway, you need to add this line directly BELOW that one:

    $optipng_path = '/storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/optipng';

    Then try optimizing some PNG's and see what happens (hopefully this is enough to trick the optimizer into working).

  14. tokar86a
    Member
    Posted 1 year ago #

    I still get this error: EWWW Image Optimizer couldn't install optipng and gifsicle in /storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/. Please adjust permissions or create the folder. If you have installed the tools elsewhere on your system, check the option to 'Use system paths'.

    But it do some thing now but it dont save any thing.

  15. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    Perhaps I'm thinking too hard. You keep getting that error, which seems to indicate that it is copying the file over, but something is failing in that process, and resulting in a corrupted optipng binary.

    From what you said otherwise, we did indeed trick the plugin into attempting to optimize the file, but it returned 'No savings' because optipng still isn't working.

    Can you put this into the ewww.php file and see what it does (you can overwrite everything else):

    <?php
    echo filesize ('/storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/optipng');
    echo "<br />";
    echo filesize ('/storage/content/69/100069/myabdllife.com/public_html/wp-content/plugins/ewww-image-optimizer/optipng');
    ?>
  16. tokar86a
    Member
    Posted 1 year ago #

    I get this error now.

    990020
    Warning: filesize(): stat failed for /storage/content/69/100069/myabdllife.com/public_html/wp-content/plugins/ewww-image-optimizer/optipng in /storage/content/69/100069/myabdllife.com/public_html/ewww.php on line 4

  17. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, so that solves mystery #1. You are still getting the warning message, because the plugin compares the 2 sizes. If they are different, it attempts to copy the bundled version to the wp-content/ewww folder. You must have moved the optipng binary, instead of copying it.
    To make that warning go away, copy (not move) the optipng file from /storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/optipng over to /storage/content/69/100069/myabdllife.com/public_html/wp-content/plugins/ewww-image-optimizer/optipng

    It still remains a mystery as to why you can run the gifsicle binary, but not the optipng binary, when they should have been compiled on the same machine. I'm going to double-check how I compiled them, and see if I can find any differences.

  18. tokar86a
    Member
    Posted 1 year ago #

    This is the thing i get now from that file you have told me to try some time:

    990020
    987932

    And i still get this error:

    optipng: MISSING Copy binary from /storage/content/69/100069/myabdllife.com/public_html/wp-content/plugins/ewww-image-optimizer/ to /storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/ or Download optipng source

    EWWW Image Optimizer requires jpegtran, optipng or pngout, and gifsicle. You are missing: optipng. Please install via the Settings Page. If the one-click install links don't work for you, try the Installation Instructions.

    Some more that i should do now?

  19. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, my suspicion is that perhaps the optipng binaries got corrupted from being transferred in ascii mode instead of binary mode. Delete the EWWW Image Optimizer plugin, delete the optipng binary/file from wp-content/ewww/, and install the plugin again from within wordpress.

  20. tokar86a
    Member
    Posted 1 year ago #

    So what should i do now then?

  21. tokar86a
    Member
    Posted 1 year ago #

    It still say: optipng: MISSING Copy binary from /storage/content/69/100069/myabdllife.com/public_html/wp-content/plugins/ewww-image-optimizer/ to /storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/ or Download optipng source

  22. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, you must be very careful with this part. I'm assuming you're using some sort of FTP client to upload and download files. At any rate, make sure you switch the connection to binary mode. Download the file 'optipng' from the first folder listed to your computer. Then upload the file 'optipng' back into the second folder.

    Then, change the ewww.php file to this, and see what happens:

    <?php
    echo filesize ('/storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/optipng');
    echo "<br />";
    echo md5_file ('/storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/optipng');
    echo "<br />";
    echo shell_exec ('file /storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/optipng');
    echo "<br />";
    echo filesize ('/storage/content/69/100069/myabdllife.com/public_html/wp-content/plugins/ewww-image-optimizer/optipng');
    echo "<br />";
    echo md5_file ('/storage/content/69/100069/myabdllife.com/public_html/wp-content/plugins/ewww-image-optimizer/optipng');
    echo "<br />";
    echo shell_exec ('file /storage/content/69/100069/myabdllife.com/public_html/wp-content/plugins/ewww-image-optimizer/optipng');
    ?>
  23. tokar86a
    Member
    Posted 1 year ago #

    What do you mean whit binary mode?

    I already have optipng in this foler ewww

  24. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    Well, try the php code first, then we'll worry about binary mode if we need to.

  25. tokar86a
    Member
    Posted 1 year ago #

    It say this:

    990020
    5a0f4e8159bbb9b57948529ed5618795
    /storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/optipng: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.24, statically linked, for GNU/Linux 2.6.24, not stripped
    990020
    5a0f4e8159bbb9b57948529ed5618795
    /storage/content/69/100069/myabdllife.com/public_html/wp-content/plugins/ewww-image-optimizer/optipng: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.24, statically linked, for GNU/Linux 2.6.24, not stripped

  26. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, that all looks good, what does the plugin status section say now? Please click the debug link and include that info too.

  27. tokar86a
    Member
    Posted 1 year ago #

    jpegtran: OK version: Independent JPEG Group's JPEGTRAN, version 9 13-Jan-2013
    optipng: MISSING Copy binary from /storage/content/69/100069/myabdllife.com/public_html/wp-content/plugins/ewww-image-optimizer/ to /storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/ or Download optipng source
    gifsicle: OK version: LCDF Gifsicle 1.68
    GD: OK   Imagemagick 'convert': OK
    safe mode: Off  exec(): OK  shell_exec(): OK  finfo: OK  getimagesize(): OK  mime_content_type(): OK
    Operating System: Linux

    jpegtran path: /storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/jpegtran
    optipng path:
    gifsicle path: /storage/content/69/100069/myabdllife.com/public_html/wp-content/ewww/gifsicle
    pngout path:
    disabled functions: mysql_pconnect
    gifsicle permissions: 0755
    optipng permissions: 0755
    wp-content/ewww permissions: 2777
    user: 100069

  28. nosilver4u
    Member
    Plugin Author

    Posted 1 year ago #

    I went and looked closer at my binaries, and it appears I compiled gifsicle with a kernel identical to yours, but optipng was compiled on my local dev box that has a newer kernel. I'll have to find a machine running an older kernel and compile optipng on there. So, the end is in sight.

  29. tokar86a
    Member
    Posted 1 year ago #

    So is it any thing more i can do? Maybe talk to the host company?

  30. tokar86a
    Member
    Posted 1 year ago #

    Witch has an old version?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.