Resolving 'Missing' Tool Errors in EWWW Image Optimizer
Content
If you use EWWW Image Optimizer, you've likely encountered a frustrating message stating that tools like jpegtran, optipng, or gifsicle are "missing," even when the files appear to be in the correct folder. This is a common support issue, and this guide will walk you through the most frequent causes and their solutions.
Why This Error Occurs
The EWWW Image Optimizer plugin relies on several command-line tools to optimize images. The "missing" error means the plugin cannot locate or successfully execute these necessary binaries. This is rarely because the files are actually gone; more often, it's due to one of the following issues:
- File Permissions: The web server user (e.g., www-data) does not have permission to read or execute the files.
- Binary Incompatibility: The pre-compiled tools provided by the plugin are not compatible with your server's operating system or architecture.
- Transfer Mode: If the plugin was uploaded via FTP in ASCII mode instead of Binary mode, the tool files can become corrupted.
- Hosting Restrictions: Some managed hosting providers disable the
exec()PHP function for security reasons, preventing the plugin from running any external tools.
How to Troubleshoot and Fix the Issue
1. Check and Correct File Permissions
The most common fix is to ensure the wp-content/ewww/ folder and the files within it have the correct permissions. The web server must be able to read and execute the files.
- Folder Permissions: The
wp-content/ewww/directory should be set to 755 (or 775 if necessary). - File Permissions: The individual tool files (e.g.,
jpegtran,optipng-linux) should be set to 755.
You can typically adjust these permissions using your hosting control panel's file manager or an FTP client.
2. Verify Binary Compatibility
The EWWW Image Optimizer team provides tools pre-compiled for common Linux distributions. If you are on a less common OS like FreeBSD or an older/unusual Linux distribution, the bundled tools may not work.
- Check Your OS: Contact your hosting provider to confirm your server's operating system and architecture (e.g., FreeBSD 12, Ubuntu 18.04, x86_64).
- Install Custom Binaries: If the bundled tools are incompatible, you can compile or obtain compatible versions of the tools yourself. Place them in the
wp-content/ewww/folder. Forcwebp, you may need to name a custom versioncwebp-customfor the plugin to recognize it.
3. Reinstall the Plugin Correctly
If you installed the plugin via FTP, the file transfer mode may have corrupted the binaries.
- Delete the
wp-content/ewww/folder and theewww-image-optimizerplugin folder. - Reinstall the plugin directly through your WordPress admin dashboard (Plugins > Add New). This is the most reliable method.
- If you must use FTP, ensure your FTP client is set to BINARY transfer mode before uploading the plugin's ZIP file or its contents.
4. Confirm exec() is Enabled
The plugin requires the PHP exec() function to be enabled. Many managed WordPress hosts disable this function.
- Check your EWWW settings page. Under "Plugin Status," it should say "exec(): Enabled."
- If it is disabled, you must contact your hosting provider and ask if they can enable
exec()for your account. Be aware that some providers will not enable it for security reasons.
5. Review Debug Information
For advanced troubleshooting, the debug information is invaluable.
- Go to the EWWW Image Optimizer settings in your WordPress admin.
- Enable the "Debugging" option and save settings.
- Scroll down, and you will find a large text area filled with system information.
- This log shows the exact permissions of the
ewwwfolder, the paths the plugin is checking, and any errors it encounters when trying to run the tools. Sharing this information can help pinpoint the exact issue.
When All Else Fails
If you have confirmed permissions are correct, the tools are compatible, and exec() is enabled, but the error persists, the issue may be a deeper server configuration. In these cases, your best course of action is to provide the detailed debug information to your web host's support team and ask them to investigate why the web server cannot execute the files in the ewww directory.
Remember, you do not need every tool for the plugin to function. If you are only optimizing JPEGs, having jpegtran working is sufficient. You can disable warnings for other tools in the Advanced settings to clean up the admin notice.
Related Support Threads Support
-
Permissions Notice Showing When It Shouldn’thttps://wordpress.org/support/topic/permissions-notice-showing-when-it-shouldnt/
-
You are missing: jpegtran, optipng, gifsiclehttps://wordpress.org/support/topic/you-are-missing-jpegtran-optipng-gifsicle/
-
Help with Installinghttps://wordpress.org/support/topic/help-with-installing/
-
Error Messageshttps://wordpress.org/support/topic/error-messages-64/
-
missing: optipng, gifsiclhttps://wordpress.org/support/topic/missing-optipng-gifsicl/
-
Hello, i have problem with settinghttps://wordpress.org/support/topic/hello-i-have-problem-with-setting/
-
PNG upload causing http errorhttps://wordpress.org/support/topic/png-upload-causing-http-error/
-
Missing Optionshttps://wordpress.org/support/topic/missing-options-8/
-
You are missing: jpegtran, optipng, gifsicle, pngouthttps://wordpress.org/support/topic/you-are-missing-jpegtran-optipng-gifsicle-pngout/
-
…missing: webp.https://wordpress.org/support/topic/missing-webp-2/
-
EWWW says that webp is missing, but it’s therehttps://wordpress.org/support/topic/ewww-says-that-webp-is-missing-but-its-there/
-
All testing cases failedhttps://wordpress.org/support/topic/all-testing-cases-failed/
-
EWWW Install errors – jpegtran, gifsicle, optipng missinghttps://wordpress.org/support/topic/ewww-install-errors-jpegtran-gifsicle-optipng-missing/
-
You are missing: pngout.https://wordpress.org/support/topic/you-are-missing-pngout-1/
-
IIS for PHP: You are missing: jpegtran, optipng, gifsiclehttps://wordpress.org/support/topic/directory-with-spaces-causes-executables-to-not-function/
-
Your web server does not meet the requirements for free server-based compressionhttps://wordpress.org/support/topic/your-web-server-does-not-meet-the-requirements-for-free-server-based-compression/
-
Can't get the permissions to workhttps://wordpress.org/support/topic/cant-get-the-permissions-to-work/
-
optipng missing, site5 hostinghttps://wordpress.org/support/topic/optipng-missing-site5-hosting/
-
Could not copy file optipng.exehttps://wordpress.org/support/topic/could-not-copy-file-optipngexe/
-
Plugin Status Requires Attentionhttps://wordpress.org/support/topic/plugin-status-requires-attention/
-
“You are missing”… but everything is here.https://wordpress.org/support/topic/you-are-missing-but-everything-is-here/
-
Remove notificationhttps://wordpress.org/support/topic/remove-notification-3/
-
File permissionshttps://wordpress.org/support/topic/file-permissions-38/
-
Error missing several fileshttps://wordpress.org/support/topic/error-missing-several/
-
Optipng / Gifsicle missing — ftp/setup questionhttps://wordpress.org/support/topic/optipng-gifsicle-missing-ftpsetup-question/
-
GoDaddy & “You are missing: optipng, gifsicle.”https://wordpress.org/support/topic/godaddy-you-are-missing-optipng-gifsicle/
-
missing optipng (GoDaddy managed)https://wordpress.org/support/topic/missing-optipng-godaddy-managed/
-
requirements for free server-based compressionhttps://wordpress.org/support/topic/requirements-for-free-server-based-compression/
-
Linux: tools found then not foundhttps://wordpress.org/support/topic/linux-tools-found-then-not-found/
-
You are missing: optipng, gifsicle, pngout.https://wordpress.org/support/topic/you-are-missing-optipng-gifsicle-pngout-2/
-
missinghttps://wordpress.org/support/topic/missing-4/
-
Missing jpegtran, optipng, gifsiclehttps://wordpress.org/support/topic/missing-jpegtran-optipng-gifsicle-1/
-
cannot install jpegtran, optipng, etc. on cloudways hostinghttps://wordpress.org/support/topic/cannot-install-jpegtran-optipng-etc-on-cloudways-hosting/
-
Windows: Tool found and then not foundhttps://wordpress.org/support/topic/windows-tool-found-and-then-not-found/
-
EWWW Image Optimizer complains files that are there are not therehttps://wordpress.org/support/topic/ewww-image-optimizer-complains-files-that-are-there-are-not-there/
-
Library Install Issuehttps://wordpress.org/support/topic/library-install-issue/
-
After 8.0 Update EWWIO cant finde gifsicle, jpegtran, optipng, pngquanthttps://wordpress.org/support/topic/after-8-0-update-ewwio-cant-finde-gifsicle-jpegtran-optipng-pngquant/
-
`EWWW Image Optimizer could not install tools`https://wordpress.org/support/topic/ewww-image-optimizer-could-not-install-tools/
-
Rules inserted successfully but WebP won't workhttps://wordpress.org/support/topic/rules-inserted-successfully-but-webp-wont-work/
-
Message: missing: optipng, gifsicle. / But they seem to be there..https://wordpress.org/support/topic/message-missing-optipng-gifsicle-but-they-seem-to-be-there/
-
optipng and gifsicle: not foundhttps://wordpress.org/support/topic/optipng-and-gifsicle-not-found/
-
Missing jpegtran, optipng, gifsicle, pngout, pngquant, andhttps://wordpress.org/support/topic/missing-jpegtran-optipng-gifsicle-pngout-pngquant-and/
-
cwebp not workinghttps://wordpress.org/support/topic/cwebp-not-working/
-
Missinghttps://wordpress.org/support/topic/missing-8/
-
Error: You are missing: jpegtran, optipng, gifsicle, pngquanthttps://wordpress.org/support/topic/error-you-are-missing-jpegtran-optipng-gifsicle-pngquant/
-
What are the permissions for folder /ewwwhttps://wordpress.org/support/topic/what-are-the-permissions-for-folder-ewww/
-
Missing optipng and Gmagickhttps://wordpress.org/support/topic/missing-optipng-and-gmagick/
-
gifsicle detectionhttps://wordpress.org/support/topic/gifsicle-detection/