parse.com-php-library icon indicating copy to clipboard operation
parse.com-php-library copied to clipboard

Uncaught ParseLibraryException: [0]

Open zerodark30 opened this issue 11 years ago • 8 comments

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

zerodark30 avatar Aug 24 '13 14:08 zerodark30

can you past the code which your using .. i mean what your doing which cause this issue

zaherg avatar Aug 24 '13 14:08 zaherg

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

zerodark30 avatar Aug 24 '13 16:08 zerodark30

what is the code you type ? put the code of the file which you request, so that we can help ..

otherwise .. good luck

zaherg avatar Aug 24 '13 17:08 zaherg

zerodark30 avatar Aug 24 '13 17:08 zerodark30

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

zerodark30 avatar Aug 24 '13 17:08 zerodark30

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();
    ?>

zaherg avatar Aug 25 '13 06:08 zaherg

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.

dailyhundred avatar Sep 09 '13 22:09 dailyhundred

Curl library is not installed on localhost

Wp1stop avatar Jun 04 '14 15:06 Wp1stop