WordPress.org

Ready to get started?Download WordPress

Forums

WP Smush.it
[resolved] Automatic smushing has been disabled temporarily due to an error (2 posts)

  1. xrampage16
    Member
    Posted 1 year ago #

    I would have added this comment to the existing post, but the previous thread had been closed.

    A couple of my clients were running into this problems while running this plugin, so I took a bit of time, and modified the code to not quit when an error is returned. Instead, it attempts to process the file three times, and if the response is still negative, then it will bypass that file, and move onto the next one.

    This was done, due to the bulk smush.it starting over from the beginning each time, instead of starting off after the previously failed file. In the current circumstance, I am fine with the file not being processed, but would still like all of the other files to still be pushed to the smush.it server so that they can be reduced in size.

    I do not see an ability to upload a file using this forum, so i have uploaded the file to my own server, and will provide a link.

    I have included two versions of the file. A patch, and a complete tar file of the existing plugin, so those that are familiar with applying a patch, can, and those who are not, can just upload the files on top of their existing /wp-content/plugins/wp-smushit/ folder.

    Hopefully this helps those of you that have run into this similar problem, and this is an accepting solution

    Links to Files

    http://wordpress.org/extend/plugins/wp-smushit/

  2. Alex Dunae
    Member
    Plugin Contributor

    Posted 1 year ago #

    Awsome, thanks kindly for the patch. I've applied it in trunk and it will be part of the next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic