podio-php
podio-php copied to clipboard
Fatal error: Call to undefined method PodioItemField::api_friendly_values()
Hi guy, when I try to update any field im my app, and the field "Organization" has values I receive this error:
Fatal error: Call to undefined method PodioItemField::api_friendly_values()
My code:
Podio::authenticate_with_app($appId,$auth); $id = intval($_POST["id"]); $item = PodioItem::get_by_app_item_id($appId, $id); $urlImagem = $result['ObjectURL'] ; $options=$item->fields[$field_id]->values; if(empty($options)) $item->fields[$field_id] = new PodioEmbedItemField($field_id); // Create embed $embed = PodioEmbed::create(array('url' => $urlImagem)); // Set using object $item->fields[$field_id]->values = $embed; // Set using associative array $item->fields[$field_id]->values = array('embed' => $embed->embed_id); $item->save();
Response: {"status":"Internal Server Error","code":500,"text":"Fatal error: Call to undefined method PodioItemField::api_friendly_values()","level":0}
Could you check plz ?
Hi @EnsinoEinstein this is possibly a duplicate - can you please check if https://github.com/podio-community/podio-php/issues/167#issuecomment-501593186 resolves this for you?