
Anonymous Community User asked a question.
Error when cloning an item via Podio-PHP
Hi all, I feel this is probably something dumb that I am overlooking, but I am getting the following error when trying to clone an item via PHP. (The paths look odd because I have obfuscated them.) [04-Oct-2013 17:05:37] PHP Fatal error: Uncaught PodioNotFoundError: "No matching operation could be found. No body was given." Request URL: http://api.podio.com/item/83296698/clone?silent=1&hook=false Request Body: null _Stack Trace: _ #0 podio/lib/Podio.php(271): Podio::request('POST', '/item/83296698/...', Array, Array) #1 podio/models/PodioItem.php(150): Podio::post('/item/83296698/...') #2 script.php(17): PodioItem::duplicate(83296698, Array) #3 {main} _ thrown in podio/lib/Podio.php on line 241_ The following code is being used to call the duplicate: $item_id = (int) PodioItem::duplicate( $old_item_id, array( 'hook' => false, 'silent' => true ) ); Any help would be much appreciated as I am so close to completing this script! Nathan