Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
EnsinoEinstein opened this issue Jun 23, 2019 · 1 comment

Comments

@EnsinoEinstein
Copy link

EnsinoEinstein commented Jun 23, 2019

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 ?

@daniel-sc
Copy link
Member

Hi @EnsinoEinstein
this is possibly a duplicate - can you please check if #167 (comment) resolves this for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants