Answers.Body: <p>In your pictured error messages, I see <code>sites/all/modules/cv/civicrm</code> which looks a little strange. CiviCRM is typically installed at <code>sites/all/modules/civicrm</code>. I'm not positive this will help, but I would suggest trying the following:</p>
  
  <ol>
  <li>Move the <code>civicrm</code> folder up into the <code>modules</code> folder.</li>
  <li>Make sure CiviCRM still works via the regular front-end interface (and troubleshoot, as necessary)</li>
  <li>Try your REST call again</li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-23T19:32:57.463Z
Answers.LastActivityDate: 2017-08-23T19:32:57.463Z
Answers.UserDisplayName: Sean
Answers.Body: <p>I've seen CiviCRM not behave correctly in a couple of other cases, both of which I believe have been addressed in recent releases but still might be worth investigating:</p>
  
  <ul>
  <li>Where a symlink existed as part of the site path. (eg, <code>/home4/mark</code> is actually a symlink to <code>/srv/userdata/m/mark</code>, or <code>/home4/mark/public_html/crm</code> is a symlink to <code>/home4/mark/project1/civicrm</code>)</li>
  <li>Where the CMS/CiviCRM was not installed to the webroot of the site. (This appears to be the case, eg Drupal/CiviCRM is installed at <code>http://example.org/crm/</code> rather than <code>http://example.org/</code></li>
  </ul>
  
  <p>If Sean's recommendation doesn't resolve your situation, you might investigate these potential causes as well.</p>
  
  <p>In any case, please do update with the solution you find - it may help that being addressed in CiviCRM core and save you or other users similar challenges in future!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-23T23:03:07.357Z
Answers.LastActivityDate: 2017-08-23T23:03:07.357Z
Answers.UserDisplayName: Chris Burgess
Body: <p>I tried below steps but I am getting an error in calling rest API via the browser.</p>
  
  <ol>
  <li>I checked which user is an administrator and added api key via phpmyadmin interface.</li>
  <li>Get the site key from CiviCRM settings.</li>
  <li>I cross checked that user have permissions for editing and view contacts.</li>
  <li>I want to get operation for contacts based on some condition.</li>
  </ol>
  
  <p>Please have a look at error that I am getting.<a href="https://i.sstatic.net/D27Dz.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/D27Dz.png" alt="enter image description here"></a></p>
  
  <p>Setting file is present in same folder 
  public_html/crm/sites/default</p>
  
  <p>Please help me.It's the little bit urgent.
  I am very thankful to you.</p>
  
  <p>With Regards,</p>
  
  <p>Mohit Thareja</p>
  
Tags: <api><webform-civicrm><rest>
Title: Help needed in setting up rest api in CIVI CRM
ThreadText: # Help needed in setting up rest api in CIVI CRM
  
  (Asked by: username_0 on 2017-08-23)
  
  I tried below steps but I am getting an error in calling rest API via the browser.
  
  1. I checked which user is an administrator and added api key via phpmyadmin interface.
  2. Get the site key from CiviCRM settings.
  3. I cross checked that user have permissions for editing and view contacts.
  4. I want to get operation for contacts based on some condition.
  
  Please have a look at error that I am getting.[![enter image description here](https://i.sstatic.net/D27Dz.png)](https://i.sstatic.net/D27Dz.png)
  
  Setting file is present in same folder
  public\_html/crm/sites/default
  
  Please help me.It's the little bit urgent.
  I am very thankful to you.
  
  With Regards,
  
  username_0
  
  **Tags:** api, webform-civicrm, rest
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-08-23. Score: 1
  
  In your pictured error messages, I see `sites/all/modules/cv/civicrm` which looks a little strange. CiviCRM is typically installed at `sites/all/modules/civicrm`. I'm not positive this will help, but I would suggest trying the following:
  
  1. Move the `civicrm` folder up into the `modules` folder.
  2. Make sure CiviCRM still works via the regular front-end interface (and troubleshoot, as necessary)
  3. Try your REST call again
  
  
  ---
  
  ### Answer by username_2 on 2017-08-23. Score: 0
  
  I've seen CiviCRM not behave correctly in a couple of other cases, both of which I believe have been addressed in recent releases but still might be worth investigating:
  
  * Where a symlink existed as part of the site path. (eg, `/home4/mark` is actually a symlink to `/srv/userdata/m/mark`, or `/home4/mark/public_html/crm` is a symlink to `/home4/mark/project1/civicrm`)
  * Where the CMS/CiviCRM was not installed to the webroot of the site. (This appears to be the case, eg Drupal/CiviCRM is installed at `http://example.org/crm/` rather than `http://example.org/`
  
  If username_1's recommendation doesn't resolve your situation, you might investigate these potential causes as well.
  
  In any case, please do update with the solution you find - it may help that being addressed in CiviCRM core and save you or other users similar challenges in future!
  
  
  ---
  
  