Skip to content

Fatal error: Call to undefined method PodioItemField::api_friendly_values() #171

@EnsinoEinstein

Description

@EnsinoEinstein

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions