parse.com-php-library
parse.com-php-library copied to clipboard
Uncaught ParseLibraryException: [0]
hi, i am having this issue right after i loaded the parse php library i configured the app keys and config file but i still gettnig this error
can you past the code which your using .. i mean what your doing which cause this issue
i just download this library and tried to run it on local server i did all mentioned in the documentation to configure but its still giving me the above exception
what is the code you type ? put the code of the file which you request, so that we can help ..
otherwise .. good luck
and when i run this file parseUser.php it gives me the error Fatal error: Class 'parseRestClient' not found in C:\xampp\htdocs\parse.com\parseUser.php
sorry to work with parse library you need to know php .. and from what you have typed, its look like you dont know it ..
any way in simple words, you just include the files and your requesting the library file, which has nothing todo with your app ..
check this example to know how to use it :
<?php
//This example is a sample video upload stored in parse
$parse = new parseObject('Videos');
$parse->title = $data['upload_data']['title'];
$parse->description = $data['upload_data']['description'];
$parse->tags = $data['upload_data']['tags'];
//create new geo
$geo = new parseGeoPoint($data['upload_data']['lat'],$data['upload_data']['lng']);
$parse->location = $geo->location;
//use pointer to other class
$parse->userid = array("__type" => "Pointer", "className" => "_User", "objectId" => $data['upload_data']['userid']);
//create acl
$parse->ACL = array("*" => array("write" => true, "read" => true));
$r = $parse->save();
?>
I had the same error message after first install, but was able to resolve everything by working from my web server instead of the localhost. I'm not sure why this is happening, it's probably obvious. I also received 2 error messages "trying to get property of non-object" from line 189 in the checkResponse function of parse.php.
Curl library is not installed on localhost