-
Notifications
You must be signed in to change notification settings - Fork 173
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
New item is not created #213
Comments
Hi @wasimakaram , On first glance, it looks like you found a bug. Could you tell which version of PHP and of this library you are using? Best, Daniel |
Hi @wasimakaram I could reproduce this and found the solution: You need to make sure Let me know if this does not work! Best, Daniel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
I want to create a new item but it failed
My Code is given below
It gives me the following error
Fatal error: Uncaught PodioMissingRelationshipError: "Item is missing relationship to app" Request URL: Stack Trace: #0 /home/customer/www/measuredsurveyexperts.com/public_html/Podio_Xero_integration/create_podio_invoice.php(24): PodioItem->save() #1 {main} thrown in /home/customer/www/measuredsurveyexperts.com/public_html/Podio_Xero_integration/models/PodioItem.php on line 78
Actually when I want to create an object of PodioApp class with APP_ID and assign that object to PodioItem class. The APP_ID is assigned properly.
When I put APP_ID hardcoded in the file models->PodioItem.php on line number 71, then it's working fine. My hardcoded id is given below
if ($this->id) {
return self::update($this->id, $json_attributes, $options);
} else {
$this->app->id = 26545976;
if ($this->app && $this->app->id) {
$new = self::create($this->app->id, $json_attributes, $options);
$this->item_id = $new->item_id;
return $this;
}
I think there is an issue in the library. Can you please help me?
Thanks
The text was updated successfully, but these errors were encountered: