Jump to:

22979 Posts in 11808 Topics by 2827 members

General Questions

SilverStripe Forums » General Questions » error while uploading 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: 1600 Views
  • Leo1305
    Avatar
    Community Member
    6 Posts

    error while uploading image Link to this post

    Hi,

    i´m using SilverStripe 2.3.3 with DataObject, SWFUpload and ImageGallery on Mac OS X ( Apache2, PHP5 ... ) If i want to add a picture ( with picture button in tinymce ) to a normal Site ( For Example Home ) i´m getting the following error:

    ERROR [Warning]: Parameter 1 to Hierarchy::loadDescendantIDListInto() expected to be a reference, value given IN GET /andrea/admin/EditorToolbar/ImageForm?action_callfieldmethod=1&fieldName=Image&ajax=1&methodName=getimages&folderID=8&searchText=undefined&cacheKillerDate=1250247999249&cacheKillerRand=6704 Line 525 in /Applications/XAMPP/xamppfiles/htdocs/andrea/sapphire/core/Object.php Source ====== 516: if(isset(self::$extra_methods[$this->class][$method])) { 517: $config = self::$extra_methods[$this->class][$method]; 518: 519: switch(true) { 520: case isset($config['property']) : 521: $obj = $config['index'] !== null ? 522: $this->{$config['property']}[$config['index']] : 523: $this->{$config['property']}; 524: * 525: if($obj) return call_user_func_array(array($obj, $method), $arguments); 526: 527: if($this->destroyed) { 528: throw new Exception ( 529: "Object->__call(): attempt to call $method on a destroyed $this->class object" 530: ); 531: } else {

    call_user_func_array(Array,Array) line 525 of Object.php Object->__call(loadDescendantIDListInto,Array) ImageGalleryImage->loadDescendantIDListInto(Array) line 357 of Hierarchy.php Hierarchy->loadDescendantIDListInto(Array) line 342 of Hierarchy.php Hierarchy->getDescendantIDList(Folder) call_user_func_array(Array,Array) line 525 of Object.php Object->__call(getDescendantIDList,Array) Folder->getDescendantIDList(Folder) line 47 of ThumbnailStripField.php ThumbnailStripField->getimages() line 963 of Form.php Form->callfieldmethod(Array,Form,HTTPRequest) line 246 of Form.php Form->httpSubmission(HTTPRequest) line 129 of RequestHandler.php RequestHandler->handleRequest(HTTPRequest) line 143 of RequestHandler.php RequestHandler->handleRequest(HTTPRequest) line 143 of RequestHandler.php RequestHandler->handleRequest(HTTPRequest) line 122 of Controller.php Controller->handleRequest(HTTPRequest) line 277 of Director.php Director::handleRequest(HTTPRequest,Session) line 121 of Director.php Director::direct(/admin/EditorToolbar/ImageForm) line 118 of main.php

    Also i can´t uploads to assets, the image upload is successful but under files the uploaded picture isn´t available.

    Greets Leo

  • stooni
    Avatar
    Community Member
    89 Posts

    Re: error while uploading image Link to this post

    ---- the best way is!

    --- create in the assets directory a folder name "temp_images", folder rights 777
    --- upload all Image files with ftp program , and set rights 777
    --- in the cms now you can say import from another folder!
    --- when your are finish then save the folder!!!

    ----------------Stooni

    1600 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.