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, Ed, biapar, Willr, Ingo, swaiba

error while uploading image

Go to End

2 Posts   2012 Views


Community Member, 6 Posts

14 August 2009 at 11:11pm


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


Community Member, 89 Posts

17 August 2009 at 12:15am

---- 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!!!