Answers.Body: <p>Git history shows this bug to have been <a href="https://github.com/civicrm/civicrm-core/commit/988e67ca92957bbce884a80c075e813093b851d8" rel="nofollow">already fixed on 6th June 2015</a>. Please upgrade to the latest version of CiviCRM and try again.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-29T16:11:16.363Z
Answers.LastActivityDate: 2015-07-29T16:11:16.363Z
Answers.UserDisplayName: Coleman
Body: <p>Civi version 4.6.3.<br>
  When I access the API, it loads but with errors related to the examples.</p>
  
  <p>This is an IIS server.    </p>
  
  <blockquote>
    <p>Warning:
    scandir(C:\inetpub\wwwroot\sites\all\modules\civicrmapi/v3/examples,C:\inetpub\wwwroot\sites\all\modules\civicrmapi/v3/examples):
    The system cannot find the path specified. (code: 3) in
    CRM_Admin_Page_APIExplorer->run() (line 55 of
    C:\inetpub\wwwroot\sites\all\modules\civicrm\CRM\Admin\Page\APIExplorer.php).<br>
        Warning: scandir(C:\inetpub\wwwroot\sites\all\modules\civicrmapi/v3/examples):
    failed to open dir: No such file or directory in
    CRM_Admin_Page_APIExplorer->run() (line 55 of
    C:\inetpub\wwwroot\sites\all\modules\civicrm\CRM\Admin\Page\APIExplorer.php).<br>
        Warning: scandir(): (errno 2): No such file or directory in CRM_Admin_Page_APIExplorer->run() (line 55 of
    C:\inetpub\wwwroot\sites\all\modules\civicrm\CRM\Admin\Page\APIExplorer.php).<br>
        Warning: Invalid argument supplied for foreach() in CRM_Admin_Page_APIExplorer->run() (line 55 of
    C:\inetpub\wwwroot\sites\all\modules\civicrm\CRM\Admin\Page\APIExplorer.php).</p>
  </blockquote>
  
  <p>There appears to be a missing slash in the warnings between the civicrm and api folders.</p>
  
  <p>If I edit APIExplorer.php and add either <code>\</code> or <code>\/</code> the error goes away.</p>
  
Tags: <api>
Title: When I go to run the API, I get errors looking for examples
ThreadText: # When I go to run the API, I get errors looking for examples
  
  (Asked by: username_0 on 2015-07-28)
  
  Civi version 4.6.3.  
  When I access the API, it loads but with errors related to the examples.
  
  This is an IIS server.
  
  > Warning:
  > scandir(C:\inetpub\wwwroot\sites\all\modules\civicrmapi/v3/examples,C:\inetpub\wwwroot\sites\all\modules\civicrmapi/v3/examples):
  > The system cannot find the path specified. (code: 3) in
  > CRM\_Admin\_Page\_APIExplorer->run() (line 55 of
  > C:\inetpub\wwwroot\sites\all\modules\civicrm\CRM\Admin\Page\APIExplorer.php).  
  > Warning: scandir(C:\inetpub\wwwroot\sites\all\modules\civicrmapi/v3/examples):
  > failed to open dir: No such file or directory in
  > CRM\_Admin\_Page\_APIExplorer->run() (line 55 of
  > C:\inetpub\wwwroot\sites\all\modules\civicrm\CRM\Admin\Page\APIExplorer.php).  
  > Warning: scandir(): (errno 2): No such file or directory in CRM\_Admin\_Page\_APIExplorer->run() (line 55 of
  > C:\inetpub\wwwroot\sites\all\modules\civicrm\CRM\Admin\Page\APIExplorer.php).  
  > Warning: Invalid argument supplied for foreach() in CRM\_Admin\_Page\_APIExplorer->run() (line 55 of
  > C:\inetpub\wwwroot\sites\all\modules\civicrm\CRM\Admin\Page\APIExplorer.php).
  
  There appears to be a missing slash in the warnings between the civicrm and api folders.
  
  If I edit APIExplorer.php and add either `\` or `\/` the error goes away.
  
  **Tags:** api
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-07-29. Score: 1 | Accepted answer
  
  Git history shows this bug to have been [already fixed on 6th June 2015](https://github.com/civicrm/civicrm-core/commit/988e67ca92957bbce884a80c075e813093b851d8). Please upgrade to the latest version of CiviCRM and try again.
  
  
  ---
  
  