• Resolved Anonymous User 11187416

    (@anonymized-11187416)


    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/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Anonymous User 11187416

    (@anonymized-11187416)

    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 nosilver4u

    (@nosilver4u)

    Is that the actual error message, or did you modify the path?

    Thread Starter Anonymous User 11187416

    (@anonymized-11187416)

    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 nosilver4u

    (@nosilver4u)

    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)

    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 nosilver4u

    (@nosilver4u)

    Can you contact me via 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)

    Yep not a problem, thanks!

    Plugin Author nosilver4u

    (@nosilver4u)

    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.