Support » Plugin: EWWW Image Optimizer » Doesn't Seem To Be Working

  • Resolved Gemfruit

    (@gemfruit)


    I recently learned about this plugin, and decided to give it a try over Smush.it. From what I’ve read, this is an excellent plugin, so I’m looking forward to it working.

    I’ve tried the bulk optimizer for both the media library, and other files, and nothing seems to happen. I only have 8 images in the media library, all quite small (nothing over 1MB, most much smaller), and few site images (repeating backgrounds, jpg, etc). The optimizing image animations just spins over and over. I let it go for about a half hour, and it didn’t stop. Even when I press “stop optimizing”, the dialogue disappears, but the animation just keeps spinning.

    Here’s some info on my setup:

    VPS on a LEMP stack.

    WordPress contained within its own /var/www/anightinburlington.com/public_html/worpdress folder. The site is served on the root, it’s just in its own folder for organization purposes.

    I have a dedicated user that is the owner / group for everything in my wordpress install.

    My wp-content folder has www-data as the owner, as that was needed for W3 total cache, and potentially others (I’m quite new to vps and all of these rules).

    I get no errors, though it does warn me that I lack both GD, and imagemagick, but it says that’s only for conversion. Below is my debug:

    Debug Info – http://pastebin.com/MUEKvuHs

    https://wordpress.org/plugins/ewww-image-optimizer/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Gemfruit

    (@gemfruit)

    I changed the owner on the wp-content/ewww folder to www-data (group is still my custom user), and the debug output looks to be going in the right direction, but it still isn’t working. It’s worth noting I watched a video to see how this works, and I don’t see loading bars, or any graphics, other than the text box to stop optimizing, and the spinning loading animation.

    Updated Debug – http://pastebin.com/6g7B1gSF

    Thread Starter Gemfruit

    (@gemfruit)

    I really wish we could edit our posts. That aside, another update:

    I just discovered my wp-content/uploads group owner / permissions weren’t correct, which was preventing me from even adding new images. I fixed that, and can now individually optimize images, and it works great!

    The bulk image tool is still broken me however. I read some older posts, looking for insight, and discovered you saying it could be a jquery error, so I checked my errors in chrome, and had this on that page:

    Uncaught ReferenceError: jQuery is not defined load-scripts.php?c=0&load%5B%5D=jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,utils,jquery-ui-sli…:4
    Uncaught TypeError: Cannot read property ‘mouse’ of undefined load-scripts.php?c=0&load%5B%5D=jquery-ui-sortable,postbox,hoverIntent,common,admin-bar,svg-painter…:4
    Uncaught TypeError: undefined is not a function eio.js?ver=4.0:87
    Uncaught TypeError: undefined is not a function eio.js?ver=4.0:351

    I have a hunch that’s related. That first error is claiming jquery is not defined, which is obviously an issue, any idea what’s up with that?

    Thread Starter Gemfruit

    (@gemfruit)

    I found my answer this morning! I had enabled a feature of my “Weather Slider” ( plugin to use the Google CDN version of Jquery, as it said it “solved problems with older versions of jquery”. I was trying to get stop render blocking js, and loading the slider on pages it wasn’t even being used, and enabling some advanced features (Google CDN Jquery one of them) solved the issue.

    This was all pre-Wordpress 4.0, and turning that off fixed ewww, and also continued to support what the Google CDN fixes had achieved (I believe each WordPress version comes with a more updated version of Jquery).

    The only issue I have now, is that the bulk optimize “everything else” is telling me the files within my theme/image folder aren’t writable. This is obviously a owner/group / permissions error, but I don’t get why. The permissions on the images directory are 775 (I copied what the default themes did), and the owner / group are both the same, my custom user. The images themselves are 644, which should give the owner read and write abilities, and my owner is the same user that allows wordpress to update via ssh, install plugins, etc. I guess I have a bit to learn about owners / permissions. Any help would be greatly appreciated, and thanks for the awesome plugin.

    Plugin Author nosilver4u

    (@nosilver4u)

    Sorry for the slow response, glad you discovered the jquery glitch. Yes, WordPress does include a very up to date version of jquery with each release, so I wouldn’t ever trust a plugin to provide it’s own version of jquery. The WordPress developers actually discourage other plugins from bundling their own jquery or using the google cdn version, because it can very easily cause issues for other plugins using jquery.

    At any rate, now we are on to a permissions issue. Certain folders/files can be locked down tighter than that and still function, but I would try setting all the files to 755, and see if that fixes it. That will make them also ‘group’ readable/writable, which is sometimes necessary, depending on how your webhost has set things up.

    Thread Starter Gemfruit

    (@gemfruit)

    I had to switch the owner to www-data to get it to work. I’m still struggling to understand this, but from what I’ve read, the web server uses www-data by default for php, and my created user doesn’t have the ability to do what www-data can. Even if I set the settings to 775, or presumably 777, it doesn’t work. Since my set up is my-user:my-user, it should work at 755, as the owner has read / write / execute, but it doesn’t. However, at 755, changing the owner to www-data works perfectly – that’s seemed to fix every issue.

    I’ve just switched from shared hosting to a VPS 3 weeks ago, so I’ve got a bit to learn it seems, but it’s working now. I’m not sure how secure / proper my setup is with www-data taking control of things that won’t work otherwise, but I’ll learn in time. The plugin is working great now, and is now on my favorites list. I’ll drop it a positive review shortly for sure. Thanks for the great plugin, and your quick (weekends don’t count) reply.

    Plugin Author nosilver4u

    (@nosilver4u)

    Yeah, that’s a big difference between shared and a vps/dedicated server. On shared hosting, each website runs under your personal user account, but on a VPS, it will typically be www-data (depends on the linux distro) or some other generic httpd user.

    Good luck with your VPS, it’s lots of fun managing your own server, but it can be a little tough at times too.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Doesn't Seem To Be Working’ is closed to new replies.