• Resolved fylh

    (@fylh)


    Here is the bug, I think:

    I’v got 18000+ images. I go to Media Gallery and choose date period (for instance october 2011). I see 1234 images of this period. Screen options are 20 images per screen. So I tick all 20 images and choose Bulk Optimize. Then I’am transfered to Bulk Optimization page where I see question, do I want to optimize 20 images. Hit OK. Excellent.

    I come back to Media Gallery, I choose date period october 2011, I see 1234 elements. I go to second page, tick another 20 images and hit Bulk Optimize. Now I am transfered to Bulk Optimization page where I see question, do I want to optimize 18000+ images.

    The bug is that if 2nd or any other page is chosen in Media Galery, Bulk Optimization sees all the blogs media instead of chosen ones only.

    Please help.

    Andrej

    https://wordpress.org/plugins/ewww-image-optimizer/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    I can’t seem to replicate it. I can pick any date period I want, jump around in all sorts of pages, and every time, the bulk optimizer shows the images I selected, not my entire Media Library. Can you turn on debugging, and then see if there is anything useful on the bulk optimize page when the issue occurs? If in doubt, use pastebin.com and post a link here so I can take a look.

    Thread Starter fylh

    (@fylh)

    Thanks for fast reply. Today morning could not repeat the bug myself. All works perfect!

    Thread Starter fylh

    (@fylh)

    Hm, seems that problem has come back (

    1. Media Gallery, 18978 images in total
    2. Screen options 180 images
    3. Period October 2011, 1234 images, 7 pages
    4. Go to page 2, tick all images on this page, then Bulk Optimize
    5. Redirected to Bulk Optimize page asking “We have 18978 images to optimize.”

    Screen shots here
    Debugging info here

    Thread Starter fylh

    (@fylh)

    It seems that if screen options is 20 or 50 images per page, then it works perfectly. If I put 180, 200 or 300, then I get “We have 18978 images to optimize.”

    By the way, sometimes when screen options 20 images per page I get “We have 19 images to optimize.” (not 20) or with 50 images per page I get “We have 49 images to optimize.” (not 50). Maybe the reason is in URI lenght, when not all image ids are included?

    Just in case: I play with screen options because I didn’t find how can I optimize all the images from one folder only (/var/www/fylhtyzia2/data/www/vickyblog.com/wp-content/blogs.dir/5/files/2011/10/), there are 1234 images.

    1. I go to image Optimizer options
    2. Put this folder into “Folders to optimize” menu
    3. Go to ‘Optimize More’ in the Tools menu
    4. I see “We have 26492 images to optimize.”
    5. If I don’t specify folder in “Folders to optimize” menu, then I get “We have 368 images to optimize.” in ‘Optimize More’ in the Tools menu.

    Plugin Author nosilver4u

    (@nosilver4u)

    Ok, so that makes a whole lot more sense. There is an upper limit to how many parameters you can pass to apache (and also probably a url length limit too), but what I suspect is happening is that you’re reaching the parameter length limit, and so it defaults back to trying to optimize ALL images. I have seen this on my test site in the past, but it has been a while, so I had forgotten about that.

    Next, you mention putting media library folders in the Optimize More tool, which is generally a VERY bad idea, unless you have a plugin that is creating images in that folder that WordPress does not know about. It is generally recommended to just run the Bulk Optimize on everything, and stop the process manually (hitting the refresh button will do the trick). Then you can resume where you left off, so you can do like 1000 images at a crack, or just let it run until something on your server kills the process. I’ve successfully run it for 3 solid hours on my dev box…

    The next release is going to have some very nice improvements in this area (like an actual Stop button, throttling, better tracking of media library images), but that doesn’t help you much right now. And please don’t try the Development release just yet, it’s in a very fragile state at the moment (mostly just the nextgen & grand flagallery portions, but still…). If you want, you can just hold off until I release that (or when it is in a more cohesive state), which should be by early next week.

    Plugin Author nosilver4u

    (@nosilver4u)

    Well, had more time to work on it today than I expected. Development release is ready for testing: http://downloads.wordpress.org/plugin/ewww-image-optimizer.zip

    Thread Starter fylh

    (@fylh)

    Thank you, I’ll check it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘bulk optimization does not recognize 2nd page’ is closed to new replies.