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

Image Resample Problems


Reply

4 Posts   1365 Views

Avatar
zenmonkey

3 December 2009 at 4:45am Community Member, 528 Posts

I'm getting the following error when I access a page with images

[Warning] imagejpeg() [function.imagejpeg]: SAFE MODE Restriction in effect. The script whose uid is 10029 is not allowed to access /var/www/vhosts/cupidology.net/httpdocs/assets/Products/MainImages/_resampled owned by uid 48
GET /a-bed-of-roses/

Line 397 in /var/www/vhosts/cupidology.net/httpdocs/sapphire/filesystem/GD.php

I'm running 2.3.3

Avatar
baba-papa

3 December 2009 at 5:13am Community Member, 279 Posts

This seems to me like a problem of access rights. Have you set public access to /assets an all subfolders?

Avatar
zenmonkey

3 December 2009 at 5:20am Community Member, 528 Posts

All folders and files have 777. It seems to be an issues when the CMS creates the _resampled folder it only has 755 as the permission.

I'm currently going through all my image directories and manually creating and chmodding _resampled dirs.

Avatar
zenmonkey

3 December 2009 at 10:40am Community Member, 528 Posts

There are few directories thats not working in.