• I’m using 0.1.11 of the reSmush.it image optimizer. Recently, images have not been smushed, either on upload or manually. After attempting optimization, I just get a message “Reduced by 0 (0 Saved)”.

    I have also noticed a PHP warning:
    “PHP Warning: filesize(): stat failed for /[my image].jpg in C:\[my installation]\wp-content\plugins\resmushit-image-optimizer\classes\resmushit.class.php on line 39”.

    I don’t know if that notice is new (recently cleared my logs) or if it is related.

    I’ve tried to enable reSmush.it’s own logging, but the checkbox never stays checked after settings are saved. I’m not seeing any JS errors in the console or any other obvious reason for the failure to save.

    Thanks for the plugin. I love what it does; I just want it to keep on doing it.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi Cembtw,

    Sorry for this issue, it has been a server issue ??
    However it’s now fixed, and the service is back on rails ??

    Do not hesitate to rate our plugin if you liked it.

    Best regards,
    Charles

    I close this issue, as it’s now solved ??

    Thread Starter CEMBTW

    (@cembtw)

    Thanks. Some optimizations are working. Some still result in “0 Saved”.

    I would look at the logs but, though the “Enable logs” checkbox now stays checked, no log file is created. I’ve checked at the root and done a type search for any “.log”.

    Thread Starter CEMBTW

    (@cembtw)

    Checking my PHP logs, it seems to be a permissions issue.

    PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in C:\[my path]\wp-content\plugins\resmushit-image-optimizer\resmushit.inc.php on line 23
    
    PHP Warning: fclose() expects parameter 1 to be resource, boolean given in C:\[my path]\wp-content\plugins\resmushit-image-optimizer\resmushit.inc.php on line 24
    
    PHP Warning: fopen(../resmushit.log): failed to open stream: Permission denied in C:\[my path]\wp-content\plugins\resmushit-image-optimizer\resmushit.inc.php on line 22
    Thread Starter CEMBTW

    (@cembtw)

    Smushing continues to result in “Reduced by 0 (0 saved)”.

    I explicitly defined log path in resmushit.inc.php to a log file with proper permissions.

    The log file shows that the files I attempt to smush are reverted, but no reason is given. Consider giving some feedback to the user when server communication fails.

    Hi Cembtw,

    It should have created a file log at the root of your WP website. Can you transmit us some lines of this log file, in order to help you resolve your issue ?

    Best regards,
    Charles

    Thread Starter CEMBTW

    (@cembtw)

    [26-06-2017 18:46:30] Revert original image for : C:\inetpub\wwwroot\wordpress/wp-content/uploads/Fruits-of-the-Spirit-Mosaic-Goodness.jpg
    [26-06-2017 18:46:32] Revert original image for : C:\inetpub\wwwroot\wordpress/wp-content/uploads/Bible-with-Pages-Forming-a-Flaming-Heart.jpg
    [26-06-2017 18:46:33] Revert original image for : C:\inetpub\wwwroot\wordpress/wp-content/uploads/A-Priest-Burning-Incense-Upon-the-Golden-Altar.jpg

    But, again, the log wasn’t even being created (due to the errors in the post above) until I explicitly defined the log path.

    Hi CEMBTW,

    On Windows Server, you’ll have to set permissions to enable creation of the logfile at the root of your project.
    Are you sure your PHP is compiled with the required extensions such as curl ?
    Is the resmush.it plugin has already worked on this environment ? Maybe there’s also a firewall restriction ?

    Best regards,
    Charles

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘No Longer Smushing’ is closed to new replies.