Created
September 13, 2014 08:01
-
-
Save ss23/b08f7755c05bdd90fee4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Building "titledk/cloudy" | |
ERROR [User Error]: Uncaught InvalidArgumentException: ManyManyList::add() expecting a Image object, or ID value | |
IN GET /dev/tasks/BuildAddonsTask | |
Line 92 in /sites/addons/releases/20140716084200/framework/model/ManyManyList.php | |
Source | |
====== | |
83: /** | |
84: * Add an item to this many_many relationship | |
85: * Does so by adding an entry to the joinTable. | |
86: * @param $extraFields A map of additional columns to insert into the joinTable | |
87: */ | |
88: public function add($item, $extraFields = null) { | |
89: if(is_numeric($item)) $itemID = $item; | |
90: else if($item instanceof $this->dataClass) $itemID = $item->ID; | |
91: else { | |
* 92: throw new InvalidArgumentException("ManyManyList::add() expecting a $this->dataClass object, or | |
ID value", | |
93: E_USER_ERROR); | |
94: } | |
95: | |
96: $foreignIDs = $this->getForeignID(); | |
97: $foreignFilter = $this->foreignIDWriteFilter(); | |
98: | |
Trace | |
===== | |
ManyManyList->add() | |
AddonBuilder.php:180 | |
AddonBuilder->buildScreenshots(Addon,titledk/cloudy-9999999-dev,/tmp/silverstripe-cache-sites-addons-releases-20140716084200/addons/add-ons/titledk/cloudy) | |
AddonBuilder.php:70 | |
AddonBuilder->build(Addon) | |
BuildAddonsTask.php:28 | |
BuildAddonsTask->run(SS_HTTPRequest) | |
TaskRunner.php:84 | |
TaskRunner->runTask(SS_HTTPRequest) | |
RequestHandler.php:288 | |
RequestHandler->handleAction(SS_HTTPRequest,runTask) | |
Controller.php:194 | |
Controller->handleAction(SS_HTTPRequest,runTask) | |
RequestHandler.php:200 | |
RequestHandler->handleRequest(SS_HTTPRequest,DataModel) | |
Controller.php:153 | |
Controller->handleRequest(SS_HTTPRequest,DataModel) | |
RequestHandler.php:222 | |
RequestHandler->handleRequest(SS_HTTPRequest,DataModel) | |
Controller.php:153 | |
Controller->handleRequest(SS_HTTPRequest,DataModel) | |
Director.php:366 | |
Director::handleRequest(SS_HTTPRequest,Session,DataModel) | |
Director.php:152 | |
Director::direct(dev/tasks/BuildAddonsTask,DataModel) | |
cli-script.php:121 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment