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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Resized images not appearing in 2.4


Go to End


2 Posts   779 Views

Avatar
lozhowlett

Community Member, 151 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, 138 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.