thats4shaw

I wondered how much damage I could do if I just use onAfterPublish on the element to update the last edited value for the page.

thats4shaw

Question for the floor. I’ve written a task to fetch pages from SiteTree_Live that have been edited in the last day. However if one solely publishes a block, the last edited value for the page won’t actually get updated which is a bit of a flaw in what i’ve made. Anyone got any suggestions on how I might rework this?

nightjarnz

The migration task should take care of that... but may still need an increased memory limit during execution

👌 (1)
Steph Lane

Yeah my fallback is writing some sort of task for it to run through and resize them, wanted to make sure I wasn’t going to be reinventing the wheel if something else already exists 😛 . I just had a go with imagick instead of GD and had the same sort of results with things not being able to resize, but I’ll stick with it and see if I can get it working. Going forward ideally we will get them uploading more sensible sizes, the main issue is just the ones that are already there!

dorsetdigital

If they're going to continue to add images of that size, then switching from GD to ImageMagick can help a lot

nightjarnz

@Steph Lane What image backend are you using? You could try the other one... or you'd probably need to write some kind of build task to do this (i.e. something that sits on dev/tasks)

Steph Lane

Hey folks, I’ve recently updated a site to SS4 and they have a large number of massive image assets (like 5472×3648px images) that are causing heaps of problems in the CMS (thumbnails etc can’t be generated and it’s crashing elemental edit pages/not displaying thumbnails or info in the Files page). Does anyone have any suggestions of ways that I could resize these images down in bulk to stop them causing issues going forward?

Corinne Phillips

Hi, I'm trying to delete an asset from my website. it seems to still be active, however, it doesn't seem to exist anymore on my SilverStripe admin page

theruss

Hi there, can you be a little more specific please? It sounds like you might be logged into the "Files" area of the CMS, but you can't find a particular image or file so that you can delete it. Is that correct?

Corinne Phillips

thanks for the reply! I'm on the files section, the file was there and I deleted it. It is still visible via Google.

theruss

Right, then that is nothing to do with SilverStripe I'm afraid

theruss

Google will maintain records of things well after they've been removed from their source or origin (in this case your SilverStripe website)

theruss

I've never had to do this before, but this looks like the resource you need to figure out how to do it: https://support.google.com/websearch/answer/4628134?hl=en

Show 1 attachment(s)
support.google.com  
Remove an image from Google - Google Search Help

If you want to delete a photo from Google’s search results, you’ll usually need to work with the person who owns the site that has the image. How to remove an image Remove an image from some

Hide attachment content
nightjarnz

step 1: check the URL is not still serving the file.

nightjarnz

step 2: wait for google cache to drop it, or force it to update/drop the file.

nightjarnz

@Corinne Phillips please do check that the URL for the image is still not serving it though.

nightjarnz

If it isn't, then it's just google needs to update. Otherwise we'd need to know the silverstripe version you're using to help any further.


Show less replies