Jump to:

22983 Posts in 11719 Topics by 2827 members

General Questions

SilverStripe Forums » General Questions » Thumbnails not updating [solved]

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1021 Views
  • Sparrowhawk
    Avatar
    Community Member
    33 Posts

    Thumbnails not updating [solved] Link to this post

    Hi,

    Is there a way to force SS to regenerate the thumbnails that are displayed on the right hand side when a user selects to embed an image in the content?

    A client is saying that he uploaded some new versions of images (some with the same name, some with new names) and that *some* of the thumbnails had not updated to the new versions of the image.

    Any idea why this might be, along with how to regenerate them?

    Many thanks!

  • x75
    Avatar
    Community Member
    42 Posts

    Re: Thumbnails not updating [solved] Link to this post

    Hi,

    try /dev/tasks/FlushGeneratedImagesTask

    That will remove all generated images.

    Johannes

  • Sparrowhawk
    Avatar
    Community Member
    33 Posts

    Re: Thumbnails not updating [solved] Link to this post

    Hi Johannes,

    Thanks for the reply, I'll give it a go and report back.

    Jean-Yves

  • Sparrowhawk
    Avatar
    Community Member
    33 Posts

    Re: Thumbnails not updating [solved] Link to this post

    "Build task 'FlushGeneratedImagesTask' not found. "

    Sorry, my fault as I forgot to mention that we are still on 2.3.4, and that class does not seem to exist in that version. It gave me an error and looking at the API docs, it does not seem to be present in the 2.3.x codebase. Unless I am missing it?

    Is there a manual way that I can achieve the same effect? Do I just need to clear down all the files in the _resampled folder under the user's folder in /assets?

    Do missing files in the _resampled folders get automatically regenerated as needed? ie is it always safe to delete them?

    Thanks in advance.

  • x75
    Avatar
    Community Member
    42 Posts

    Re: Thumbnails not updating [solved] Link to this post

    Hi,

    as far as I know you can just delete the _resampled Folders. I would move it, to try it out

    According to the docs http://doc.silverstripe.org/image#clearing_thumbnail_cache you can also try calling: http://www.mysite.com/images/flush

    But I don't know if that (still) works.

    Johannes

  • Sparrowhawk
    Avatar
    Community Member
    33 Posts

    Re: Thumbnails not updating [solved] Link to this post

    The latter method gave me a permission denied error on my local dev copy. I think we'll try the fully manual way for now (ie copy folder and then delete contents to see if it auto-regenerates)

    Many thanks for your time and assistance

  • Sparrowhawk
    Avatar
    Community Member
    33 Posts

    Re: Thumbnails not updating [solved] Link to this post

    OK, deleting the thumbnail images did the trick. Thanks again.

    1021 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.