Jump to:

23451 Posts in 18899 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Error with inserting image

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: 1344 Views
  • Webdoc
    Community Member
    332 Posts

    Error with inserting image Link to this post

    [Warning] imagejpeg() [function.imagejpeg]: SAFE MODE Restriction in effect. The script whose uid is 509 is not allowed to access /home/bs2345/domains/ristoreisid.ee/public_html/cms/assets/Uploads/_resampled owned by uid 101
    GET /cms/admin/assets/EditForm/field/Files/item/7/edit
    Line 397 in /home/bs2345/domains/ristoreisid.ee/public_html/cms/sapphire/filesystem/GD.php

    388             case "gif": $type = 1; break;
    389             case "jpeg": case "jpg": case "jpe": $type = 2; break;
    390             default: $type = 3; break;
    391          }
    393          // if the extension does not exist, the file will not be created!
    395          switch($type) {
    396             case 1: imagegif($this->gd, $filename); break;
    397             case 2: imagejpeg($this->gd, $filename, $this->quality); break;
    399             // case 3, and everything else
    400             default:
    401                // Save them as 8-bit images
    402                // imagetruecolortopalette($this->gd, false, 256);
    403                imagepng($this->gd, $filename); break;
    •imagejpeg(Resource id #122,../assets/Uploads/_resampled/AssetLibraryPreview-zaz2.jpg,75)
    Line 397 of GD.php
    Line 305 of Image.php
    Line 264 of Image.php
    Line 132 of AssetTableField.php
    Line 514 of ComplexTableField.php
    Line 769 of ComplexTableField.php

    Line 408 of ViewableData.php
    Line 20 of .cache.home.bs2345.domains.ristoreisid.ee.public_html.cms.sapphire.templates.ComplexTableField_popup.ss
    Line 354 of SSViewer.php
    Line 773 of ViewableData.php
    Line 730 of ComplexTableField.php
    Line 129 of RequestHandler.php
    Line 143 of RequestHandler.php
    Line 143 of RequestHandler.php
    Line 143 of RequestHandler.php
    Line 122 of Controller.php
    Line 277 of Director.php
    Line 121 of Director.php
    Line 118 of main.php

  • krossner
    Community Member
    1 Post

    Re: Error with inserting image Link to this post

    This works on my machine:
    Remove the _resampled folder in assets/uploads.
    Recreate the _resampled folder and give 777 permissions.

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.