Title: Optimize everything else &#8211; Multisite
Last modified: August 30, 2016

---

# Optimize everything else – Multisite

 *  Resolved Anonymous User 11187416
 * (@anonymized-11187416)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/optimize-everything-else-multisite/)
 * Hi there,
 * When trying to ‘optimize everything else’ on a multisite install, I get an error.
   Error Console says it’s to do with the image paths being wrong, but the site 
   is working and all images are displaying.
 * `<b>Warning</b>: filesize(): stat failed for D:OLD-PATHwwwroot/wp-content/uploads/
   2015/07/leisure-700x325.jpg in <b>/home/newusername/public_html/wp-content/plugins/
   ewww-image-optimizer/aux-optimize.php</b> on line <b>623</b><br />`
 * Instead of just deciding it doesn’t exist, the script stalls.
 * a) Why might EWWW be looking for this URL (so I can fix it)
    b) anyway to patch
   the plugin so it just ignores invalid paths and still carries on?
 * Thanks!
 * Martin
 * [https://wordpress.org/plugins/ewww-image-optimizer/](https://wordpress.org/plugins/ewww-image-optimizer/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter Anonymous User 11187416
 * (@anonymized-11187416)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/optimize-everything-else-multisite/#post-6810906)
 * Looking more into the code, I can’t see where `$path` is first defined, but it’s
   that variable which is flagging an incorrect URL error on Optimize Everything
   Else.
 * Normal media library bulk optimize works fine btw 🙂
    Thanks in advance,
 * Martin
 *  Plugin Author [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/optimize-everything-else-multisite/#post-6811026)
 * Is that the actual error message, or did you modify the path?
 *  Thread Starter Anonymous User 11187416
 * (@anonymized-11187416)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/optimize-everything-else-multisite/#post-6811042)
 * I modified the path because it mentioned a client name but I didn’t remove any
   forward slashes so there is no forward slashes after ‘D:’ in the original path
   for example.
 *  Plugin Author [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/optimize-everything-else-multisite/#post-6811057)
 * Ah, ok. So it isn’t so much an invalid path, as somehow the plugin could not 
   get the filesize of that file.
 * The problem is that those “warnings” are not errors, and the plugin has no control
   over whether or not they are displayed. That is a server-side PHP setting. The
   plugin needs to have very specific output from the filesystem scan, and when 
   it does not get that, it cannot continue. So it seems the real issue is why can’t
   the plugin read that file? That would seem to mean that the permissions are set
   incorrectly.
 * So I would check the permissions on the file (and probably set them recursively
   if needed).
 *  Thread Starter Anonymous User 11187416
 * (@anonymized-11187416)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/optimize-everything-else-multisite/#post-6811065)
 * Sorry for the confusion – it is an invalid path – it’s just the old ‘beta site’
   path which doesn’t seem to be in the database anywhere. Any ideas why it might
   be finding an old path? All the ones in the database are correct. So confused!
 *  Plugin Author [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/optimize-everything-else-multisite/#post-6811069)
 * Can you contact me via [https://ewww.io/contact-us/](https://ewww.io/contact-us/)
   please?
    I’d like to take a look at the raw debugging information, and possibly
   see a screenshot of what it looks like when you get those warnings.
 *  Thread Starter Anonymous User 11187416
 * (@anonymized-11187416)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/optimize-everything-else-multisite/#post-6811092)
 * Yep not a problem, thanks!
 *  Plugin Author [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/optimize-everything-else-multisite/#post-6811126)
 * For anyone else with this problem, it is a glitch in the scanning for Metaslider
   images, and will be fixed in the next release.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Optimize everything else – Multisite’ is closed to new replies.

 * ![](https://ps.w.org/ewww-image-optimizer/assets/icon-256x256.png?rev=1582276)
 * [EWWW Image Optimizer](https://wordpress.org/plugins/ewww-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ewww-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ewww-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ewww-image-optimizer/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/optimize-everything-else-multisite/#post-6811126)
 * Status: resolved