• Resolved igb10

    (@igb10)


    Every time I need to add images to library I get HTTP error. So I have to deactivate the plugin so I can add images, then go back to activate this plugin and only then I can compress. Any idea why this plugin prevents adding images to library? But once I add images then compression works fine..

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author TinyPNG

    (@tinypng)

    Hi, what you are describing shouldn’t be happening. Strange. Is there maybe another plugin or extension that creates the conflicts? Have you checked the error logs for some additional clues why there is an error?

    • This reply was modified 6 years, 6 months ago by TinyPNG.
    Thread Starter igb10

    (@igb10)

    I only know basic stuff. How and where do I check for errors?

    Plugin Author TinyPNG

    (@tinypng)

    Hi, you’ll want to look for example at the error logs on the server. But if you are unfamiliar with this, it may be better to check it with your server administrator or web developer. They might find out what is going wrong quickly.

    There have been numerous threads on this support about HTTP errors, and I can tell you that mine are related to timeouts.

    You can certainly increase the PHP timeout limit, but I think it’s high time that this plugin was updated to perform asynchronous optimization of images. This would allow for graceful handling of HTTP errors, images would be uploaded no matter what, and we could move on with editing our posts in a timely fashion instead of waiting for the optimization process to finish.

    Especially when I’ve just dropped in 20 images for a gallery and have content I’d like to start writing.

    Plugin Author TinyPNG

    (@tinypng)

    Thanks for the feedback. We are planning several updates to the plugin in July, August and September, one of them is to allow background optimization after upload. We can understand the need for faster image upload and article publishing.

    Weeeeeee bring it on!

    I’ve found TinyPNG to be the best image optimization option overall, probably because it’s the business’s one sole focus. To see the WP plugin feature-set get on par with its competition will be a huge win.

    Thread Starter igb10

    (@igb10)

    Eclev91, how do you increase the PHP timeout limit? And is it a good idea as far as security, since it didn’t have this provision in the 1st place?
    Thank you,

    @igb10 the only real drawback to doing this is ending up with a user waiting longer than they should. So if a PHP script is taking a long time, it’d usually time out, your user would get an error, and they’d refresh or whatever. With a longer timeout, they might wait longer for success (or inevitable failure, depending on why the script is taking too long).

    You can update your php.ini however your host requires that be done (if it’s possible).

    On an Apache server, you may be able to update it via your .htaccess file.

    And finally, you can update it in the PHP script itself (I would add this to a child/custom theme or custom plugin to ensure it isn’t loss on update. Never change core WP files).

    Definitely want to bump this feature request as well. I experience the same issues.

    On our end I’ve had success disabling compressing JUST the original image. Still leaving the plugin and the compression enabled for all the other sizes (12+) and it works okay.

    Looking forward to the upcoming releases!

    • This reply was modified 6 years, 5 months ago by losdos.
    Plugin Author TinyPNG

    (@tinypng)

    An update from TinyPNG! We will try to add 2 new features in July that should offer more flexibility for the automatic compression on file upload:

    – delayed (background) compression on image upload

    – allow / disable automatic compression on image upload

    Anyone interested in the update can follow the activity from the Git repository on https://github.com/tinify/wordpress-plugin in the coming weeks

    Plugin Author TinyPNG

    (@tinypng)

    @eclev91 @losdos we have an initial version with background compression up and running. The code is on https://github.com/tinify/wordpress-plugin/commits/non-blocking-compressions We would really like your feedback, so if you have some time please try it out and tell us what you may run in to!

    Also as far as the HTTP error we have difficulty in reproducing so any help there to know where it is coming from would also be really appreciated.

    Plugin Author TinyPNG

    (@tinypng)

    Hello @igb10 @eclev91 @losdos

    The pre-release of the upcoming release 3.0 of the plugin is in final testing phase. It will give more flexibility for new image uploads and features faster bulk optiisation.

    The code is on GitHub and can be downloaded here:

    https://github.com/tinify/wordpress-plugin

    We would love to get your feedback and have planned release for end July.

    @tinypng Thanks for the update, I’ll see if I can’t get that moving one of my sites today. Master branch? Or is there a branch or tag I should reference?

    @tinypng Well, I installed it and uploaded an image. It uploaded as fast as would be expected without the plugin enabled. Went to the settings page and had 0 compressions for the month. Refreshed and had 5. Refreshed and had 8.

    So after a cursory test, rousing success! Much appreciated.

    @tinypng Also, big thanks for being forward-thinking enough to have a composer.json in the repo and declared properly as a WP plugin. Makes my life way easier.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Doesn’t let me add images to library’ is closed to new replies.