Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Tutorial Upload Issue

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1521 Views
  • teejay
    Avatar
    Community Member
    63 Posts

    Tutorial Upload Issue Link to this post

    Hi,

    first wow I am really impressed of Silverstripe *thumbsup*

    I have tried the latest version 2.2.2 and the tutorial. Everything works like a charm til the image upload part of the staff section. I get the following error when I want to attach a image. Maybe someone could help me.

    Best regards Thomas

    Warning: File upload error - unable to create a temporary file in Unknown on line 0

    Warning: Cannot modify header information - headers already sent in /Applications/xampp/xamppfiles/htdocs/mySilverstripe/sapphire/main.php on line 49

    Notice: Undefined variable: _SESSION in /Applications/xampp/xamppfiles/htdocs/mySilverstripe/sapphire/core/control/Director.php on line 102

    FATAL ERROR: Security ID doesn't match, possible CRSF attack.
    At line 223 in /Applications/xampp/xamppfiles/htdocs/mySilverstripe/sapphire/core/control/Controller.php

    trigger_error(Security ID doesn't match, possible CRSF attack.,256)
    line 223 of Controller.php

    Controller->run(Array)
    line 104 of Director.php

    Director::direct(/images/index/StaffPage/13/Photo)
    line 158 of main.php

    # requestParams =

    * url =

    /mySilverstripe/images/index/StaffPage/13/Photo // this folder does not exist !!

    * executeForm =

    EditImageForm

    * Class =

    StaffPage

    * ID =

    13

    * Field =

    Photo

    * ImageSource =

    new

    * MAX_FILE_SIZE =

    31457280

    * ExistingFile =

    * SecurityID =

    725979733

    * action_save =

    Attach Image

    * Upload =
    o name =

    me.jpg

    o type =

    o tmp_name =

    o error =

    6

    o size =

    0

    # funcName =

    save

    # paramVal =

    Attach Image

    # paramName =

    action_save

    # formController =
    # form =

  • teejay
    Avatar
    Community Member
    63 Posts

    Re: Tutorial Upload Issue Link to this post

    Sorry for posting again. I have tried to chmod 777 the whole silverstripe folder with no success. I have absolutly no idea where i can look to solve the issue

  • teejay
    Avatar
    Community Member
    63 Posts

    Re: Tutorial Upload Issue Link to this post

    Solved the problem !

    For all people who are using xampp for mac you should add the following to your php.ini

    upload_tmp_dir= /your path to a temp dir /

    Can be closed

    1521 Views
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.