parse-community / parse-php-sdk

The PHP SDK for Parse Platform
https://parseplatform.org/
Other
811 stars 346 forks source link

Can not run set operation and save #415

Closed MrMegamind closed 5 years ago

MrMegamind commented 5 years ago

I am running following code

    $hubr_messenger_message = ParseObject::create("hubr_messenger_message");
    $hubr_messenger_message->set("msg_id", $parse_arr->msg_id);
    $hubr_messenger_message->save();

and get following error Fatal error: Interface 'Parse\Internal\FieldOperation' not found in /includes/sdk/parse/php-sdk/src/Parse/Internal/SetOperation.php on line 17

This is file structure of sdk/parse/php-sdk/src/Parse/Internal http://prntscr.com/l0mcaa

I assume we are missing a file here?

Documentation here states there should be a file FieldOperation.php in internal http://parseplatform.org/parse-php-sdk/namespaces/Parse.Internal.html

MrMegamind commented 5 years ago

I downloaded raw file from GitHub and uploaded in SDK folder but still no luck, same error:

Fatal error: Interface 'Parse\Internal\FieldOperation' not found in /includes/sdk/parse/php-sdk/src/Parse/Internal/SetOperation.php on line 17

acinader commented 5 years ago

Have you gone through the installation and getting started sections of the guide?

https://docs.parseplatform.org/php/guide/#installation