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

$image->getAll() error #36

Closed
joneslloyd opened this issue Aug 10, 2014 · 2 comments
Closed

$image->getAll() error #36

joneslloyd opened this issue Aug 10, 2014 · 2 comments
Assignees

Comments

@joneslloyd
Copy link

Hello,

I am using the very latest commit, but when I call the $image->getAll() function, I get the following error

Warning: array_map(): An error occurred while invoking the map callback in /var/www/wp-content/plugins/gravityforms-digitalocean/api/src/Api/Image.php on line 33

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Property "DigitalOceanV2\Entity\Image::actionIds" should exist.' in /var/www/wp-content/plugins/gravityforms-digitalocean/api/src/Entity/AbstractEntity.php:49 Stack trace: #0 /var/www/wp-content/plugins/gravityforms-digitalocean/api/src/Entity/AbstractEntity.php(68): DigitalOceanV2\Entity\AbstractEntity->__set('actionIds', Array) #1 /var/www/wp-content/plugins/gravityforms-digitalocean/api/src/Entity/AbstractEntity.php(24): DigitalOceanV2\Entity\AbstractEntity->build(Object(stdClass)) #2 /var/www/wp-content/plugins/gravityforms-digitalocean/api/src/Api/Image.php(32): DigitalOceanV2\Entity\AbstractEntity->__construct(Object(stdClass)) #3 [internal function]: DigitalOceanV2\Api\Image->DigitalOceanV2\Api\{closure}(Object(stdClass)) #4 /var/www/wp-content/plugins/gravityforms-digitalocean/api/src/Api/Image.php(33): array_map(Object(Closure), Array) #5 /var/www/wp-content/plugins/gravityforms-digitalocean/functions/gravityforms-digitalocean-functions.php( in /var/www/wp-content/plugins/gravityforms-digitalocean/api/src/Entity/AbstractEntity.php on line 49

Just letting you know!

I checked the API here: https://developers.digitalocean.com/#images , and there is an

action_ids
array listed as part of the Image entity.

Thanks

@yassirh yassirh self-assigned this Aug 10, 2014
@yassirh
Copy link
Contributor

yassirh commented Aug 10, 2014

Hello @joneslloyd thanks for pointing this issue. it is fixed in commit dfffc76.

@yassirh yassirh closed this as completed Aug 10, 2014
@joneslloyd
Copy link
Author

No problem - cheers @yassirh

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