• This plugin has two major issues:

    1) for sites with a lot of images it is not possible to run it on a shared server. the timeouts and impact on resources could be resolved with an asynchronous procedure divided in steps (every time the page is refreshed within the same operation, it picks up from where the job was left).

    2) the plugin doesn’t fill the DB post meta correctly (it “forgets” about any thumbnail format data if that thumbnail was not generated because already present in the right format).

    http://wordpress.org/extend/plugins/regenerate-thumbnails/

Viewing 15 replies - 1 through 15 (of 18 total)
  • 1) Yes, it needs to be written to use AJAX or pick up where it left off (AJAX would probably be best).

    2) Not quite sure what you mean. I’m using the WordPress API.

    wp_update_attachment_metadata( $attachment->ID, wp_generate_attachment_metadata( $attachment->ID, $fullsizepath ) );

    1) Check out v2.0.0. It’s now AJAX powered and each image resize is done via an AJAX call.

    I’ve used this plugin in the past and it’s worked great, but i’ve been trying to get this new version to work today and it’s not doing anything at all for me. No images get re-sized as far as i can tell and after I click the button i do not get a progress bar, just see blank space underneath the title Regenerate Thumbnails, and no text saying “Please be patient while all…” (as i saw in the plugin screenshot). Thought it might be a browser problem, but i’ve now tried it Safari, Firefox and Opera all with the same non-result. Any ideas? The site i’m trying to use it on is quite large with lots of images, could that be the issue even with this new AJAX version?

    The progress bar should show up regardless as it’s created using Javascript before any AJAX calls are made. If the progress bar is not showing up, then it sounds like it’s installed incorrectly or there’s another plugin interfering with it.

    And really you can keep using v1.x if you want. It’s the same regenerate code, it just doesn’t use AJAX.

    It’s not an install or plugin incompatibility issue. I managed to get it to work fine on a small test install with no other plugins running. I then imported the wordpress xml file + attachments from the site i’ve been trying to regenerate the thumbnails on. Once the posts were imported Regenerate Thumbnails gave me the same problem (no progress bar, no error messages, just blank) as it did when i attempted to run it on the actual site. Could there be a corrupt image in one of the posts or something similar that is maybe causing it to fail?

    I don’t see how that’s possible and I have no way to debug your blog. So… I dunno what to tell you.

    I’m having the same issue with the blank page with no progress bar. However, I’ve narrowed down the problem.

    The issue occurs at the call:

    $images =& get_children( array(
    								'post_type' => 'attachment',
    								'post_mime_type' => 'image',
    								'numberposts' => -1,
    								'post_status' => 'inherit',
    								'post_parent' => null, // any parent
    								'output' => 'object',
    							) );

    The site is pretty large and thus has a huge number of attachments. The progress bar appears and everything works if I change numberposts to 1000. 2000 does not work. Seems to be a memory issue of some sort – is there a way to paginate that first request?

    Short term fix: just up your memory limit -> http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    A long term fix is to probably just directly query the database in this case I think and instead of fetching the whole $post object (like that code does), just fetch the post IDs (which is what I actually need). I’d rather not deal with having to page requests as that was the whole point of the AJAX-recode of this plugin (each image regeneration is done in a separate page load).

    Thanks for the quick response. I’ll work on just grabbing the post IDs – that sounds like the best option.

    And yes, it makes sense that the AJAX-recode solves the issue of time-outs and memory limits while converting the images, but unfortunately it never gets to that point since it has to spit out a list of all the images first.

    Great plugin – very handy to have a template to work with and only have to do a re-write to scale it rather than having to start from scratch

    Oh, I was more referring to a long term fix on my end, but you’re welcome to patch it up yourself. πŸ™‚

    v2.0.2 does this. Was an easy fix, so I decided to just do it. πŸ™‚

    Fantastic – even less work for me!

    Thanks so much (from a fellow Portlander)

    You’re quite welcome. πŸ™‚

    I tried to using the Regenerate Thumbnails plugin; however, after running it many of my thumbnails and images are no longer showing up on my site.

    For the life me, I cant figure out how to restore my images. I tried to reinstall them but that didn’t seem to help. Has anyone had a problem like this?? I just want my site working again.

    Any help would be appreciated.

    You aren’t providing enough details, including a link to your site. Did the progress bar work showing it was resizing images? This plugin won’t affect images inserted into posts/pages as those are hard coded links to images of a certain size.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘[Plugin: Regenerate Thumbnails] This plugin is buggy and incomplete’ is closed to new replies.