Forums

[Plugin: Regenerate Thumbnails] This plugin is buggy and incomplete (19 posts)

  1. Acolonna
    Member
    Posted 2 years ago #

    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/

  2. 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 ) );
  3. 1) Check out v2.0.0. It's now AJAX powered and each image resize is done via an AJAX call.

  4. noyz319
    Member
    Posted 2 years ago #

    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?

  5. 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.

  6. noyz319
    Member
    Posted 2 years ago #

    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?

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

  8. jazzpdx
    Member
    Posted 1 year ago #

    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?

  9. 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).

  10. jazzpdx
    Member
    Posted 1 year ago #

    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

  11. Oh, I was more referring to a long term fix on my end, but you're welcome to patch it up yourself. :)

  12. v2.0.2 does this. Was an easy fix, so I decided to just do it. :)

  13. jazzpdx
    Member
    Posted 1 year ago #

    Fantastic - even less work for me!

    Thanks so much (from a fellow Portlander)

  14. You're quite welcome. :)

  15. mytelephonescout
    Member
    Posted 1 year ago #

    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.

  16. 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.

  17. olesund
    Member
    Posted 1 year ago #

    Hey Viper and thanks for a great plugin. However, it did stop working for me. The site's at http://www.frizon.nu. I'm trying to regenerate my plugins and then show them in the slider at top-center column. But, when using the plugin it stops at 45%, everytime.

    I'm suspecting it has to do w/ my server settings:

    * Operating System : Linux (32 Bit)
    * Server : Apache/2.2.8 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g
    * Memory usage : 26.63 MByte
    * MYSQL Version : 5.0.51a-3ubuntu5.5
    * SQL Mode : Not set
    * PHP Version : 5.2.6-2ubuntu4
    * PHP Safe Mode : On
    * PHP Allow URL fopen : On
    * PHP Memory Limit : 32M
    * PHP Max Upload Size : 8M
    * PHP Max Post Size : 8M
    * PHP Output Buffer Size : N/A
    * PHP Max Script Execute Time : 30s
    * PHP Exif support : Yes ( V1.4 )
    * PHP IPTC support : Yes
    * PHP XML support : Yes

    I tried the above trick with WP:s PHP Memory w/o any luck.
    Cheers, Erik

  18. sollers
    Member
    Posted 1 year ago #

    Auto regenerate assigns original sized pictures for thumbnails.

    If I delete thumbnail in post via edit post and update post, then it assigns correct thumbnail.

    functions.php is correct:

    add_theme_support( 'post-thumbnails', array( 'post' ) );
    set_post_thumbnail_size( 160, 90, true );

    What is wrong?

    Thank you!

  19. sollers
    Member
    Posted 1 year ago #

    Issue is with this 2 plugins:
    auto-post-thumbnail

    regenerate-thumbnails

Topic Closed

This topic has been closed to new replies.

About this Topic