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

Crash when trying to call getOrganizationActivities API. #180

Open
Cohenda26Hitecy opened this issue Mar 4, 2025 · 0 comments
Open

Crash when trying to call getOrganizationActivities API. #180

Cohenda26Hitecy opened this issue Mar 4, 2025 · 0 comments

Comments

@Cohenda26Hitecy
Copy link

Crash when trying to call getOrganizationActivities API.

The crash only appears if there are no activities.

( ! ) Fatal error: Uncaught TypeError: property_exists(): Argument #1 ($object_or_class) must be of type object|string, bool given in C:\xampp\htdocs\WmsHitecy\vendor\pipedrive\pipedrive\lib\versions\v1\Traits\RawData.php on line 60 --
1 | 0.0678 | 409512 | {main}( ) | ...\index.php:0
2 | 21.5951 | 3271616 | Router->routeReq( ) | ...\index.php:16
3 | 21.6011 | 3583944 | Controller->__construct( $CtrlName = 'Salarie', $method = 'salarieajaxgetinformationsorganisation', $params = ['idOrg' => '518872', 'bloc' => 'activites'], $files = NULL ) | ...\Router.php:178
4 | 21.6012 | 3584320 | ControllerSalarie->salarieAjaxGetInformationsOrganisation( $params = ['idOrg' => '518872', 'bloc' => 'activites'] ) | ...\Controller.php:11
5 | 21.6165 | 4110856 | HitecyPipedrive->getListActivitiesOfAnOrganization( $idOrg = '518872' ) | ...\ControllerSalarie.php:293
6 | 31.9487 | 5120664 | Pipedrive\versions\v1\Api\OrganizationsApi->getOrganizationActivities( $id = '518872', $start = NULL, $limit = NULL, $done = NULL, $exclude = NULL ) | ...\HitecyPipedrive.php:404
7 | 31.9489 | 5120664 | Pipedrive\versions\v1\Api\OrganizationsApi->getOrganizationActivitiesWithHttpInfo( $id = '518872', $start = NULL, $limit = NULL, $done = NULL, $exclude = NULL ) | ...\OrganizationsApi.php:1940
8 | 53.4150 | 5682256 | Pipedrive\versions\v1\ObjectSerializer::deserialize( $data = '{"success":true,"data":null,"additional_data":{"activity_distribution":false,"pagination":{"start":0,"limit":100,"more_items_in_collection":false}}}', $class = '\Pipedrive\versions\v1\Model\ListActivitiesResponse', $httpHeaders = [] ) | ...\OrganizationsApi.php:2002
9 | 53.4168 | 5781800 | Pipedrive\versions\v1\ObjectSerializer::deserialize( $data = class stdClass { public $activity_distribution = FALSE; public $pagination = class stdClass { public $start = 0; public $limit = 100; public $more_items_in_collection = FALSE } }, $class = '\Pipedrive\versions\v1\Model\ActivityDistributionDataWithAdditionalData', $httpHeaders = NULL ) | ...\ObjectSerializer.php:400
10 | 53.4175 | 5808200 | Pipedrive\versions\v1\ObjectSerializer::deserialize( $data = FALSE, $class = '\Pipedrive\versions\v1\Model\ActivityDistribution', $httpHeaders = NULL ) | ...\ObjectSerializer.php:400
11 | 53.4181 | 5829064 | Pipedrive\versions\v1\Model\ActivityDistribution->setRawData( $rawData = FALSE ) | ...\ObjectSerializer.php:405
12 | 53.4181 | 5829064 | property_exists( $object_or_class = FALSE, $property = 'data' ) | ...\RawData.php:60

Thank's

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

1 participant