Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

Resized images not appearing in 2.4


Reply


2 Posts   392 Views

Avatar
lozhowlett

Community Member, 146 Posts

16 October 2012 at 8:42pm

Hi Everyone

We seem to be having a problem with resized images in the CMS. Check this link out:

http://www.farrington-oils.co.uk/rapeseed-oil/the-process/

The image path made up by the CMS produces this URL: http://www.farrington-oils.co.uk/rapeseed-oil/the-process/assets/NewFolder/_resampled/resizedimage300191-checking-label.jpg

but that link produces an error: The action 'assets' does not exist in class Page_Controller

I have no idea how to fix this one? Anyone seen it before?

Cheers

Avatar
Nobrainer Web

Community Member, 137 Posts

17 October 2012 at 9:41am

The url to the file should never include the page url. So i guess you put something in front of the picture url.
The path should start with /asssets/.
(rapeseed-oil/the-process/ should not be there, otherwise silverstripe thinks assets is an action on that PageController)

Lets see the code that writes the image if the above will not help you to solve the problem.